in order to generate 5ms delay using 11.0592mhz crystal, what are the values to be loaded into TH0 and TL0? (mode1, 16 bit counter)
in mazidi, the values say:
5ms/1.085us=60926 thus TH=EE and TL=00
but another book tells me to do the no. to be loaded is19457
and also instructs to perform the following calculation before lading the values in TH and TL:
TH0 * 256 + TL0 = 19457
assuming TL0=1
TH0=76.
thus the values to be loaded are:th=4c and tl=01
which one is correct?
please help!!!
in mazidi, the values say:
5ms/1.085us=60926 thus TH=EE and TL=00
but another book tells me to do the no. to be loaded is19457
and also instructs to perform the following calculation before lading the values in TH and TL:
TH0 * 256 + TL0 = 19457
assuming TL0=1
TH0=76.
thus the values to be loaded are:th=4c and tl=01
which one is correct?
please help!!!