English
Language : 

TMP89FW24ADFG Datasheet, PDF (228/548 Pages) Toshiba Semiconductor – 8 Bit Microcontroller TLCS-870/C1 Series
15. 10-Bit Timer/Counter (TCC)
15.2 Control
TMP89FW24A
Timer/Counter C0 Control Register 1
TC0CR1
(0x00E98)
Bit Symbol
Read/Write
After reset
7
TRGAM
R/W
0
6
TRGSEL
R/W
0
5
PPGC2INI
R/W
0
4
PPGC1INI
R/W
0
3
2
NCRSEL
R/W
R/W
0
0
1
0
TCCCK
R/W
R/W
0
0
TRGAM Trigger edge acceptance control
TRGSEL Select a trigger start edge.
PPGC2INI
Specify the initial value of PPG2
output.
PPGC1INI
Specify the initial value of PPG1
output.
NCRSEL
Select the duration of noise elimi-
nation for TCC0 input
(after passing through the flip-flop).
TCCCK Select a source clock
0: Always accept trigger edges.
1: (Refer to the setting of TC0CR2<PPGC2OE, PPGC1OE>)
0: Start on trigger falling edge.
1: Start on trigger rising edge.
0: Low (Positive logic)
1: High (Negative logic)
0: Low (Positive logic)
1: High (Negative logic)
00: Eliminate pulses shorter than 16/fcgck [s] as noise.
01: Eliminate pulses shorter than 8/fcgck [s] as noise.
10: Eliminate pulses shorter than 4/fcgck [s] as noise.
11: Do not eliminate noise. (Note)
00: fcgck [Hz]
01: fcgck/2 [Hz]
10: fcgck/22 [Hz]
11: fcgck/23 [Hz]
Note:Due to the circuit configuration, a pulse shorter than 1/fcgck may be eliminated as noise or accepted as a trig-
ger.
Timer/Counter C0 Control Register 2
TC0CR2
(0x00E99)
Bit Symbol
Read/Write
After reset
7
EMGR
R/W
0
6
EMGIE
R/W
0
5
PPGC2OE
R/W
0
4
PPGC1OE
R/W
0
3
2
CSTC
R/W
R/W
0
0
1
0
TCCOUT
R/W
R/W
0
0
EMGR
Cancel the emergency output stop
state.
EMGIE
Enable/disable input on the EMG0
pin.
PPGC2OE
Trigger edge accept control during
the PPGC02 output.
PPGC1OE
Trigger edge accept control during
the PPGC01 output.
CSTC Select a count start mode.
TCCOUT Select an output waveform mode.
-
0:
Cancel the emergency output stop state.
1:
(Upon canceling the state,this bit is automatically cleared to 0.)
0: Disable input.
1: Enable input.
When TC0CR1<TRGAM> is "0" When TC0CR1<TRGAM> is "1"
0: Always accept trigger edges.
1: Always accept trigger edges.
Always accept trigger edges.
Do not accept trigger edges dur-
ing active period.
0: Always accept trigger edges.
1: Always accept trigger edges.
Always accept trigger edges.
Do not accept trigger edges dur-
ing active period.
00: Command start and capture mode
01: Command start and trigger start mode.
10: Trigger start mode
11: Reserved
00: PPGC01/PPGC02 independent output
01: Reserved
10: Output with variable duty ratio
11: Output with 50% duty ratio
2012/5/18
RA000
Page 212