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.

TMS570LS3137: How to Run NHET Leds on TMS570LS Develpment Kit

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hello,

I try to turn on NHET leds on TMS570  HDK, but i am not sure how to do that. I have genereated some scripts and configuration from HalCoGen but that is not working. Could you show me how to do that.

Thank you very much.

Best.

  • Hello,

    You can use GIO API to turn on/off the LEDs connected to N2HET pins.

    1. initialize the GIO module: gioInit()

    2. Check the N2HET pin used for the LED: for example N2HET1[1]

    3. use GIO API to trn on this LED: gioSetPort(hetPORT1, gioGetPort(hetPORT1) ^ 0x00000002);

    The HALCOGen N2HET example code may use this N2HET pin of rother purpose (PWM, capture, edge detection, etc), please don't run hetInit().