| ??? 03/17/00 11:01 Read: times |
#1866 - RE: Interrup Setup and Debuge |
Robert, if all you want to do is wait for 5msec you don't need to get this complicated !
Pretty good for the rest of it, Your structure is fine, your algorithm isn't.... All you need to do is set the timer and wait for the overflow flag. With a standard crystal, you don't even need to count overflows The algorithm is set timer to count out in 5msec. start timer Set timer interrupt set EA. set flag to say wait is in progress Now do your program while waiting for the flag to clear. ;do something ;While wait flag is true Your interrupt code is CLR wait_flag RETI Easy Steve |
| Topic | Author | Date |
| Interrup Setup and Debuge | 01/01/70 00:00 | |
| RE: Interrup Setup and Debuge | 01/01/70 00:00 | |
RE: Interrup Setup and Debuge | 01/01/70 00:00 |



