??? 10/19/05 04:34 Modified: 10/19/05 04:37 Read: times |
#102596 - int 0 Responding to: ???'s previous message |
The only thing you can do is disable that perticular interrupt and enable it in main loop after assuring port pin 3.2 is high.
Remove these instructions from int0() EA = 0; ... EA = 1; and simply add EX0 = 0; and add the following in your main loop which I cosider is in while(1) if(P3_2 == 1) EX0 = 1; you may add a little bit of delay as follows if(P3_2 == 1) { EX0 = 1; for(x = 0; x<255;x++); } This is simply called key debouncing :) Regards Sarang |
Topic | Author | Date |
Int 0 | 01/01/70 00:00 | |
int 0 | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
points | 01/01/70 00:00 | |
Hope this would help u......... | 01/01/70 00:00 | |
Key debounce | 01/01/70 00:00 | |
I do not see "micro" asking for help, yo | 01/01/70 00:00 | |
.u didnt...U have...If ur...suits | 01/01/70 00:00 | |
sorry for the inconvenience caused by me![]() | 01/01/70 00:00 | |
the mistake is using int 0 | 01/01/70 00:00 |