Introduction - If you have any usage issues, please Google them yourself
Keil LPC2138-based program design and circuit simulation 1. GPIO program design and circuit simulation using P0.0 ~ P0.7 output function to control LED flashes. Approach adopted Sink drive LED, which controls the LED lights when output low. First use PINSEL0, PINSEL1 register set all pin GPIO, use IO0DIR register setting P0.0 ~ P0.7 to control the output, use IO0SET register set operations, through the use of while, for loops, while calling delay procedure , the use of clear register IO0CLR, set registers operate alternately IO0SET to drive the LED light off.