??? 01/04/06 11:05 Read: times |
#106443 - Timer2 interrupt problem :( |
I am programming the stoplights of a car crossing as a project. The board we are using to simulate it, has a push button connected to P1.0 and we have been told to detect the pulse by upwards flank. When it's detected, we have to stop the cars, and allow pedestrians to cross. I think i have to use an interrupt, but as it is connected to P1.0, the only way should be using Timer2 as a counter that counts only one pulse before reinited... the problem is that i have been searching and it can be done only by downwards flank, isn't it? If anyone knows how to do this, i would appreciate it very much.
Thanks in advance |
Topic | Author | Date |
Timer2 interrupt problem :( | 01/01/70 00:00 | |
Polled ? | 01/01/70 00:00 | |
Re:Polled ? | 01/01/70 00:00 | |
Polled | 01/01/70 00:00 | |
Re:Polled | 01/01/70 00:00 | |
Those darned pedestrian buttons | 01/01/70 00:00 | |
Sure... | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
OP requests P1.0 | 01/01/70 00:00 | |
You are right... | 01/01/70 00:00 | |
P1 | 01/01/70 00:00 | |
you can![]() | 01/01/70 00:00 | |
"real time" | 01/01/70 00:00 | |
if the hardware makes ANY sense that wou | 01/01/70 00:00 | |
Mouse | 01/01/70 00:00 | |
never realized that, but I would not be | 01/01/70 00:00 | |
Mouse | 01/01/70 00:00 |