p2125vps20 Renesas Electronics Corporation., p2125vps20 Datasheet - Page 297

no-image

p2125vps20

Manufacturer Part Number
p2125vps20
Description
16-bit Single-chip Microcomputer H8s Family / H8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
(4)
Figure 12.11 shows an example of the flow when speed measurement mode is to be used.
Set OVIE and MAXOVIE to 1
Example of Settings for Speed Measurement Mode
Set CST (TCMCR) to 0
End of measurement
Set TCMMDS to 0
Set TCMMDS to 1
Set TCMMDS to 0
Set TCMMLCM
MAXOVF = 1?
OVF = 1? or
Initialization
Start
Figure 12.11 Example of Speed Measurement Mode Settings
No
Yes
[1]
[2]
[3]
[4]
[5]
[8]
End of exception handling
Interrupt is generated
fan-stopped state
MAXOVF = 1?
Processing for
[1] Set timer mode.
[2] Stop TCMCNT and initialize to H'0000.
[3] Set an upper limit on the measurement period.
[4] Enable interrupts.
[5] Set speed measurement mode
[6] Processing for the fan-stopped state.
[7] Processing for the cycle upper limit over.
[8] Speed measurement is completed.
to start speed measurement.
No
Section 12 16-Bit Cycle Measurement Timer (TCM)
Rev. 1.00 Sep. 21, 2006 Page 259 of 658
Yes
[6]
Processing for cycle
upper limit over
REJ09B0310-0100
[7]

Related parts for p2125vps20