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.

Rev E of TI Hercules Board RM48L952ZWT Need more PWMs on NHET - Can we use extra NHET pins to transmit PWM signal?

Other Parts Discussed in Thread: HALCOGEN

Hello. We Have Rev E of TI Hercules Board RM48L952ZWT.

On HET1, we used all our "blackbox" PWMs on the NHETS (PWM0 to PWM7).  How can we use extra NHET pins as PWMs? We cannot use the

void pwmSetSignal(hetRAMBASE_t * hetRAM, uint32 pwm, hetSIGNAL_t signal) HalCoGen function, because we have to pass PWM0 to PWM7 (not the HET pin number) and in HalCoGen is where we associate the pin# with the PWM.  Is there another function that can have some unused pins generate pwm the way  pwmSetSignal(hetRAMBASE_t * hetRAM, uint32 pwm, hetSIGNAL_t signal) allows us to do, but passing the unused pin numbers?  Thank you.

  • Hello:

    I'm directing your question to one of our experts to provide you some feedback.

    Regards.
  • Hi Tammy,

    You cannot use HALCoGen blackbox driver to produce more than 8 PWMs on one NHET. You will have to use the HET IDE to write your own NHET program for this. The NHET can be programmed to produce 32 PWMs (using all pins). But this function is not supported in the blackbox driver.

    Thanks and Regards,

    Vineeth

  • Hi Vineeth, thank you. I clicked on the link to HET IDE you posted above, but it is a general link (with error message on TI page of your link: " Unfortunately, the page you've requested no longer exists. Please use the search form above to locate the information you're interested in"). Was there a specific document or sample code you were guiding we download on how to use the HET IDE to have a NHET pin bheave as a pwm? We want to keep using black box, but we are needing 3 more PWM pins only. Can w euse the black box driver in combination with the HET IDE approach that you describe above for the 3 extra PWMs we need? If yes, can you send the link to where to read about this approach? Thank you again.

  • Hi Tammy,

    The link I tried to post earlier was just the main TI page for the HET IDE  ( Don't know how I messed up the link). You can check these documents to get a better understanding of the HET IDE (1, 2 ).

    We have been recently working on a way to make the HALCoGen NHET blackbox driver easier to understand in terms of the HET IDE. The attached file is an HET assembler program which closely resembles the HALCoGen blackbox driver (Please note that it is still a work in progress). Anthony had posted something similar a while back. You can try to run this program to understand the blackbox driver better. I have also attached a control flow diagram of the blackbox driver( which shows the flow of control within one LRP).

    The pwmSetSignal() function updates the MOV64 instructions. You can try to add more pwm signals in the code by replicating the relevant instructions and making appropriate adjustments in the pwmSetSignal() function. Remember that the driver functions assume that the instructions have fixed locations (and these are hardcoded into the function). For example, the pwmSetSignal() function assumes that the MOV64 instructions start at the location 41(this can be seen at the last 3 lines of the function).

    Hope this helps with your development.

    Thanks and Regards,

    Vineeth

    0336.Halc_default_code.docx