tmp88cs43fg TOSHIBA Semiconductor CORPORATION, tmp88cs43fg Datasheet - Page 78

no-image

tmp88cs43fg

Manufacturer Part Number
tmp88cs43fg
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
8. 16-Bit TimerCounter 1 (TC1)
8.2 TimerCounter Control
Timer Register
8.2 TimerCounter Control
TC1DRA
(0011H, 0010H)
TC1DRB
(0013H, 0012H)
TimerCounter 1 Control Register
MPPG1
MCAP1
ACAP1
METT1
TC1CK
(000FH)
TC1CR
TC1M
TC1S
TFF1
(TC1DRA and TC1DRB).
The TimerCounter 1 is controlled by the TimerCounter 1 control register (TC1CR) and two 16-bit timer registers
Note 1: fc: High-frequency clock [Hz]
Note 2: The timer register consists of two shift registers. A value set in the timer register becomes valid at the rising edge of the
Note 3: To set the mode, source clock, PPG output control and timer F/F control, write to TC1CR during TC1CR<TC1S>=00. Set
Note 4: Auto-capture can be used only in the timer, event counter, and window modes.
PPG output control
Timer F/F1 control
Auto capture control
Pulse width measure-
ment mode control
External trigger timer
mode control
TC1 start control
TC1 source clock select
[Hz]
TC1 operating mode
select
first source clock pulse that occurs after the upper byte (TC1DRAH and TC1DRBH) is written. Therefore, write the lower
byte and the upper byte in this order (it is recommended to write the register with a 16-bit access instruction). Writing only
the lower byte (TC1DRAL and TC1DRBL) does not enable the setting of the timer register.
the timer F/F1 control until the first timer start after setting the PPG mode.
TFF1
15
7
14
MCAP1
MPPG1
ACAP1
METT1
6
(Initial value: 1111 1111 1111 1111)
(Initial value: 1111 1111 1111 1111)
13
TC1DRAH (0011H)
TC1DRBH (0013H)
5
0:Auto-capture disable
0:Continuous pulse generation
0: Clear
0:Double edge capture
0:Trigger start
00: Stop and counter clear
01: Command start
10: Rising edge start
11: Falling edge start
00: Timer/external trigger timer/event counter mode
01: Window mode
10: Pulse width measurement mode
11: PPG (Programmable pulse generate) output mode
00
01
10
11
12
TC1S
Rising edge count (Event)
Positive logic count (Window)
Falling edge count (Event)
Negative logic count (Window)
11
4
10
(Ex-trigger/Pulse/PPG)
(Ex-trigger/Pulse/PPG)
3
DV1CK = 0
TC1CK
Page 68
fc/2
fc/2
fc/2
9
11
7
3
2
8
External clock (TC1 pin input)
NORMAL, IDLE mode
1
7
Timer
Read/Write (Write enabled only in the PPG output mode)
TC1M
O
O
6
1: Set
1:Auto-capture enable
1:Single edge capture
1:Trigger start and stop
1:One-shot
Extrig-
0
ger
O
O
O
5
Read/Write
(Initial value: 0000 0000)
Event
TC1DRAL (0010H)
TC1DRBL (0012H)
O
O
O
Read/Write
4
DV1CK = 1
fc/2
Win-
fc/2
fc/2
dow
O
O
O
12
8
4
3
Pulse
O
O
O
TMP88CS43FG
2
PPG
O
O
O
O
1
R/W
R/W
R/W
R/W
R/W
0

Related parts for tmp88cs43fg