280
T
able 8-1
1 (e) ITU Operating Modes (Channel 4)
Register Settings
TSNC
TMDR
TFCR
T
OCR
T
OER
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
—
—
*
3
——
*
1
PWM mode
—
—
PWM4 = 1
CMD1 = 0
CMD1 = 0
—
—
—
*
2
Output compare A
—
—
PWM4 = 0
CMD1 = 0
CMD1 = 0
—
—
IOA2 = 0
Other bits
unrestricted
Output compare B
—
—
CMD1 = 0
CMD1 = 0
—
—
IOB2 = 0
Other bits
unrestricted
Input capture A
—
—
PWM4 = 0
CMD1 = 0
CMD1 = 0
—
—
EA4 ignored
IOA2 = 1
Other bits
Other bits
unrestricted
unrestricted
Input capture B
—
—
PWM4 = 0
CMD1 = 0
CMD1 = 0
—
—
EB4 ignored
IOB2 = 1
Other bits
Other bits
unrestricted
unrestricted
Counter
By compare
—
—
Illegal setting:
*
4
——
*
1
CCLR1 = 0
clearing
match/input
CMD1 = 1
CCLR0 = 1
capture A
CMD0 = 0
By compare
—
—
Illegal setting:
*
4
——
*
1
CCLR1 = 1
match/input
CMD1 = 1
CCLR0 = 0
capture B
CMD0 = 0
Syn-
SYNC4 = 1
—
—
Illegal setting:
*
4
——
*
1
CCLR1 = 1
chronous
CMD1 = 1
CCLR0 = 1
clear
CMD0 = 0
Complementary
*
3
—
—
—
CMD1 = 1
CMD1 = 1
—
—
CCLR1 = 0
*
5
PWM mode
CMD0 = 0
CMD0 = 0
CCLR0 = 0
Reset-synchronized
—
—
—
CMD1 = 1
CMD1 = 1
—
—
*
6
*
6
PWM mode
CMD0 = 1
CMD0 = 1
Buf
fering
—
—
BF
A4 = 1
—
—
*
1
(BRA)
Other bits
unrestricted
Buf
fering
—
—
BFB4 = 1
—
—
*
1
(BRB)
Other bits
unrestricted
Legend:
Setting available (valid). — Setting does not affect 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.