Fujitsu MB90480 Series Hardware Manual page 546

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 25 PWC TIMER (ONLY MB90485 SERIES)
[bit3] S/C (Selection of Measurement Mode (one-shot/repeated))
This bit is used to select the measurement mode.
Table 25.3-5 Selection of the measurement mode for the 16-bit up-count timer
S/C
Measurement mode selection
One-shot measurement mode
0
[initial value]
Repeated measurement mode
1
Initialized to "0" at reset.
Reading and writing are allowed.
Note:
Rewriting after timer start is prohibited. Write always either before the timer is started or after the
timer is stopped.
[bit2, bit1, bit0] MOD2, MOD1, MOD0 (Selection of operation mode or measurement edge)
These bits are used to select the operation mode and an edge at which width measurement
is performed.
Table 25.3-6 Selection of operation mode or measurement edge for the 16-bit up-count timer
MOD2
MOD1
MOD0
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
Initialized to "000
Reading and writing are allowed.
Note:
Rewriting immediately after timer start is prohibited. Write always either before the timer is started
or after the timer is stopped.
524
Timer mode
No reload (one-shot)
With reload (reload timer)
Selection of operation mode/measurement edge
Timer mode [initial value]
Timer mode (reload mode only)
Pulse width measurement mode between all edges (rising edge or falling edge
to falling edge or rising edge)
Divide interval measurement mode (input divide enabled)
Interval measurement mode between rising edges (rising edge to rising edge)
"H" level pulse width measurement mode (rising edge to falling edge)
"L" level pulse width measurement mode (falling edge to rising edge)
Interval measurement mode between falling edges (falling edge to falling edge)
" at reset.
B
Pulse width
Stopped after one-time
measurement
Repeated measurement: buffer
register enabled

Advertisement

Table of Contents
loading

Table of Contents