(4) Operation Mode Selection
The operation mode and count mode are selected by PWCSR settings.
•
Operation mode setting PWCSR bits 2, 1, and 0: Bits MOD2, MOD1, and MOD0
•
Count mode setting PWCSR bit 3: S/C bit
The following lists the operation modes selected by the mode setting bits.
Timer
Pulse width
count
The initial value after a reset selects single-shot timer mode.
Note: Always select the operation mode before starting the timer.
MB90580 Series
(Selects timer or pulse width count mode and specifies which edges control counting.)
(Selects single-shot or continuous counting, or reload or single-shot operation.)
Figure 18.4e Operation Mode Selection
Operation Mode
Single-shot timer
Reload timer
Setting prohibited
⇑ or ⇓ to ⇑ or ⇓
Counts between all
edges
Divided period count
(divide by 1 to 256)
⇑ to ⇑
Rising-edge to rising-
edge count
⇑ to ⇓
"H" pulse width count
⇓ to ⇑
"L" pulse width count
⇓ to ⇓
Falling-edge to falling-
edge count
Single-shot count:
Buffer not used
Continuous count:
Buffer used
Single-shot count:
Buffer not used
Continuous count:
Buffer used
Single-shot count:
Buffer not used
Continuous count:
Buffer used
Single-shot count:
Buffer not used
Continuous count:
Buffer used
Single-shot count:
Buffer not used
Continuous count:
Buffer used
Single-shot count:
Buffer not used
Continuous count:
Buffer used
Chapter 18: Pulse Width Counter (PWC) Timer
18.4 Operations
S/C
MOD2 MOD1 MOD0
0
0
0
1
0
0
1
0
0
0
0
1
1
0
1
0
0
1
1
0
1
0
1
0
1
1
0
0
1
0
1
1
0
0
1
1
1
1
1
0
1
1
1
1
1
0
0
1
0
0
1
1
0
0
1
1
0
0
1
1
255