This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F2800137: not able to update registers

Part Number: TMS320F2800137

GpioDataRegs.GPADAT.bit.GPIO22=1;
GpioDataRegs.GPADAT.bit.GPIO20=0;
DELAY_US(1000);
GpioDataRegs.GPADAT.bit.GPIO22=0;
GpioDataRegs.GPADAT.bit.GPIO20=1;
DELAY_US(1000);

in the above code GPIO22 is turning on and off but Gpio22 is not, both are configured as gpio ouput.

watch windows i saw GPADAT being changed for Gpio22 but not for Gpio20.