132
CHAPTER 7 8-BIT PWM TIMER
7.5
Operation of Interval Timer Function
This section describes the operation of the interval timer function of the 8-bit PWM
timer.
■
Operation of interval timer function
Figure 7.5-1 "Interval timer function settings" shows the settings required to operate as an interval timer
function.
Figure 7.5-1 Interval timer function settings
On activation, the counter starts to count up from "00
H
" on the rising edge of the selected count clock.
When the counter value matches the value set in the COMR register (compare value), the PWM timer
inverts the level of the output pin (PWM) on the next rising edge of the count clock, clears the counter, sets
the interrupt request flag bit (CNTR: TIR = "1"), and restarts counting from "00
H
".
Figure 7.5-2 "Operation of 8-bit PWM timer" shows the operation of the 8-bit PWM timer.
Figure 7.5-2 Operation of 8-bit PWM timer
CNTR
P/T
P1
P0
TPE
TIR
OE
TIE
0
1
COMR
Sets interval time (compare value).
: Used bit
1 : Set "1".
0 : Set "0".
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Counter value
Compare value (FF
H
)
Compare value (80
H
)
FF
H
80
H
00
H
COMR value (FF
H
)
Timer cycle
COMR value modified (FF
H
80
H
)*
Cleared by the program
Time
TIR bit
TPE bit
OE bit
PWM pin
When the output pin control bit (OE) is "0", the pin operates as a general-purpose I/O port (P41).
*: If the PWM compare register (COMR) value is modified during counter operation, the new value will be effective in next cycle.
Содержание MB89950 Series
Страница 2: ......
Страница 3: ...FUJITSU LIMITED F2MC 8L 8 BIT MICROCONTROLLER MB89950 950A Series HARDWARE MANUAL ...
Страница 4: ......
Страница 10: ...vi ...
Страница 34: ...20 CHAPTER 2 HANDLING DEVICES ...
Страница 134: ...120 CHAPTER 6 WATCHDOG TIMER ...
Страница 236: ...222 CHAPTER 10 UART ...
Страница 276: ...262 CHAPTER 12 LCD CONTROLLER DRIVER ...
Страница 310: ...296 APPENDIX ...
Страница 311: ...297 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 316: ...302 INDEX ...
Страница 318: ......