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.

TMS570LS0432: How to us HET pins as bidirectional GPIO?

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN,

Hello out there...

I'm looking to use a HET pin as a bi-directional I/O. I'm using HALCoGen. I've configured N2HET[6] as output, default value = 1, open drain with an internal pull-up resistor.

I don't have the external chip yet to test, but I'm wondering is there any special configuration to allow for a bi-directional HET pin? Can I just read the bit with this configuration?

Thanks!

     ken

  • With a little experimentation I was able to answer my own question.

    Using HALCoGen:
    1. in the PINMUX tab I set the TMS570LS0432 Launchpad's pin 18 to HET_29.
    2. in the HET, Pin 24-31 tab I set HET1[29]:
    a. DOUT = 1
    b. DIR = checked
    c. PDR = checked
    d. PSL (I tried checked and unchecked, either worked for me)

    In my test code I created a while (TRUE) loom and sampled the HET pin 29. If it changed from the previous value I placed a breakpoint. When I pressed the Launchpad user button it hit the breakpoint. Resume running; release the user button and again it hit the breakpoint. This proved that gioGetBit() returns the pin's actual value, not the value that I'm trying to output on that pin. Ergo, the pin is bi-directional.

    I hope this helps the other nubies out there...

    ken
  • Thanks Ken!

    Best regards,
    Miro