157
CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)
Figure 8.5-2 Operation in reload timer mode
Reference:
Setting the RLBR register value to "01
H
" causes the TO bit to be inverted after each count clock cycle.
●
One-shot timer mode
Figure 8.5-3 "Interval timer function (one-shot timer mode) settings" shows the settings required to operate
in one-shot timer mode.
Figure 8.5-3 Interval timer function (one-shot timer mode) settings
On activation, the RLBR register value is loaded to the counter and the counter starts to count down on the
rising edge of the selected count clock. When the counter value underflows (01
H
--> 00
H
), the counter
inverts the timer output bit (PCR2: TO) value, automatically clears the counter operation enable bit (PCR1:
EN = "0") to stop counter operation, and sets the underflow (01
H
--> 00
H
) interrupt request flag bit (PCR1:
UF = "1") on the next rising edge of the count clock.
Figure 8.5-4 "Operation in one-shot timer mode" shows the operation in one-shot timer mode.
Counter value
FF
H
80
H
00
H
Timer cycle
Cleared by the program
Time
UF bit
EN bit
TOE bit
RLBR value
(FF
H
)
RLBR value is modified*
(FF
H
80
H
)
Reload
(TO bit)
For an initial value of “0”
*: If the PWC reload buffer register (RLBR) value is modified during operation, the new value will be effective in next cycle.
PCR1
EN
IE
UF
IR
BF
1
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
X
X
X
X
X
PCR2
FC
RM
TO
C1
C0
W1
W0
0
1
RLBR
Sets interval time (counter initial value).
: Used bit
: Unused bit
1 : Set "1".
0 : Set "0".
Содержание 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: ......