??? 10/12/08 23:47 Read: times |
#159005 - State machine Responding to: ???'s previous message |
Main loop detects and debounces button presses, then sets state variable according to last button pressed. Call one of three subroutines based on state variable.
First subroutine sets display to 2008, if not already displaying 2008, then returns. Second subroutine increments timer and returns if not ready to display next value, else zero timer and display next value from 0-9999, then return. Third subroutine increments another timer and returns if not ready to display voltage, else zero timer, measure voltage and update display, then return. Simple. |
Topic | Author | Date |
multitasking using 8051 | 01/01/70 00:00 | |
Seems fairly simple | 01/01/70 00:00 | |
use a loop | 01/01/70 00:00 | |
What does it do when NO BUTTONS are pressed? | 01/01/70 00:00 | |
State machine | 01/01/70 00:00 | |
Not multitasking? | 01/01/70 00:00 | |
Scan keys and do accordingly | 01/01/70 00:00 | |
I am agree with Andy | 01/01/70 00:00 | |
Guessing? | 01/01/70 00:00 | |
Guess | 01/01/70 00:00 | |
Dear, i think you havent fully got my words... | 01/01/70 00:00 | |
Here are some guide lines... | 01/01/70 00:00 | |
Is there something wrong on this thread? | 01/01/70 00:00 | |
Yes It was Revived by John Smith //eom//![]() | 01/01/70 00:00 |