??? 01/30/06 15:21 Read: times |
#108728 - multi tasking Responding to: ???'s previous message |
Stanley Lio said:
the IRRC routine may keep waiting (due to some "JNB IR,$").
Stanley You should write your code so that no module will keep waiting holding the processor up till an action is complete. Something like this: Loop1: IF task1 flag do task1 IF task2 Flag do task2 . . . GOTO Loop1 The IR routine might be critical so you make it on interrupt, make the interrupt as short as possible and make it set flags for the forground program to take the action. No waiting for action is allowed holding the controller up. Mahmood |
Topic | Author | Date |
Servomotor head version III | 01/01/70 00:00 | |
Nice Work | 01/01/70 00:00 | |
Manageing code and debugging | 01/01/70 00:00 | |
Divide into modules | 01/01/70 00:00 | |
multi tasking | 01/01/70 00:00 | |
IRRC routine are much longer | 01/01/70 00:00 | |
No waiting for IR | 01/01/70 00:00 | |
two mcu | 01/01/70 00:00 | |
Maybe this will help you | 01/01/70 00:00 | |
this is not IRQ save | 01/01/70 00:00 | |
RS232 | 01/01/70 00:00 | |
Design First | 01/01/70 00:00 | |
Design | 01/01/70 00:00 | |
Pardon![]() | 01/01/70 00:00 | |
Well done! | 01/01/70 00:00 | |
The "3.0" | 01/01/70 00:00 | |
Smart! | 01/01/70 00:00 | |
hardware | 01/01/70 00:00 | |
Mainland China | 01/01/70 00:00 | |
And Well done Kai! | 01/01/70 00:00 | |
My experinece | 01/01/70 00:00 | |
very impressive | 01/01/70 00:00 | |
Program and Code Structure | 01/01/70 00:00 | |
Spaghetti anyone ? | 01/01/70 00:00 | |
manually interpret machine code? | 01/01/70 00:00 | |
hand coded mechine language | 01/01/70 00:00 | |
Keep up the good work | 01/01/70 00:00 |