gc80c520g CORERIVER Semiconductor, gc80c520g Datasheet - Page 27

no-image

gc80c520g

Manufacturer Part Number
gc80c520g
Description
Eprom / Rom / Romless Based 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
Timer
Timer0
Timer1
TMOD (89h) : Timer/Counter 0/1 Mode Control Register
R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0)
6.9. Timer/Counter : Timer 0/1
GATE
Compatible with traditional 80C52 Timer/Counter
Time base is selectable by S/W : 4 clocks or 12 clocks
Mode
[0
[0
[1
[1
Timer[1]: GATE[7], C/T[6], M1:M0[5:4]
Timer[0]: GATE[3], C/T[2], M1:M0[1:0]
GATE
C/T
M1, M0 : Mode Selector bits
(M1,M0=00)
0]
1]
0]
1]
13-bit T/C
13-bit T/C
C/T
Mode 0
: When TRx (in TCON) is set and GATE=1, Timer x will run only
: Counter or Timer Selector. Cleared for Timer operation
(Timer 1) stopped,
(Timer 0) TL0: 8-bit T/C controlled by the Timer 0 control bits.
Mode 0. 13-bit T/C.
Mode 1. 16-bit T/C.
Mode 2. 8-bit Auto-Reload T/C.
Mode 3.
while INTx pin is high (hardware control). When GATE=0,
Timer x will run only while TRx=1 (software control).
(input from internal system clock). Set for Counter operation
(input from Tx input pin).
M1
(M1,M0=01)
16-bit T/C
16-bit T/C
Mode 1
TH0: 8-bit T/C controlled by the Timer 1 control bits.
M0
with automatic reload
with automatic reload
GATE
(TL0
(TL1
(M1,M0=10)
8-bit T/C
8-bit T/C
Mode 2
C/T
TH0)
TH1)
M1
8-bit T/C (TH0)
8-bit T/C (TL0)
Timer0 interrupt
Timer1 interrupt
(M1,M0=11)
M0
Mode 3
Halt
CKCON (8Eh) : Clock Control Register
TCON (88h) : Timer/Counter 0/1 Control Register
TL0 (8Ah) : Timer/Counter 0 Low Byte Register
TH0 (8Ch) : Timer/Counter 0 High Byte Register
TL1 (8Bh) : Timer/Counter 1 Low Byte Register
TH1 (8Dh) : Timer/Counter 1 High Byte Register
R/W(0) R/W(0) R/W(0) R/W(0) R/W(0)
R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0)
TH0.7
TH1.7
TL0.7
TL1.7
WD1
TF1
T1M : Timer 1 Clock Time-base Selection
T0M : Timer 0 Clock Time-base Selection
TF1
TR1
TF0
TR0
IE1
IT1
IE0
IT0
TH0.6
TH1.6
TL0.6
TL1.6
WD0
: Timer 1 Overflow Flag
: Timer 1 Run Control
: Timer 0 Overflow Flag
: Timer 0 Run Control
: External Interrupt 1 Flag
: External Interrupt 1 Type Select
: External Interrupt 0 Flag
: External Interrupt 0 Type Select
TR1
T1M=1, Time-base is 4 clocks not 12clocks.
T0M=1, Time-base is 4 clocks not 12clocks.
Edge Detect (IT1=1). Level Detect (IT1=0)
Edge Detect (IT0=1). Level Detect (IT0=0)
TH0.5
TH1.5
TL0.5
TL1.5
T2M
TF0
MiDAS1.0 Family
TH0.4
TH1.4
TL0.4
TL1.4
T1M
TR0
TH0.3
TH1.3
TL0.3
TL1.3
T0M
IE1
TH0.2
TH1.2
TL0.2
TL1.2
IT1
-
TH0.1
TH1.1
TL0.1
TL1.1
IE0
-
TH0.0
TH1.0
TL0.0
TL1.0
IT0
-
[27]

Related parts for gc80c520g