English
Language : 

W78E516DDG Datasheet, PDF (22/90 Pages) Nuvotem Talema – 8-BIT MICROCONTROLLER
W78E516D/W78E058D Data Sheet
GATE
C/ T
M1
M0
GATE
C/ T
M1
M0
TIMER1
TIMER0
Mnemonic: TMOD
Address: 89h
BIT NAME
7 GATE
6
C/ T
5 M1
4 M0
3 GATE
2
C/ T
1 M1
0 M0
FUNCTION
Gating control: When this bit is set, Timer/counter 1 is enabled only while the INT1
pin is high and the TR1 control bit is set. When cleared, the INT1 pin has no effect,
and Timer 1 is enabled whenever TR1 control bit is set.
Timer or Counter Select: When clear, Timer 1 is incremented by the internal clock.
When set, the timer counts falling edges on the T1 pin.
Timer 1 mode select bit 1. See table below.
Timer 1 mode select bit 0. See table below.
Gating control: When this bit is set, Timer/counter 0 is enabled only while the INT 0
pin is high and the TR0 control bit is set. When cleared, the INT0 pin has no ef-
fect, and Timer 0 is enabled whenever TR0 control bit is set.
Timer or Counter Select: When clear, Timer 0 is incremented by the internal clock.
When set, the timer counts falling edges on the T0 pin.
Timer 0 mode select bit 1. See table below.
Timer 0 mode select bit 0. See table below.
M1, M0: Mode Select bits:
M1 M0 MODE
0 0 Mode 0: 8-bit timer/counter TLx serves as 5-bit pre-scale.
0 1 Mode 1: 16-bit timer/counter, no pre-scale.
1 0 Mode 2: 8-bit timer/counter with auto-reload from THx.
1 1 Mode 3: (Timer 0) TL0 is an 8-bit timer/counter controlled by the standard Timer0 control
bits. TH0 is an 8-bit timer only controlled by Timer1 control bits. (Timer 1) Timer/Counter
1 is stopped.
Timer 0 LSB
Bit: 7
6
5
TL0.7
TL0.6
TL0.5
Mnemonic: TL0
BIT NAME FUNCTION
7-0 TL0.[7:0] Timer 0 LSB.
Timer 1 LSB
Bit: 7
TL1.7
6
TL1.6
5
TL1.5
4
TL0.4
3
TL0.3
4
TL1.4
3
TL1.3
- 22 -
2
TL0.2
2
TL1.2
1
TL0.1
0
TL0.0
Address: 8Ah
1
TL1.1
0
TL1.0