Open seanshpark opened 2 weeks ago
timer1 isr -> use inline
or there will be lots of push and pops
with inline, minimum push and commands
push acc
push psw
mov _TH1,#0x4c
mov _TL1,#0x00
...
pop psw
pop acc
reti
interrupt handle cycle used
total = 17
with
TL1 = 0x10;
TH1 = 0x4c; // for 50msec
t_20_d++;
there is no push/pop
adjust: loading TH1/TL1 will make timer restart
total = 7
void timer1_isr(void) __interrupt(3) __using(2)
{
TL1 = 0x09;
TH1 = 0x4c; // for 50msec
t_20_d++;
}
Tune digital clock time.