this is controlsuit:
void Gpio_select(void)
{
EALLOW;
GpioCtrlRegs.GPAMUX1.all = 0x00000000; // All GPIO
GpioCtrlRegs.GPAMUX2.all = 0x00000000; // All GPIO
GpioCtrlRegs.GPADIR.all = 0xFFFFFFFF; // All outputs
GpioCtrlRegs.GPBDIR.all = 0x0000000F; // All outputs
EDIS;
}
for(;;)
{
GpioDataRegs.GPADAT.all =0xAAAAAAAA;
GpioDataRegs.GPBDAT.all =0x0000000A;
delay_loop();
GpioDataRegs.GPADAT.all =0x55555555;
GpioDataRegs.GPBDAT.all =0x00000005;
delay_loop();
}
I control the GpioDataRegs.GPADAT.all
and watch the value of the GpioDataRegs.GPADAT.all
but the value in the Expressions is not "0xAAAAAAAA;" or "0x55555555; ".
the value which I saw is "0xAAAE8AAA" or "0x55517555"
and my delay is
void delay_loop()
{
volatile long i,j;
for (i = 0; i < 1000000; i++)
for(j=1000;j>0;j--);
}
is very long time already.
I don't Know what reason reault This?