??? 03/25/09 10:13 Read: times |
#163833 - yes,no Responding to: ???'s previous message |
1)for reloading timer and maintain high stability of timer tick its good
to disable interrupts when reload TL,TH . But: - make EA=1 right after TL,TH loading - do not overwrite TL,TH , make someting like this timer1reload: mov a,#246 ; ;timerl mov r3,#216 ;timerh clr EA clr TR1 add a,TL1 ; mov TL1,a ; mov a,TH1 ; addc a,r3 ; mov TH1,a ; setb TR1 ; setb EA ret 2)For serial receiver (and at 2400 baud) its not naccassary to clear EA. regards |
Topic | Author | Date |
EA in "Interrupt service routine" | 01/01/70 00:00 | |
yes,no | 01/01/70 00:00 | |
both are wrong | 01/01/70 00:00 | |
... including this one? | 01/01/70 00:00 | |
well, I'll be | 01/01/70 00:00 | |
thanks >> it's working >> further | 01/01/70 00:00 | |
but WHY are you doing that? | 01/01/70 00:00 | |
Now i am not doing EA=0 in ISR. | 01/01/70 00:00 | |
ah, then it's OK![]() | 01/01/70 00:00 |