datasheetbank_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

GMS82524TK View Datasheet(PDF) - Hynix Semiconductor

Part Name
Description
View to exact match
GMS82524TK
Hynix
Hynix Semiconductor Hynix
GMS82524TK Datasheet PDF : 93 Pages
First Prev 31 32 33 34 35 36 37 38 39 40 Next Last
HYUNDAI MicroElectronics
GMS82512/16/24
11.1 8-bit Timer / Counter Mode
The GMS825xx has four 8-bit Timer/Counters, Timer 0,
Timer 1, Timer 2, Timer 3. The Timer 0, Timer 1 are
shown in Figure .
The “timer” or “counter” function is selected by control
registers TM0, TM2 as shown in Table 11-1 and Table 11-
2. To use as an 8-bit timer/counter mode, bit CAP0 of TM0
is cleared to “0” and bits T1SL1, T1SL0 of TM0 or bits
T3SL1, T3SL0 of TM2 should not set to zero. These timers
have each 8-bit count register and data register. The count
register is increased by every internal or external clock in-
put. The internal clock has a prescaler divide ratio option
of 4, 16, 64 (selected by control bits TxSL1, TxSL0 of reg-
ister TMx).
TM0
EC0 PIN
XIN PIN
7
6
5
4
3
2
1
0
CAP0 T1ST T1SL1 T1SL0 BT0TSCTL T0CN T0SL1 T0SL0
ADDRESS: 0E2H
INITIAL VALUE: 00H
0
X
X
X
X
X
01 or 10 or 11
X means don’t care
T0SL[1:0]
00
÷4
÷ 16
÷ 64
01
10
11
MUX
T0CN
TIMER 0
T0ST
0: Stop
1: Clear and start
T0 (8-bit)
clear
T0IF
Comparator
TDR0 (8-bit)
TIMER 0
INTERRUPT
T1SL[1:0]
÷4
÷ 16
÷ 64
01
10
11
MUX
TIMER 1
T1ST
0: Stop
1: Clear and start
T1 (8-bit)
clear
Comparator
TDR1 (8-bit)
T1IF
F/F
TIMER 1
INTERRUPT
T1O PIN
Figure 11-2 8-bit Timer/Counter 0, 1
Example 1:
Timer0 = 4ms 8-bit timer mode at 4MHz
Timer1 = 1ms 8-bit timer mode at 4MHz
LDM
LDM
LDM
SET1
SET1
EI
TDR0,#250
TDR1,#250
TM0,#0110_1111B
T0E
T1E
Example 2:
Timer0 = 8-bit event counter mode
Timer1 = 1ms 8-bit timer mode at 4MHz
LDM
LDM
LDM
SET1
SET1
EI
TDR0,#250
TDR1,#250
TM0,#0110_1100B
T0E
T1E
FEB. 2000 Ver 1.00
35
 

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]