| ??? 01/18/03 17:59 Read: times |
#36754 - RE: Use both 2051 Timers |
mov TMOD,#17 = 011h
mov TCON,#80 = 050h mov IE, #138 = 08ah WHY you specify bit fields in decimal, I can not even comprehend. It makes it impossible to read, thus my previous post. one added note: with the tw0 timers running at same speed, why use two. Just stick the two counter in one int. re your code ; Interrupt Timer 0 timer0_int: mov TL0, #TL0PRE mov TH0, #TH0PRE djnz timer0_ext24,timer0_int_label mov timer0_ext24,#TX0PRE acall timer0_int_label ret timer0_int_label: reti Every execution of acall timer0_int_label will absolutotally blow your code, you will execute a RETI and still be in (return to) the ISR. Erik |
| Topic | Author | Date |
| Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
| RE: Use both 2051 Timers | 01/01/70 00:00 | |
RE: Use both 2051 Timers | 01/01/70 00:00 |



