Using 8051U and 24 bit timer question.
Using TM0PS for a very slow tick, and Timer0 in 8-but auto-reload mode, can this 8048 emulation code work, it needs live run-time reading and update of TL0 register.
MOV A,TL0
ADD A,R0
MOV TL0,A ; SW advance TL0
W059E:
MOV A,TL0
MOV R1,A
W05A0:
MOV A,TL0
XRL A,R1
JZ W05A0 ; waits one tick
复制代码
Is that code ok in 8051U 8-bit reload mode ? (TH0 unused = 0), to then match timer in the very old 8048.
There is mention of RL_TL0, but that only exists in 16 bit reload, and does not exist in 8 bit reload, correct?
Will Run time change as done in code above of TL0 work ok ?