Part Number: TMS320F28069M
Hello,
This might be be a stupid question ... this is about something as basic as setting a port value :-( But I have been stumped for a few days now.
The port has been setup as a output port.
GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 0; // making it GPIO
GpioCtrlRegs.GPADIR.bit.GPIO0 = 1; // GPIO 0 is O/P.
GpioCtrlRegs.GPAPUD.bit.GPIO0 = 0; // internal pull up enabled
The code is as follows.
if (gpio0 == 1) GpioDataRegs.GPASET.bit.GPIO0 = 1; else GpioDataRegs.GPACLEAR.bit.GPIO0 = 1;
The problem I am seeing is that, the value on the pin as observed by a scope seems to be delayed by a large amount, a few mS's !
The port setting and resetting is done in a timer ISR. There are other ports which I am reading in the ISR.
Am I missing anything ? Let me know if you guys think of anything at all.
Thanks -Bhaktha