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.

RM57L843: Open Drain N2HETx PWM from API

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Dear TI,

I have an issue stated in the title. it's all fine when I call the hetInit() function from the API. But when I try to use the API functions and setting the Duty Cycle or frequency, with any of the functions, the duty cycle and the frequency is successfully set, but the HETPWM loses its open drain attribute and it becomes a simple PWM signal.

Any ideas or recommendations, what could I do?

Thanks in advance.

Regards,

Zsolt Nagy

  • Hi Zsolt,

    Which API functions do you call that cause the HET to lose the open-drain attribute?

    Regards,
    Sunil
  • Dear Sunil,


    void pwmSetDuty(hetRAMBASE_t * hetRAM,uint32 pwm, uint32 pwmDuty);
    void pwmSetSignal(hetRAMBASE_t * hetRAM,uint32 pwm, hetSIGNAL_t signal);

    These are the ones.

    Regards,

    Zsolt
  • I tried a simple project with open-drain attribute on HET1[4] and do not see the issue. Can you upload your code project that shows the issue?

    Do you have external pull-up on the terminal, or are you enabling internal pull-up? How do you tell that the open-drain attribute is not applied any more?

    Regards,
    Sunil
  • Dear Sunil,

    I will only have access to the code tomorrow. As much as I can tell now is that I see the signal change with an oscilloscope.

    And the part of the code of our interest consists of nothing more than a hetInit() and the two functions mentioned above (tried to use pwmStop first and after the settings pwmStart, too, but made no difference). Although there is still one function, but I don't think it interferes: as I want to use some of the HET pins as GPIO pins, after the initialization I use the gioSetDirection(hetPORT1, 0xFFFFFFFF); And all goes fine till I call one of the two functions that are above. The initialization sets the signal open drain and it can be seen with the oscilloscope properly. And the change occurs after the use of either of the two functions written above, I debugged it through.

    I tried it with all of the options: pull-up, pull down or no resistors at all set in HALCoGen. The problem persists with all the options. And I guess there isn't an external pull-up on the terminal.

    Regards,

    Zsolt
  • Dear Sunil,

    The problem has been solved.

    Regards,

    Zsolt