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: N2HET1 registers are all zero

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hi,

My customer is using TMS570LS3137 and wants to use N2HET1 as GPIO.
He configure N2HET1 based on HalCoGen and added his custom codes.
But N2HET1 registers are all zero in CCS register window.


Still customer can use N2HET1 as output, so module configuration seems done.
Why registers are not read as expected? 

Thanks and regards,
Koichiro Tashiro

  • Hello,

    Pins N2HET [31] to N2HET [0] can be used by the CPU as GIO using the HETDIN Register for reading and HETDOUT, HETDSET or HETDCLR for writing, depending on the type of action to perform. The N2HET pins used as GIO are sampled on each VCLK2 period.

    Using thoe N3HET pins as GIO, only those registers are used:

    • HETDIR
    • HETDIN
    • HETDOUT
    • HETDSET
    • HETDCLR
    • HETPDR
    • HETPULDIS
    • HETPSL

    If you apply input signal at one N2HET pin which is configured as GIO input, the HETDIN should be set if the input signal is high, and cleared if the input is low. All other registers can leave as the default value which don't affect the GIO operation. If you want to use GIO APIs, gioInit() should be called.