English
Language : 

TMP86CM23AUG Datasheet, PDF (90/204 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
8. 18-Bit Timer/Counter (TC1)
8.2 Control
TMP86CM23AUG
Timer/Counter 1 control register 2
TC1CR2
(0015H)
7
SEG
6
5
SGP
4
SGEDG
3
2
WGPSCK
1
TC6OUT
0
"0" (Initial value: 0000 000*)
External input clock (ECIN) edge 0: Counts at the falling edge
SEG
R/W
select
1: Counts at the both (falling/rising) edges
00: ECNT input
SGP
Window gate pulse select
01: Internal window gate pulse (TREG1B)
10: PWM6/PDO6/PPG6 (TC6)output
11: Reserved
R/W
SGEDG
Window gate pulse interrupt edge 0:
select
1:
Interrupts at the falling edge
Interrupts at the falling/rising edges
NORMAL1/2,IDLE1/2 modes
DV7CK="0" DV7CK="1"
SLOW1/2
mode
SLEEP1/2
mode
Window gate pulse source clock
WGPSCK
select
00:
01:
212/fc
213/fc
24/fs
25/fs
24/fs
25/fs
24/fs
25/fs
R/W
10:
214/fc
11:
Reserved
26/fs
Reserved
26/fs
Reserved
26/fs
Reserved
TC6OUT
TC6 output (PWM6/PDO6/PPG6)
external output select
0: Output to P33
1: No output to P33
R/W
Note 1: fc; High-frequency clock [Hz] fs; Low-frequency clock [Hz] *; Don't care
Note 2: Set the mode, source clock, and edge (selection) when the TC1 stops (TC1S = 00).
Note 3: If there is no need to use PWM6/PDO6/PPG6 as window gate pulse of TC1 always write "0" to TC6OUT.
Note 4: Make sure to write TC1CR2 "0" to bit 0 in TC1CR2.
Note 5: When using the event counter mode or pulse width measurement mode, set SEG to "0".
Page 80