394
T
able 10-11 (e) ITU Operating Modes (Channel 4)
Register Settings
TSNC
TMDR
TFCR
T
OCR
T
O
ER
TIOR4
TCR4
Comple-
Reset-
Output
Synchro-
mentary Synchro-
Level
Master
Clear
Clock
Operating Mode
nization
MDF
FDIR
PWM
PWM
nized PWM
Buffering
XTGD
Select
Enable
IOA
IOB
Select
Select
Synchronous preset
SYNC4 = 1
—
—
oo
*
3
oo
——
o
*
1
oo
o
o
PWM mode
o
—
—
PWM4 = 1
CMD1 = 0
CMD1 = 0
o
——
o
—
o
*
2
oo
Output compare A
o
—
—
PWM4 = 0
CMD1 = 0
CMD1 = 0
o
——
o
IOA2 = 0
oo
o
Other bits
unrestricted
Output compare B
o
——
o
CMD1 = 0
CMD1 = 0
o
——
oo
IOB2 = 0
oo
Other bits
unrestricted
Input capture A
o
—
—
PWM4 = 0
CMD1 = 0
CMD1 = 0
o
—
—
EA4 ignored
IOA2 = 1
oo
o
Other bits
Other bits
unrestricted
unrestricted
Input capture B
o
—
—
PWM4 = 0
CMD1 = 0
CMD1 = 0
o
—
—
EB4 ignored
o
IOB2 = 1
oo
Other bits
Other bits
unrestricted
unrestricted
Counter By
compare
o
——
o
Illegal setting:
o
*
4
o
——
o
*
1
oo
CCLR1 = 0
o
clearing
match/input
CMD1 = 1
CCLR0 = 1
capture A
CMD0 = 0
By compare
o
——
o
Illegal setting:
o
*
4
o
——
o
*
1
oo
CCLR1 = 1
o
match/input
CMD1 = 1
CCLR0 = 0
capture B
CMD0 = 0
Syn-
SYNC4 = 1
—
—
o
Illegal setting:
o
*
4
o
——
o
*
1
oo
CCLR1 = 1
o
chronous
CMD1 = 1
CCLR0 = 1
clear
CMD0 = 0
Complementary
o
*
3
—
—
—
CMD1 = 1
CMD1 = 1
oo
o
o
—
—
CCLR1 = 0
o
*
5
PWM mode
CMD0 = 0
CMD0 = 0
CCLR0 = 0
Reset-synchronized
o
—
—
—
CMD1 = 1
CMD1 = 1
oo
o
o
——
o
*
6
o
*
6
PWM mode
CMD0 = 1
CMD0 = 1
Buf
fering
o
——
oo
o
BF
A4 = 1
—
—
o
*
1
oo
o
o
(BRA)
Other bits
unrestricted
Buf
fering
o
——
oo
o
BFB4 = 1
—
—
o
*
1
oo
o
o
(BRB)
Other bits
unrestricted
Legend:
o
Setting available (valid). — Setting does not af
fect this mode.
Notes:
1.
Master enable bit settings are valid only during waveform output.
2.
The input capture function cannot be used in PWM mode. If compare match A and compare match B occur simultaneously
, the compa
re match signal is inhibited.
3.
Do not set both channels 3 and 4 for synchronous operation when complementary PWM mode is selected.
4.
When reset-synchronized PWM mode is selected, TCNT4 operates independently and the counter clearing function is available. W
a
veform output is not af
fected.
5.
In complementary PWM mode, select the same clock source for channels 3 and 4.
6.
TCR4 settings are valid in reset-synchronized PWM mode, but TCNT4 operates independently
, without af
fecting waveform output.
www.DataSheet4U.com