This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1227: GIOB[2] cannot turn off HET2 PWM output

Part Number: TMS570LS1227

Dear team,

I am debugging the TMS570LS1227 and currently I need to use a 1227 internal hardware to automatically turn off the PWM function. According to the manual description, user can self-turn off the HET2 PWM through GIOB[2].

The bottom layer of user debugging is automatically generated using HalcodeGen software, and the above functions are also configured in HalCodeGen software, as shown in the figure below

But it has not been able to turn off the PWM output of HET2 through the input level of GIOB[2].

Currently, the user’s approach is,

1. After the program is run, PWM has been outputting a PWM wave with a fixed duty cycle and period.

2. GIOB[2] is configured as input, and PINMUX is configured, as configured in the second picture,

3. Through an IO output to GIOB[2], or directly add a 3.3V or low level to GIOB[2], the PWM wave of HET2 has not changed.

Please help.

  • Hello Susan,

    Please refer to section 23.2.5.16 N2HET Pin Disable Feature and Table 23-10 in TMS570LS12x TRM (SPNU515B).

  • Hello QJ Wang,

    i have see the section23,2,5,16 and Table23-10,some part i don't understand,

      if i want to control PWM ON/OFF use GIOB[2],this means uses nDIS PIN to do this function, My code configuration is that:

      HETPINDIS.x = 1,
      nDIS Pin (Input) = 0/1,this signal come from GIOB[2],
      HET_PIN_ENA (HETGCR.24) = 1,This configuration from HaLCODEGen Choose this parameter  HET2 PIN ENABLE  from HET2 Global Timing Configuration tab
      HETDIR.x = 1,In my project,N2HET[4] use pwm output function,so this bit = 1,
      so my configuration on the table like below picture:
     
      output buffer always is Disable,and one point to be confirm is that Diable means PWM output is disable?and Enabled is PWM output is enabled? i am not sure.
      i try to do change all configurations on table,and pwm control not trun on or off  whenever GioB[2] input level high or low,
      could you help me write a easy demo to show how to use this function?
      Thanks very much!

  • When HETPINDIS=1, and HETDIR=1, pulling nDIS LOW will disable the NHET output.  

    After nDIS is pulled LOW, the HET_PIN_ENA will automatically get cleared. 

    To enable NHET output buffer again, pull nDIS HIGH and write 1 to HET_PIN_ENA.

  • Thank you very much. I have solved this problem. The main cause of this problem is the configuration problem of HalcodeGen, which is caused by missing one configuration.