How do you use the NHET pins as GPIO? Do you have to write code for the NHET cp-processor, or can the "main" code toggle the NHET pins?
Jut S.
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.
How do you use the NHET pins as GPIO? Do you have to write code for the NHET cp-processor, or can the "main" code toggle the NHET pins?
Jut S.
Hi Jut,
The NHET module has control registers to use the NHET pins as general-purpose I/O. The NHET timer co-processor does not need to be enabled in order for the CPU code to use the pins as GPIO. The NHET I/O control registers are at address offset 0x4C to 0x68.
Regards, Sunil
Hi Jut,
as Sunil already said, the NHET module has speacial registers to use the port as GIO and no NHET program is necessary to use them as GIO.
If you are using HalCoGen, you can use the GIO drivers of HalCoGen for this purpose.
The following Code will set the HET pin 0..5 as output, and than set pin 0 to high.
gioSetDirection(hetPORT, 0x0000003FU);
gioSetPort(hetPORT, 0x00000001U); Best Regards, Christian
Hi Jut,
You may also want to look at the lab in the 1 day training you can find in our wiki:
http://processors.wiki.ti.com/index.php/Category:TMS570#Training_.26_Videos