Tamasco
Full Member level 3
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
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?
I used the following assignment in the Keil uVision3 and got the following
error:
CODE
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?