hi I work by LPC2138/01, and i config I/O ports as fast I/O(SCS=0x3). i change I/O pin in simulation exactly, also I/O pins change whitout any problem in run mode. but i cannot change I/O pin in debugging mode, even when i click a bit on PINxDIR register manually, it unchecked after a short time. I use Keil V4.6.00. How can I solve my problem by fast I/O pin in debug mode???
I found reason of my problem: The LPC2138/01 do not defined in J-Link V8.0 debugger, for this reason address if FIO register(0x3FFFC000 to 0x3FFFC03C) not defined for J-Link V8.0 too. I decided that use slow-GPIO registers, if config VPBDIV for PCLK==CCLK there is no difference between speed of GPIO and Fast-GPIO operation.