English
Language : 

GMS81504 Datasheet, PDF (29/54 Pages) List of Unclassifed Manufacturers – CMOS SINGLE-CHIP 8-BIT MICROCONTROLLER
HYUNDAI MicroElectronics
GMS81504
To pulse out, the timer match can goes to port pin as
shown in Figure 15. Thus, pulse out is generated by
the timer match. These operation is implemented to pin
T1O. The pin T1O is output from Timer 1. Output
frequency is calculated as following equation.
fT1O (Hz) =
fXIN
2 ⋅ Prescaler ⋅ TDR
fT1O: Pin T1O output pulse frequency
fXIN: Oscillator frequency
Prescaler: Refer to bit T1SL1,T1SL0 of TM0 at Figure 17.
PMR4
MSB
-
T1S
- EC0S -
LSB
- INT1S INT0S
ADDRESS: D0H
RESET VALUE: -0-0--00
0: R40
1: INT0 (EXTERNAL INTERRUPT 0)
0: R41
1: INT1 (EXTERNAL INTERRUPT 1)
0: R44
1: EC0 (EXTERNAL INPUT PIN FOR TIMER 0)
0: R46
1: T1O (TIMER 1 PULSE OUTPUT)
Figure 16. PMR4: R4 Port Mode Register
TM0
MSB
LSB
CAP0 T1ST T1SL1 T1SL0 T0ST T0CN T0SL1 T0SL0
TIMER 1
TIMER 0
ADDRESS: E2H
RESET VALUE: 00H
CAP0 Capture mode selection flag, When set, timer
operate as one 16-bit capture timer combine
two 8-bit timers.
T0ST When set, The Timer 0 Count Register is
cleared and start again.
When cleared, stop the counting.
T1ST When set, Timer 1 count register is cleared
and start again.
When cleared, stop the counting.
TIMER 1
T1SL1 T1SL0 INPUT CLOCK
0
0 16-BIT TIMER MODE (NOTE 1)
0
1 8-BIT TIMER, ÷ 4 ← PRESCALER
1
0 8-BIT TIMER, ÷ 16
1
1 8-BIT TIMER, ÷ 64
T0CN Start/Stop control for Timer 0. A logic 1
starts the timer.
TIMER 0
T0SL1 T0SL0 INPUT CLOCK
0
0 Timer or Counter select
0
1 ÷ 4 ← PRESCALER
1
0 ÷ 16
1
1 ÷ 64
NOTE:
If this mode selected, the Timer 0 are used as a 16-bit timer mode. The Timer 1 is engaged to the Timer 0.
The source clock is selected by bits T0SL1 and T0SL0.
Figure 17. TM0: Timer 0, Timer 1 Mode Register
29