140
CHAPTER 7 8-BIT PWM TIMER
●
Count clock selector
The count clock selector selects one of three types of internal counter clock. The selector also selects an 8/
16-bit capture timer or counter and uses it to increment the count of the 8-bit counter.
●
8-bit counter
This counter is incremented by the count clock selected by the count clock selector.
●
Comparator
A latch in the comparator holds the COMR register value when the value of the 8-bit counter is 00
H
and
then compares the 8-bit counter with the COMR register value latched and detects a match.
●
PWM generation circuit and PWM output control circuit
During the interval timer operation, once a match is detected, an interrupt request occurs. And when the bit
to control the output pin (CNTR: OE) is "1", the output level of the P50/PWM pin is inverted by the output
control circuit, at which time the 8-bit counter is cleared.
During the PWM timer operation, once a match is detected, the output level of the P50/PWM pin is
changed from "H" level to "L" level by the PWM generation circuit. Thereafter, when the 8-bit counter
overflows, the output level is returned to "H" level.
●
COMR register
This register is used to set a value for comparison with the counter value of the 8-bit counter.
●
CNTR register
This register is used to select the operation mode, enable and disable operations, set the count clock, control
interrupts, and check status.
When the operation mode is the PWM timer mode (P/TX = 0), the 8-bit counter cannot be cleared (by the
match detection signal from the comparator) and the interrupt request (IRQ9) is disabled.
Содержание F2MC-8L F202RA
Страница 2: ......
Страница 4: ......
Страница 32: ...16 CHAPTER 1 OVERVIEW ...
Страница 90: ...74 CHAPTER 3 CPU ...
Страница 142: ...126 CHAPTER 5 TIME BASE TIMER POPW A RETI ENDS END ...
Страница 150: ...134 CHAPTER 6 WATCHDOG TIMER ...
Страница 174: ...158 CHAPTER 7 8 BIT PWM TIMER User processing POPW A XCHW A T Restoring A and T POPW A RETI ENDS ...
Страница 176: ...160 CHAPTER 7 8 BIT PWM TIMER ...
Страница 220: ...204 CHAPTER 8 8 16 BIT CAPTURE TIMER COUNTER ...
Страница 240: ...224 CHAPTER 9 12 BIT PPG TIMER ...
Страница 258: ...242 CHAPTER 10 EXTERNAL INTERRUPT CIRCUIT 1 EDGE PUSHW A User processing POPW A XCHW A T POPW A RETI ENDS END ...
Страница 274: ...258 CHAPTER 11 EXTERNAL INTERRUPT CIRCUIT 2 LEVEL ...
Страница 362: ...346 CHAPTER 15 BUZZER OUTPUT ...
Страница 371: ...355 CHAPTER 16 WILD REGISTER FUNCTION 16 3 5 Data Test Set Register WROR A test register Do not access this register ...
Страница 390: ...374 CHAPTER 17 FLASH MEMORY ...
Страница 419: ...403 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 434: ...418 INDEX ...
Страница 436: ......