Page 74
8. 18-Bit Timer/Counter (TC1)
8.2 Control
TMP86PM29BUG
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".
Timer/Counter 1 control register 2
7
6
5
4
3
2
1
0
TC1CR2
(0015H)
SEG
SGP
SGEDG
WGPSCK
TC6OUT
"0"
(Initial value:
0000 000*)
SEG
External input clock (ECIN) edge
select
0:
1:
Counts at the falling edge
Counts at the both (falling/rising) edges
R/W
SGP
Window gate pulse select
00:
01:
10:
11:
ECNT input
Internal window gate pulse (TREG1B)
PWM6
/
PDO6
/
PPG6
(TC6)output
Reserved
R/W
SGEDG
Window gate pulse interrupt edge
select
0:
1:
Interrupts at the falling edge
Interrupts at the falling/rising edges
WGPSCK
Window gate pulse source clock
select
NORMAL1/2,IDLE1/2 modes
SLOW1/2
mode
SLEEP1/2
mode
R/W
DV7CK="0"
DV7CK="1"
00:
01:
10:
11:
2
12
/fc
2
13
/fc
2
14
/fc
Reserved
2
4
/fs
2
5
/fs
2
6
/fs
Reserved
2
4
/fs
2
5
/fs
2
6
/fs
Reserved
2
4
/fs
2
5
/fs
2
6
/fs
Reserved
TC6OUT
TC6 output (
PWM6
/
PDO6
/
PPG6
)
external output select
0:
1:
Output to
P33
No output to P33
R/W
Summary of Contents for TLCS-870/C Series
Page 1: ...8 Bit Microcontroller TLCS 870 C Series TMP86PM29BUG ...
Page 6: ...TMP86PM29BUG ...
Page 7: ...Revision History Date Revision 2007 10 11 1 First Release 2008 8 29 2 Contents Revised ...
Page 9: ......
Page 15: ...vi ...
Page 19: ...Page 4 1 3 Block Diagram TMP86PM29BUG 1 3 Block Diagram Figure 1 2 Block Diagram ...
Page 23: ...Page 8 1 4 Pin Names and Functions TMP86PM29BUG ...
Page 48: ...Page 33 TMP86PM29BUG ...
Page 49: ...Page 34 2 Operational Description 2 3 Reset Circuit TMP86PM29BUG ...
Page 61: ...Page 46 3 Interrupt Control Circuit 3 8 External Interrupts TMP86PM29BUG ...
Page 81: ...Page 66 6 Watchdog Timer WDT 6 3 Address Trap TMP86PM29BUG ...
Page 135: ...Page 120 10 8 Bit TimerCounter TC5 TC6 10 1 Configuration TMP86PM29BUG ...
Page 145: ...Page 130 11 Asynchronous Serial interface UART 11 9 Status Flag TMP86PM29BUG ...
Page 165: ...Page 150 13 10 bit AD Converter ADC 13 6 Precautions about AD Converter TMP86PM29BUG ...
Page 183: ...Page 168 15 LCD Driver 15 4 Control Method of LCD Driver TMP86PM29BUG ...
Page 201: ...Page 186 18 Electrical Characteristics 18 9 Handling Precaution TMP86PM29BUG ...
Page 203: ...Page 188 19 Package Dimensions TMP86PM29BUG ...
Page 205: ......