Hi,
I'm debugging below code in CC2531 USB dongle
main(){
P0SEL = 0x00;
P0 = 0x00;
P0DIR = 0xFF;
P0 = 0x01; //LED turns on
P0 = 0x00; //LED turns off
P0 = 0x01; //LED turns on
P0 = 0x00; //LED turns off
}
At the end of the code, LED is turning on again while it should remain off. This is only happening with the green LED.
Can you please explain this phenomemo.
Regards
Srikanth