Content originally posted in LPCWare by Scribe on Wed Oct 10 07:21:13 MST 2012
Hi guys,
We've built a little widget based around the LPC1224/101 and have several buttons on GPIO1 running merrily, however GPIO0_4 refuses to respond to level changes.
We would greatly appreciate if some kind soul could post some sample code for configuring pin GPIO0_4 as an input as we've checked config registers over and over and can't see why this isn't working - Direction bit is 0, there's a clock to GPIO0, we've disabled the pull-up for our configuration (circuit proven on GPIO1) and everything else is set correctly by default.
Many thanks