??? 03/17/05 01:49 Read: times |
#89838 - timer2?? Responding to: ???'s previous message |
Kitti Wateesatogkit said:
I implement an alarm clock using timer1 and use timer2 to control the stop watch. Both runs in 16 bit mode. Timer1 is always counting(actually it's Real time clock code from the tutorial in this site but modified by me). But timer0 will start running(SETB TR0) only when the appropiate button is clicked.
Did you mean timer0 and timer1? could you really assemble this code? how many instructions are there between 00bh and 01bh? i would suggest doing something like this org 00bh timer0_isr: ajmp timer0_isr01 reti org 01bh . . . main: . . . timer0_isr01: what ever you are doing... ret i have not seen much of your code, so i am not sure this will help solve this problem but nevertheless it can be considered as "good practice" |
Topic | Author | Date |
Weird result using timer1and0 together. | 01/01/70 00:00 | |
timer2?? | 01/01/70 00:00 | |
My bad. | 01/01/70 00:00 | |
Yes, I assembled this code myself. | 01/01/70 00:00 | |
English | 01/01/70 00:00 | |
please complete user profile | 01/01/70 00:00 | |
you need working s/w for hello world | 01/01/70 00:00 | |
Re: | 01/01/70 00:00 | |
Re:Weird result using timer1and0 togethe | 01/01/70 00:00 | |
Thank you ^_^ | 01/01/70 00:00 | |
Register Bank | 01/01/70 00:00 | |
R6 ? | 01/01/70 00:00 | |
All the R's | 01/01/70 00:00 | |
just one thing | 01/01/70 00:00 | |
TF0 and TF1 interrupts![]() | 01/01/70 00:00 |