223
(ii) Load TL0 and TH0 by the appropriate count values. While calculating these count values, remem-
ber that from these values the up-counting would start and interrupt would be generated at the
time of rolling from all 1s to all 0s.
(iii) Select the mode of operation through bits 0 and 1 of TMOD and that of Timer/Counter mode
through bit 2 of TMOD.
(iv) Clear Gate bit (bit 3 of TMOD) so that RUN/STOP may be software controlled by TR0.
(v) If necessary, set priority through IP.1.
(vi) Start Timer 0 by setting TR0 of TCON (bit 4).
(vii) Enable Timer 0 interrupt by setting IE.1.
(viii) Enable global interrupt control bit by setting IE.7.
(ix) To stop Timer 0, clear TR0 (TCON.4).
15.5.2 | Checklist for Timer 1
e following ...