Operation Mode Selection - Fujitsu MB90460 Series Hardware Manual

F2mc-16lx 16-bit microcontroller
Table of Contents

Advertisement

CHAPTER 16 PWC Timer
16.6.1

Operation Mode Selection

Operation modes and count modes are selected according to the setting of PWCS.
■ Operation Mode Selection
The following registers are used to set the selection of operation modes and count modes:
Operation mode setting: PWCSL:MOD2, MOD1, and MOD0 bits
Select the timer mode or pulse-width measurement mode to specify control of the count operation.
Count mode setting: PWCSL:S/C bit
Select single measurement or continuous measurement or reload operation or one-shot operation.
Table 16.6-1 lists the operation modes selected using the mode setting bits.
Table 16.6-1 Operation Mode Selection
One-shot timer
Timer
Reload timer
Setting prohibited
Rising edge or falling edge to
falling edge or rising edge:
All edge-to-edge
measurement
Division count:
Divide by 4 to 256
Pulse-width
Rising edge to rising edge:
measurement
Rising edge to rising edge
period
measurement
Rising edge to falling edge:
H pulse-width
measurement
Falling edge to rising edge:
L pulse-width
measurement
Pulse-width
Falling edge to falling edge:
measurement
Falling edge-to-falling edge
period
measurement
After reset, the one-shot timer is selected as an initial value.
Note:
Before the timer starts, always selects the operation mode.
450
Operation mode
Single measurement: Buffer invalid
Continuous measurement: Buffer valid
Single measurement: Buffer invalid
Continuous measurement: Buffer valid
Single measurement: Buffer invalid
Continuous measurement: Buffer valid
Single measurement: Buffer invalid
Continuous measurement: Buffer valid
Single measurement: Buffer invalid
Continuous measurement: Buffer valid
Single measurement: Buffer invalid
Continuous measurement: Buffer valid
S/C
MOD2 MOD1 MOD0
0
0
0
1
0
0
0
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
1
0
0
1
1
0
0
1
1
0
0
1
1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90465 series

Table of Contents