Dear All,
I am using F28069.I want to used GPIO29 as Output and Input But only first time I am able to read the status of pin after that I can not read the status of pin but after configuration as output I am able to change the output.I required pull up hence I enable the pullup on.
void InitOP(void)
{
EALLOW;
GpioCtrlRegs.GPADIR.bit.GPIO29 = 1; // 1=OUTput, 0=INput
// GpioCtrlRegs.GPBDIR.bit.GPIO54 = 1; // 1=OUTput, 0=INput
EDIS;
}
void InitIP(void)
{
EALLOW;
GpioCtrlRegs.GPADIR.bit.GPIO29 = 0; // 1=OUTput, 0=INput
// GpioCtrlRegs.GPBDIR.bit.GPIO54 = 0; // 1=OUTput, 0=INput
EDIS;
}
For reading the data I am using GpioDataRegs.GPADAT.bit.GPIO29 register and for output I am using GPASET,GPSCLEAR register.
I want to do continue read and write operation but I am able to do only first time.
Reagrds,
sagar