Rev.1.07
Mar 19, 2009
REJ03B0140-0107
7545 Group
Fig. 31 Setting of carrier wave auto-control by timer 3
Carrier waveform
(Timer 2 output)
Timer 3 count value
Timer 3 underflow
Carrier wave output trigger bit
P42/CARR pin output
Output valid
Waveform output timing of remote-control waveform by carrier waveform output trigger bit
03 02 01 00
04
0X X 0 0 0 0X
b7
b0
12
11
0000011 X
b7
b0
10
0X X 0 1 0 1X
b7
b0
9
000011 X X
b7
b0
6
0000000 X
b7
b0
7
0X X X 1 0 1X
b7
b0
8
0000011 X
b7
b0
1
0000 X X X X
b7
b0
2
0 XXX 1 0 1 X
b7
b0
3
XXXXXXXX
b7
b0
XXXXXXXX
b7
b0
4
XXXXXXXX
b7
b0
5
Output invalid
Trigger invalid
(Successive output invalid duration)
Trigger invalid (Successive output valid duration)
Start (initial state after reset)
Timer 1, 2, 3 control register TC123 (2B16)
Set “1” to bit 1 and bit 2 to stop counting of timer 2 and timer 3.
Timer count source set register TCSS (2A16)
X: Set it to “0” or “1” arbitrary.
Select carrier waveform output for timer 3 count source by bit 2 and bit 3.
Timer 1, 2, 3 control register TC123 (2B16)
Set “0” to bit 1 and bit 2 to start counting of timer 2 and timer 3.
Carrier wave control register, CARCNT (2716)
During waveform output of remote-control, whether to output waveform or not
can be controlled by “bit 4: carrier waveform output trigger bit”.
(Refer to Figure below.)
Carrier wave control register, CARCNT (2716)
When waveform output is stopped, set “0” to
“bit 4: Carrier waveform output trigger bit”
while carrier waveform output is set to be invalid.
Timer 1, 2, 3 control register TC123 (2B16)
Set “1” to bit 1 and bit 2 to stop counting of timer 2 and timer 3.
When the carrier wave output circuit operation is started again,
execute the setting from the processing No.2.
Carrier wave control register, CARCNT (2716)
In order to change the carrier wave control from the auto-control by timer 3
to software carrier wave output, initialize the carrier wave circuit
by setting “0” to “bit 1: carrier wave output valid bit”.
Timer count source set register TCSS (2A16)
Set timer 2 count source to bit 0 and bit 1. Also, in order to initialize
carrier waveform circuit, be sure to select f(XIN)/16, f(XIN)/2 or f(XIN)/8
for timer 3 count source.
Do not select carrier waveform output (b3b2=112) for timer 3 count source.
Carrier wave control register, CARCNT (2716)
Set carrier wave control register.
bit 0: Set whether to expand waveform.
bit 1: Select “1: Carrier waveform generating function is valid”
bit 2: Select “0: Software output is invalid”
bit 3: Select “1: auto-control by timer 3 is valid.
bit 4: Select whether carrier waveform output trigger is valid or invalid.
bit 5: Select whether 455 kHz carrier wave generating mode is valid or invalid.
bit 6: Set output level of waveform.
bit 7: Set this bit to “0”.
Timer 2 secondary T2S (2D16)
Timer 2 primary T2P (2C16)
Set carrier wave “H”, “L” duration to timer 2 primary and timer 2 secondary,
respectively.(when 455 kHz carrier waveform generating mode is used,
this setting is not necessary.)
Timer 3 T3 (2E16)
Set valid period/invalid period of carrier waveform output to timer 3.
Waveform output of remote-control