MB89620 series
CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)
165
Table 8.3.1 PWC Pulse Width Control Register 1 (PCR1) Bits
Bit
Function
Bit 7
EN:
Counter operation
enable bit
• For the interval timer function:
Writing “1” to this bit starts the counter counting-down from the PWC reload
buffer register (RLBR) value. Writing “0” to this bit stops the counter operation.
• For the pulse width measurement function:
Writing “1” to this bit enables measurement. The counter starts counting-down
from “FF
H
” on detection of the specified edge on the measurement pulse.
Writing “0” to this bit stops the counter operation.
Check: If operation is disabled (EN = “0”) during measurement in pulse width
measurement mode, the counter stops but the value is not transferred to
the RLBR register. Restarting operation (EN = “1”) sets the counter value
to “FF
H
” then enables operation.
Bit 6
TOE:
Output pin control bit
This bit specifies whether to function the P36/WTO pin as a general-purpose port
(TOE = “0”) or as a dedicated pin (interval timer output) (TOE = “1”).
If set as a dedicated pin, the timer output bit (PCR2: TO) value is output to the
WTO pin.
Note: The pin functions as an output pin (WTO pin) if set as a dedicated pin in the
output pin control bit (TOE = “1”), regardless of the state of the general-
purpose port (P36).
Bit 5
IE:
Interrupt request
enable bit
This bit enables or disables an interrupt request output to the CPU.
An interrupt request is output when both this bit and one or more of the interrupt
request flag bits (UF, IR, and BF) are “1”.
Bit 4
Bit 3
Unused bits
• The read value is indeterminate.
• Writing to these bits has no effect on the operation.
Bit 2
UF:
Underflow (01
H
→
00
H
) interrupt request
flag bit
•
This bit is set to “1” when the counter underflow (01
H
→
00
H
)
occurs.
An interrupt request is output when both this bit and the interrupt request enable
bit (IE) are “1”.
• Writing “0” clears this bit. Writing “1” has no effect and does not change the bit
value.
Notes: • When the interval timer function is active, the PWC inverts the timer
output bit (PCR2: TO) if the counter underflow (01
H
→
00
H
) occur
s
. In
reload timer mode, counting-down continues from the RLBR register
value. In one-shot timer mode, the counter operation automatically
stops (EN = “0”).
• If the counter underflow (01
H
→
00
H
)
occurs while measuring a long
input pulse in the pulse width measurement function, this bit is set to “1”
and counter operation continues.
Bit 1
IR:
Measurement
completion interrupt
request flag bit
• For the pulse width measurement function:
This bit is set to “1” when the pulse width measurement is completed.
An interrupt request is output when both this bit and the interrupt request enable
bit (IE) are “1”.
• Writing “0” clears this bit. Writing “1” has no effect and does not change the bit
value.
• For the interval timer function:
The bit has no meaning.
Bit 0
BF:
Buffer full flag bit
• For the pulse width measurement function:
This bit is an interrupt request flag and is set to “1” when a measurement value
is present in the RLBR register.
An interrupt request is output when both this bit and the interrupt request enable
bit (IE) are“1”.
This bit is set to “1” when pulse width measurement completes and cleared to
“0” when the measurement value is read from the RLBR register.
• This bit is read-only. The write value has no meaning and has no effect on the
operation.
• For the interval timer function:
This bit has no meaning.
Содержание F2MC-8L MB89620 Series
Страница 8: ......
Страница 10: ...MB89620 series ...
Страница 11: ...vi MB89620 series ...
Страница 17: ...xii MB89620 series ...
Страница 18: ...xvi MB89620 series ...
Страница 30: ...MB89620 series CHAPTER 1 OVERVIEW 9 Memo ...
Страница 34: ...MB89620 series CHAPTER 1 OVERVIEW 13 Memo ...
Страница 42: ...MB89620 series CHAPTER 1 OVERVIEW 21 Memo ...
Страница 49: ...28 CHAPTER 1 OVERVIEW MB89620 series ...
Страница 62: ...MB89620 series CHAPTER 3 CPU 41 Memo ...
Страница 78: ...MB89620 series CHAPTER 3 CPU 57 Memo ...
Страница 82: ...MB89620 series CHAPTER 3 CPU 61 Memo ...
Страница 86: ...MB89620 series CHAPTER 3 CPU 65 Memo ...
Страница 90: ...MB89620 series CHAPTER 3 CPU 69 Memo ...
Страница 96: ...MB89620 series CHAPTER 3 CPU 75 Memo ...
Страница 122: ...MB89620 series CHAPTER 4 I O PORTS 101 Memo ...
Страница 144: ...MB89620 series CHAPTER 5 TIMEBASE TIMER 123 Memo ...
Страница 149: ...128 CHAPTER 5 TIMEBASE TIMER MB89620 series ...
Страница 157: ...136 CHAPTER 6 WATCHDOG TIMER MB89620 series ...
Страница 174: ...MB89620 series CHAPTER 7 8 BIT PWM TIMER 153 Memo ...
Страница 177: ...156 CHAPTER 7 8 BIT PWM TIMER MB89620 series ...
Страница 202: ...MB89620 series CHAPTER 9 16 BIT TIMER COUNTER 181 Memo ...
Страница 217: ...196 CHAPTER 9 16 BIT TIMER COUNTER MB89620 series ...
Страница 220: ...MB89620 series CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 199 Memo ...
Страница 228: ...MB89620 series CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 207 Memo ...
Страница 245: ...224 CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 MB89620 series ...
Страница 266: ...MB89620 series CHAPTER 13 A D CONVERTER 245 13 Memo ...
Страница 283: ...262 CHAPTER 13 A D CONVERTER MB89620 series ...
Страница 289: ...268 CHAPTER 14 CLOCK MONITOR FUNCTION MB89620 series ...
Страница 306: ...MB89620 series APPENDIX 285 APPEND Memo ...
Страница 319: ...298 APPENDIX MB89620 series Memo ...
Страница 321: ...2 ...
Страница 354: ......