
235
CHAPTER 9 MULTIFUNCTIONAL TIMER
[Bit 12]: CMOD
If pin output is allowed (OTE1 = 0 or OTE0 = 1), the pin output level reverse operation mode
is switched when a compare match is detected.
•
When CMOD = 0 (initial value), the output level of the pin corresponding to a compare
register is reversed.
OC0: The level is reversed due to a match with compare register 0.
OC1: The level is reversed due to a match with compare register 1.
•
When CMOD = 1, the output level of compare register 0 is reversed in the same way as
when CMOD = 0. However, the output level of the pin (OC1) corresponding to compare
register 1 is reversed in case of a match with compare register 0 and a match of compare
register 1. When the value of compare register 0 is the same as that of compare register 1,
the operation is the same as when a single compare register was used.
OC0: The level is reversed due to a match with compare register 0.
OC1: The level is reversed due to matches with compare registers 0 and 1.
[Bits 11 and 10]: OTE1 and OTE0
This bit is used to enable pin output of the output compare.
OTE1: Corresponds to output compare 1.
OTE0: Corresponds to output compare 0.
[Bits 9 and 8]: OTD1 and OTD0
These bits are used to change the pin output level, if pin output of the output compare
register is allowed. The initial value of the compare pin output is 0. To write a value, stop the
compare operation. During a read operation, the output compare pin output value can be
read.
OTD1: Corresponds to output compare 1.
OTD0: Corresponds to output compare 0.
[Bits 7 and 6]: IOP1 and IOP0
These bits are used as interrupt flags of the output compare. When the value of the compare
register matches the value of the 16-bit free-run timer, the bits are set to 1. If these bits are
set to 1 when the interrupt request bits (IOE1 and IOE0) are enabled, an output-compare
interrupt occurs. These bits are cleared by setting them to 0. Writing 1 has no effect.
Reading these bits with read modify write instructions always returns 1.
IOP1: Corresponds to output compare 1.
IOP0: Corresponds to output compare 0.
0
Operate as general-purpose ports (PF0 to PF7). (initial value)
1
Output compare pin output is allowed.
0
Set the compare pin output to 0. (initial value)
1
Set the compare pin output to 1.
0
No output compare match exists. (initial value)
1
An output compare match exists.
Содержание MB91150 Series
Страница 1: ......
Страница 2: ......
Страница 3: ...FUJITSU LIMITED FR30 32 BIT MICROCONTROLLER MB91150 Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 112: ...96 CHAPTER 3 MEMORY SPACE CPU AND CONTROL UNIT ...
Страница 174: ...158 CHAPTER 5 I O PORTS Note DDRI bit 6 is a test bit Always set the bit to 0 The value read from this bit is always 0 ...
Страница 178: ...162 CHAPTER 5 I O PORTS ...
Страница 214: ...198 CHAPTER 7 16 BIT RELOAD TIMER ...
Страница 240: ...224 CHAPTER 8 PPG TIMER ...
Страница 310: ...294 CHAPTER 13 8 10 BIT A D CONVERTER ...
Страница 318: ...302 CHAPTER 14 8 BIT D A CONVERTER ...
Страница 362: ...346 CHAPTER 15 UART ...
Страница 420: ...404 CHAPTER 19 PERIPHERAL STOP CONTROL ...
Страница 428: ...412 CHAPTER 20 CALENDAR MACROS ...
Страница 503: ...487 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 510: ...494 INDEX ...
Страница 512: ......