Other Parts Discussed in Thread: HALCOGEN
I am trying to use N2HET pins as Digital input configuration. I have disabled the HET drivers both 1 & 2 in HalcoGen and added the following settings at the end of hetInit() function.
hetReg1->GCR = 0x01000001;//enable HET
hetReg1->PULDIS = 0x00000000;//Enable PULL
hetReg1->PSL = 0xFFFFFFFF;//Configure PULLUP
hetReg1->DIR = 0x00000000;//Configure as DIN
hetReg2->GCR = 0x01000001;//enable HET
hetReg2->PULDIS = 0x00000000;//Enable PULL
hetReg2->PSL = 0xFFFFFFFF;//Configure PULLUP
hetReg2->DIR = 0x00000000;//Configure as DIN
I have tried to pull down one of the pins by connecting to ground and did not see any change in value by calling gioGetPort(hetPORT1);
Am I missing something here?
Regards,
Chandra