![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_325.png)
MB90560 series
CHAPTER 12 MULTI-FUNCTION TIMER
301
Table 12.3.2.2-1 Compare Control Register (Upper, OSC1/3/5) Bit
Bit
Function
Bit 15
Bit 14
Bit 13
Unused bit
The read value is indeterminate.
Writing to this bit has no effect on the operation.
Bit 12
CMOD:
Output Level
reverse mode
bit
CMOD is used to switch the pin output level reverse mode upon
a match while pin output is enabled (OTE1=1 or OTE0=1).
When CMOD=0 (default), the output level of the pin is reversed
upon a match with corresponding compare register.
RT0/2/4: The level is reversed upon a match between the
16-bit free-run timer and compare register 0/2/4.
RT1/3/5: The level is reversed upon a match between the
16-bit free-run timer and compare register 1/3/5.
When CMOD=1, the output level of the pin corresponding to
compare register is reversed as same as when CMOD=0.
However, the output level of the pin (RT1) corresponding to
compare register 1 is reversed only when a match is detected in
both compare register 0 and 1. If compare registers 0 and 1
have the same value, the same operation as when only one
compare register is used.
RT0/2/4: The level is reversed upon a match between the
16-bit free-run timer and compare register 0/2/4.
RT1/3/5: The level is reversed upon a match between the
16-bit free-run timer and compare register 0 or 1, 2
or 3, 4 or 5.
Bit 11
OTE1:
Output enable
bit
This bit is used to enable output compare pin output for output
compare 1/3/5.
The initial value for these bits is '0'.
Note:
The output enable bit of the waveform generator must
be set when dead-time timer is used in the waveform
generator.
Bit 10
OTE0:
Output enable
bit
This bit is used to enable output compare pin output for output
compare 0/2/4.
The initial value for these bits is '0.'
Note:
The output enable bit of the waveform generator must
be set when dead-time timer is used in the waveform
generator.
Bit 9
OTD1:
Output level
bit
This bit is used to change the pin output level for output
compare 1/3/5 when the output compare pin output is enabled.
The initial value of the compare pin output is '0.'
Ensure that the compare operation is stopped before a value is
written. When reading this bit, this bit indicate the output
compare pin output value
Bit 8
OTD0:
Output level
bit
This bit is used to change the pin output level for output
compare 0/2/4 when the output compare pin output is enabled.
The initial value of the compare pin output is '0.'
Ensure that the compare operation is stopped before a value is
written. When reading this bit, this bit indicates the output
compare pin output value.