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.

TMS570LS1224: How can this pin be configured as PWM "N2HET1[10]"

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Tool/software:

How can this pin be configured as PWM "N2HET1[10]"

I already have a working code where they are referring function "pwmStart (hetRAM1, 1U)" to generate PWM on N2HET1[10]

I'm confused how in function 1U corresponds to [10] (N2HET1[10])

Can anyone please help me understand?

  • Hi Bindu,

    I'm confused how in function 1U corresponds to [10] (N2HET1[10])

    Actually the 1 corresponds to the PWM1 and to verify on which pin this PWM is generating we should need to refer the HALCoGen configuration.

    For example, refer my example configuration:

    Here i am generating the PWM1 on the HET1[1] like as shown above, may be in your case it might be configured to the HET1[10] pin. Please check it.

    --
    Thanks & regards,
    Jagadish.

  • At present i'm referring to 5 years old product code.

    Where we dont have halcogen settings available.

    Can you provide me the configuration register, where i can search in my code base to find N2HET1[10]) muxed to which PWM?

  • Hi Bindu,

    You need to change the pin numbers in the instructions of HET program. For this you need to understand the HET program used for PWM generation.

    For example, in HALCoGen case i changed PWM1 pin from 1 to 10 and compare the HL_het.c file and here is the result:

    Here we used PWCNT instruction for pin toggling at duty cycle, so that is the reason they are changing the pin numbers at this instruction. So similarly, you should need to identify which instructions generating PWM in your case and need to change the PIN numbers at corresponding instruction.

    --
    Thanks & regards,
    Jagadish.