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

IO control for P89LPC931 with MCB900 Evaluation Board

Question:

I have set P0.1-P0.7 as output . P1.6 as start button , P1.6 as Tip On , how can i program in C language ? and how the program wait for the signal from P1.7 and P1.6?

below are the main void

void main(void)
{ P0M1 &= 0x01; // (P0.1-7) -> push pull output P0M2 |= 0xFE;

P1M1 |= 0xC0; // P1.7 & P1.6 Input only P1M2 |= 0x1F; }

what is the Interrupt function that to wait for the input from P1.7 & P1.6?