Hi!! I am a newbie to ARM7 microcontrollers, and i am going to work on the LPC2378. I have read a little bit on programming th microcontroller, and i can now comfortably flash LEDs. But, now i want to write a program that uses polling in LPC2378, such that when a particular input pin goes high, some function should be executed. Can anyone please help me out, coz i dont know how to read inputs in LPC2378(i know this is pretty dumb...but i am a total novice). Please let me know how one can read inputs from port pins ,using polling method, assuming my input device is a push button, and how can i possibly simulate this on Keil uVision3.
Thanks a lot for your help. I have read these chapters already and they say that the IOPIN register can be used to read the status of the port pins...i used the IOPIN register and set up the loop for polling, but when i simulate the program using keil debugger, the value of IOPIN does not change even though i write any value to it(i want to first make IOPIN 0x00000000 (say), so that when lets say any pin on a port goes high i can read it) in the debugger. Again when i set a pin high in the debugger the value of IOPIN does not change, so the whole point of using IOPIN to read inputs is pointless...thats why i cant get how to read inputs on LPC2378. Please help me out... Thanks a lot for your help in advance.