![](http://datasheet.mmic.net.cn/30000/M34286G2-XXXGP_datasheet_2359488/M34286G2-XXXGP_17.png)
Rev.1.00
Aug 06, 2008
page 15 of 64
REJ03B0251-0100
4286 Group
Fig. 16 Carrier wave generation example by timer 2
Fig. 15 Port CARR output control by timer 1
Port CARR output
Register V12
a
b
c
Set the interval “a” to timer 1. Set the interval “b”
to reload register R1.
Set the interval “c”
to reload register R1.
Set the interval “d”
to reload register R1.
d
Timer 1 underflow
Port CARR output
Carrier wave output start
Timer 1 starts
Carrier wave output start
Count source CARRY selected
Auto-control valid
Auto-control invalid
Timer 1 stop
Carrier wave output stop
(Note)
(V11)←0
(V10)←1
(V12)←1
(V10)←0
CARRY
Timer 1 underflow
“H”
“L”
“1”
“0”
“H”
“L”
“1”
“0”
“H”
“L”
“1”
“0”
Note: When timer 1 is stopped, the port CARR output auto-control is terminated regardless of bit 2 (V12) of register V1.
▲▲
▲
(R2L)
(R2H)
(R2L)
(R2H)
(R2L)
(R2H)
CARRYD
(R2L)
(R2H)(R2L)
(R2H)
(R2L)
(R2H)
Timer 2 count value
(Reload register)
Timer 2 underflow signal
CARRYD
Timer 2 starts
Carrier wave period:
7 clocks
To expand “H” interval of carrier wave is invalid (V23=“0”)
[Count source: 4.0 MHz, Resolution: 250 ns]
To expand “H” interval of carrier wave is valid (V23=“1”)
(When count source is 4.0 MHz, carrier wave is expanded for 125 ns]
0216 0116 0016
0316
0216 0116
0216 0116 0016
0316
0216 0116 0016
0316
0216 0116 0016
0316
0216
0116 0016
0216
0116 0016
0216 0116 0016
0316
0216 0116 0016
0316
3 clocks
interval
Timer 2 count source
Timer 2 count value
(Reload register)
Timer 2 underflow signal
Timer 2 starts
3 clocks
interval
Carrier wave period:
7 clocks
Carrier wave period:
7.5 clocks
3.5 clocks
interval
3.5 clocks
interval
Carrier wave period:
7.5 clocks
Note: When to expand “H” interval of the carrier wave is valid, set “0116” or more to reload register R2H.
● In this case, the following is set;
Timer 2 carrier wave generation function is valid (V22=“1”),
“L” interval (0316) of carrier wave is set to reload register R2L
“H” interval (0216) of carrier wave is set to reload register R2H