We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?