??? 05/14/11 01:44 Read: times Msg Score: -2 -1 Gimmee Code -1 Didn't Search First |
#182239 - Learn Timer2 (89S52) |
Hi,
I can do Timer0 every 10ms like this: ajmp Start org 0Bh ;Timer0 Int Address lcall DoTimerProc reti DoTimerProc: mov TH0,#0DCh ;Reload mov TL0,#0 cpl P2.0 ;Output (LED blinking every 10ms). ret Start: setb EA anl TMOD,#11111000b orl TMOD,#1 ;Timer0 Mode-1 setb ET0 mov TH0,#0DCh ;10ms (XTAL=11.0592 MHz) mov TL0,#0 setb TR0 sjmp $ end My question is: Can you please, show me the code to do like that on Timer2 ? Thanx. |
Topic | Author | Date |
Learn Timer2 (89S52) | 01/01/70 00:00 | |
Tutorials | 01/01/70 00:00 | |
If you did write... | 01/01/70 00:00 |