English
Language : 

GMS81C5108 Datasheet, PDF (46/102 Pages) Hynix Semiconductor – HYNIX SEMICONDUCTOR INC. 8-BIT SINGLE-CHIP MICROCONTROLLERS
GMS81C5108
11. BASIC INTERVAL TIMER
The GMS81C5108 has one 8-bit Basic Interval Timer that
is free-run and can not stop. Block diagram is shown in
Figure 11-1.
The Basic Interval Timer Register (BITR) is increased ev-
ery internal count pulse which is divided by prescaler.
Since prescaler has divided ratio by 8 to 1024, the count
rate is 1/8 to 1/1024 of the oscillator frequency. After reset,
the BCK bits are all set, so the longest oscillation stabiliza-
tion time is obtained.
It also provides a Basic interval timer interrupt (BITF).
The count overflow of BITR from FFH to 00H causes the
interrupt to be generated. The Basic Interval Timer is con-
trolled by the clock control register (CKCTLR) shown in
Figure 11-2.
Source clock can be selected by lower 3 bits of CKCTLR.
When write “1” to bit BCL of CKCTLR, BITR register is
cleared to “0” and restart to count up. The bit BCL be-
comes “0” automatically after one machine cycle by hard-
ware.
BITR and CKCTLR are located at same address, and ad-
dress 0F4H is read as a BITR, and written to CKCTLR.
fMAIN÷23 or fSUB÷23
fMAIN÷24 or fSUB÷24
fMAIN÷25 or fSUB÷25
fMAIN÷26 or fSUB÷26
fMAIN÷27 or fSUB÷27
fMAIN÷28 or fSUB÷28
fMAIN÷29 or fSUB÷29
fMAIN÷210 or fSUB÷210
source
clock
MUX
8-bit up-counter
BITR
overflow
[0F4H]
clear
Select Input clock 3
fMAIN: main-clock frequency
BCK<2:0>
BCL
fSUB: sub-clock frequency
[0F4H]
CKCTLR
Basic Interval Timer
clock control register
Internal bus line
BITF
Basic Interval Timer Interrupt
Figure 11-1 Block Diagram of Basic Interval Timer
BCK
<2:0>
000
001
010
011
100
101
110
111
Source clock
SCMR[1:0]=
00 or 01
SCMR[1:0]=
10 or 11
fMAIN÷23
fMAIN÷24
fMAIN÷25
fMAIN÷26
fMAIN÷27
fMAIN÷28
fMAIN÷29
fMAIN÷210
fSUB÷23
fSUB÷24
fSUB÷25
fSUB÷26
fSUB÷27
fSUB÷28
fSUB÷29
fSUB÷210
Interrupt (overflow) Period
At fMAIN=4MHz At fSUB=32.768kHz
0.512 ms
1.024
2.048
4.096
8.192
16.384
32.768
65.536
62.5 ms
125.0
250.0
500.0
1000.0
2000.0
4000.0
8000.0
Table 11-1 Basic Interval Timer Interrupt Time
JUNE 2001 Ver 1.0
43