Content originally posted in LPCWare by gastro54 on Fri May 04 15:00:28 MST 2012
Quote: Zero
Your debugger (Peripheral View) is able to:
#1 Show your actual GPIO setting :)
#2 Show your actual IOCON setting :)
#3 Switch GPIO bits :)
Did you try this already?
Hey, thanks for the tip, but everything looks normal T_T
GPIO0DIR = 0x80 (only bit 7 set)
IOCON_PIO0_7 = 0xc0 (only bits 6,7, which are reserved are set)
When I toggle bit 7 in GPIO0DATA in the debugger, I see it toggle on the scope.
Something is wrong with the code execution I think...