| ??? 12/02/09 14:32 Modified: 12/02/09 14:45 Read: times |
#171398 - Maximum Timer interrupt-89S52?? |
Hi! I'm new to programming & have recently started assembly language programming. I tried to use Timer1 interrupt in 89S52, where I'm blinking a LED (CPL LED) after TF1 overflows.
Plz see the Interrupt code below... MOV TH1, #00H ; MOV TL1, #00H ; MOV IE, #88H ; SETB TR1 ; This gives me maximum 65536 cycles. I tried using Registers to increase the interrupt time, but T1-ISR gets activated every time TF1 overflows. (Is it obvious?) Can anybody plz suggest any changes to get interrupt after 5 or 10 seconds. (I'm using crystal of 4.0MHz). Thanks! Sandy |
| Topic | Author | Date |
| Maximum Timer interrupt-89S52?? | 01/01/70 00:00 | |
| Use a variable to count number of overflows | 01/01/70 00:00 | |
Yes, the counter works! | 01/01/70 00:00 | |
| Just use a software counter. | 01/01/70 00:00 | |
| Search terms | 01/01/70 00:00 | |
| Traditional to keep track of timer reloads for slow events | 01/01/70 00:00 |



