English
Language : 

HMS87C5216 Datasheet, PDF (48/76 Pages) List of Unclassifed Manufacturers – CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER FOR UR(Universal Remocon) & WIRELESS KEYBOARD
HMS87C5216
Timer Mode Register (TM0, TM1) to ``1`` When used as Single
Mode, Timer counts up and compares with value of Data Regis-
ter. If the result is same, Time Out interrupt occurs and level
of Timer Output port toggle, then counter stops as reset state.
When used as Modulo-N Mode, T0MOD (T1MOD) should be set
``0``. Counter counts up until the value of Data Register and oc-
curs Time-out interrupt. The level of Timer Output port toggle
and repeats process of
counting the value which is selected in Data Register. During
Modulo-N Mode, If interrupt select bit (T0IFS, T1IFS) of Mode
Register is ``0``, Interrupt occurs on every Time-out. If it is ``1``,
Interrupt occurs every second time-out.
Note: (*note. Timer Output is toggled whenever time
out happen)
[ Single Mode ]
8bit / 16bit
counting
Timer Enable initial.
value toggle.
[ Modulo-N Mode ]
8bit / 16bit
counting
Timer-output toggle.
interrupt occurs.
count stop.
Timer Enable initial.
value toggle.
Timer-Output Toggle.
Int occurs (IFS = 1) Each 2nd time out.
Int occurs (IFS = 0) When Time out.
Figure 12-16 Operation Diagram for Single/Modulo-N
Mode
(4) Timer 2
Timer2 operates as a up-counter. The content of T2DR are com-
pared with the contents of up-counter. If a match is found.
Timer2 interrupt (IFT2) is generated and the up-counter is
cleared to ``00 h``. Therefore, Timer2 executes as a interval tim-
er. Interrupt period is determined by the count source clock for
the Timer2 and content of T2DR. When T2ST is set to ``1``,
count value of Timer 2 is cleared and starts counting-up. For
clearing and starting the Timer2. T2ST have to set to ``1`` after
set to ``0``. In order to write a value directly into the T2DR, T2ST
should be set to ``0``. Count value of Timer2 can be read at any
time.
SEP. 2004 Ver 1.01