158
CHAPTER 8 PULSE WIDTH COUNT TIMER (PWC)
MB89620 series
8.
1
Overview of Pulse Width Count Timer
The pulse width count timer (PWC) can be selected to function as either an interval
timer or the pulse width measurement. The interval timer function counts down in
sync with one of three internal count clocks. The pulse width measurement function
measures the width of pulses input to an external pin.
Therefore, an 8-bit interval timer time can be set and the output can be used to
generate variable frequency square wave output. Also, the PWC can be used as an
input capture by continuously measuring the pulse width of an external input.
n
Interval Timer Function (Square Wave Output Function)
The interval timer function generates repeated interrupts at variable time intervals.
Also, as the PWC can invert the output level of the pin (WTO pin) each time interval, the PWC
can output a variable frequency square wave.
•
The interval timer can operate with a cycle among 1 and 2
8
times the internal count clock
cycle.
•
The internal count clock can be selected from three different clocks.
•
Two operating modes are available: reload timer mode (continuous operation) and one-shot
mode (one-time operation).
•
The timer output bit (PCR2: TO) can be used as the count clock for the 8-bit PWM timer.
Table 8.1a lists the available interval time and square wave output ranges.
t
inst
: Instruction cycle (divide-by-four source oscillation)
Table 8.1a Interval Time and Square Wave Output Range
Internal count clock cycle
Interval time
Square wave output (Hz)
1 t
inst
1 t
inst
to 2
8
t
inst
1/(2 t
inst
) to 1/(2
9
t
inst
)
4 t
inst
2
2
t
inst
to 2
10
t
inst
1/(2
3
t
inst
) to 1/(2
11
t
inst
)
32 t
inst
2
5
t
inst
to 2
13
t
inst
1/(2
6
t
inst
) to 1/(2
14
t
inst
)
Summary of Contents for F2MC-8L MB89620 Series
Page 8: ......
Page 10: ...MB89620 series ...
Page 11: ...vi MB89620 series ...
Page 17: ...xii MB89620 series ...
Page 18: ...xvi MB89620 series ...
Page 30: ...MB89620 series CHAPTER 1 OVERVIEW 9 Memo ...
Page 34: ...MB89620 series CHAPTER 1 OVERVIEW 13 Memo ...
Page 42: ...MB89620 series CHAPTER 1 OVERVIEW 21 Memo ...
Page 49: ...28 CHAPTER 1 OVERVIEW MB89620 series ...
Page 62: ...MB89620 series CHAPTER 3 CPU 41 Memo ...
Page 78: ...MB89620 series CHAPTER 3 CPU 57 Memo ...
Page 82: ...MB89620 series CHAPTER 3 CPU 61 Memo ...
Page 86: ...MB89620 series CHAPTER 3 CPU 65 Memo ...
Page 90: ...MB89620 series CHAPTER 3 CPU 69 Memo ...
Page 96: ...MB89620 series CHAPTER 3 CPU 75 Memo ...
Page 122: ...MB89620 series CHAPTER 4 I O PORTS 101 Memo ...
Page 144: ...MB89620 series CHAPTER 5 TIMEBASE TIMER 123 Memo ...
Page 149: ...128 CHAPTER 5 TIMEBASE TIMER MB89620 series ...
Page 157: ...136 CHAPTER 6 WATCHDOG TIMER MB89620 series ...
Page 174: ...MB89620 series CHAPTER 7 8 BIT PWM TIMER 153 Memo ...
Page 177: ...156 CHAPTER 7 8 BIT PWM TIMER MB89620 series ...
Page 202: ...MB89620 series CHAPTER 9 16 BIT TIMER COUNTER 181 Memo ...
Page 217: ...196 CHAPTER 9 16 BIT TIMER COUNTER MB89620 series ...
Page 220: ...MB89620 series CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 199 Memo ...
Page 228: ...MB89620 series CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 207 Memo ...
Page 245: ...224 CHAPTER 10 8 BIT SERIAL I O SERIAL I O 1 AND SERIAL I O 2 MB89620 series ...
Page 266: ...MB89620 series CHAPTER 13 A D CONVERTER 245 13 Memo ...
Page 283: ...262 CHAPTER 13 A D CONVERTER MB89620 series ...
Page 289: ...268 CHAPTER 14 CLOCK MONITOR FUNCTION MB89620 series ...
Page 306: ...MB89620 series APPENDIX 285 APPEND Memo ...
Page 319: ...298 APPENDIX MB89620 series Memo ...
Page 321: ...2 ...
Page 354: ......