Fujitsu FR81S User Manual
CHAPTER 25: 16-BIT OUTPUT COMPARE
4. Registers
FUJITSU SEMICONDUCTOR LIMITED
CHAPTER
: 16-BIT OUTPUT COMPARE
FUJITSU SEMICONDUCTOR CONFIDENTIAL
14
⋅
This bit is used to switch the compare output level inversion mode immediately when a match is detected.
⋅
The compare output for an output compare can be output from the waveform generator output pin (RTO).
See "CHAPTER: WAVEFORM GENERATOR" for the output setting method.
⋅
When this bit is set to "0":
When the compare mode control register: MOD0/MOD1=0
- For the compare mode control register: MOD0=0
The compare output 0 is immediately inverted when there is a match between the 16-bit free-run
timer and the output compare register (OCCP6).
- For the compare mode control register: MOD1=0
The compare output 1 is immediately inverted when there is a match between the 16-bit free-run
timer and the output compare register (OCCP7).
For the compare mode control register: MOD0/MOD1=1
- Set to "1" when a match is detected in up-count mode.
- Reset to "0" when a match is detected in down-count mode.
⋅
When this bit is set to "1":
When the compare mode control register: MOD0/MOD1=0
- For the compare mode control register: MOD0=0
The compare output 0 is immediately inverted when there is a match between the 16-bit free-run
timer and the output compare register (OCCP0).
- For the compare mode control register: MOD1=0
The compare output 1 is immediately inverted when there is a match between the 16-bit free-run
timer and the output compare register (OCCP0 or OCCP1).
- When the output compare registers (OCCP0 and OCCP1) have the same value, the operation is
the same as when one compare register is used.
For the compare mode control register: MOD0/MOD1=1
- Reset to "0" when a match is detected in up-count mode.
- Set to "1" when a match is detected in down-count mode.
⋅
For ch.2,3 and ch.4,5, the operation is the same as ch.0,1.
[bit11, bit10] Reserved
Always write 0 to these bits
[bit9] OTD1: Output level bit
OTD1
Function
Read
Write
0
Output value of the compare output 1
The compare output 1 outputs "0".
1
The compare output 1 outputs "1".
⋅
This bit is used to change the compare output 1 level of the output compare.
⋅
The initial value of the compare pin output is "0".
⋅
Be sure to stop the compare operation before writing a value to this bit. The value read from this bit is the
output compare value (compare output 1).
Note:
A value can be written to this bit when CST1: bit1=0 in the compare control register (OCS).
MB91520 Series
MN705-00010-1v0-E
969