Hi Guys,
I´m studying DSP with F28335 PGF ControlCARD 1.0. Then I´m doing a simple test to understand the GpioDataRegs.GPACLEAR.bit. See the code bellow:
// Cut of my program
EALLOW;
GpioCtrlRegs.GPAMUX1.all = 0; // GPIO15 ... GPIO0 = General Puropse I/O
GpioCtrlRegs.GPAMUX2.all = 0; // GPIO31 ... GPIO16 = General Purpose I/O
GpioCtrlRegs.GPBMUX1.all = 0; // GPIO47 ... GPIO32 = General Purpose I/O
GpioCtrlRegs.GPBMUX2.all = 0; // GPIO63 ... GPIO48 = General Purpose I/O
GpioCtrlRegs.GPCMUX1.all = 0; // GPIO79 ... GPIO64 = General Purpose I/O
GpioCtrlRegs.GPCMUX2.all = 0; // GPIO87 ... GPIO80 = General Purpose I/O
GpioCtrlRegs.GPADIR.all = 0;
GpioCtrlRegs.GPADIR.bit.GPIO31 = 1; // led on
GpioDataRegs.GPADAT.bit.GPIO31 = 1; // led off
GpioDataRegs.GPADAT.bit.GPIO31 = 0; // led on
GpioDataRegs.GPACLEAR.bit.GPIO31 = 1; // nothing happen and led continues on
GpioDataRegs.GPACLEAR.bit.GPIO31 = 0; // nothing happen and led continues on
// End of cut of my program
In the last 2 lines, when a execute GpioDataRegs.GPACLEAR.bit.GPIO31 = 1 I expected the led 2 of my control card turn off, but it continues on. If a execute the line GpioDataRegs.GPACLEAR.bit.GPIO31 = 0, it continues on.
Can anyone help me or indicate a documentation to study about GPACLEAR?
In my test, I understood GPATOGGLE and GPASET, but GPACLEAR is not so clear.
Thanks in advanced,
Geraldo.