Tool/software: Code Composer Studio
Is there a way to read NHET values using a get bit function similar to gioGetBit() for example?
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.
Tool/software: Code Composer Studio
Is there a way to read NHET values using a get bit function similar to gioGetBit() for example?
Hello Brett,
If you use NHET pin as GIO, you can manipulate the pin using GIO APIs. For example:
/* Set high end timer GIO port hetPort pin direction to all output */
gioSetDirection(hetPORT1, 0xFFFFFFFF);
/* Toggle HET pin 0 */
gioSetPort(hetPORT1, gioGetPort(hetPORT1) ^ 0x00000001);
Hello Brett,
gioSetPort(gioPORT_t *port, uint32 value) --> write a value to all pin of a given GIO port
The parameter "port " is the pointer to GIO port: portA, portB, or hetPORT1, hetPORT2.
gioGetPort(hetPORT1) ^ 0x00000001 --> read the value of hetPORT1, then XOR the value and 0x1 to invert value of pin0