Tool/software: Code Composer Studio
I need to use some of the N2HET pins as GIO inputs and some as outputs
My understanding is that I can use the gioxxx functions to manipulate the N2HET pins i.e.
- gioSetPort(hetPORT2, 0x00000001);
- gioGetBit(hetPORT2,0);
From the examples, the HET bins only need the following set up:
hetREG2->GCR = 0x01000001; // turn on
hetREG2->PULDIS = 0x00000000; // PULL enabled
hetREG2->DIR = 0 |( 1 << 2)|( 1 << 3); // Pins 2 & 3 for output, the rest as input
The HET outputs toggle just fine, but the inputs only read 0 irrespective of being connected to 0 or 3.3.
Is there another configuration that needs to be set?