This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM LPC2000 GPIO problem

I have a problem reading input pins on the LPC2138.
I used the following assignment in the Keil uVision3 and got the following error:
CODE FRAGMENT
unsigned int Key_0=IOPIN1& 0x00080000; // Read input pin P1.24

ERROR
error: KeyPad.c(36): error: #28: expression must have a constant value.

What could be the problem? How do I read an input (IOPIN) and store the value?

0