10
10-114
10.4 TIO (Input/Output-Related 16-Bit Timer)
MULTIJUNCTION TIMERS
32180 Group User’s Manual (Rev.1.0)
10.4.9 Operation in TIO Measure Free-Run/ Clear Input Modes
(1) Outline of TIO measure free-run/ clear input modes
In measure free-run/ clear input modes, the timer is used to measure a duration of time from when the
counter starts counting till when an external capture signal is entered. An interrupt request can be generated
by a counter underflow or execution of a measure operation.
After the timer is enabled (by writing to the enable bit in software), the counter starts counting down synchro-
nously with the count clock. When a capture signal is entered from an external device, the counter value at
that point in time is written into a register called the “measure register.”
In measure clear input mode, the counter value is initialized to H’FFFF upon capture, from which the counter
starts counting down again. When the counter underflows, it starts counting down from H'FFFF.
In measure free-run input mode, the counter continues counting down even after capture and upon under-
flow, recycles to H’FFFF, from which it starts counting down again.
To stop the counter, disable count by writing to the enable bit in software.
Figure 10.4.6 Typical Operation in Measure Free-Run Input Mode
Count clock
Counter
H'FFFF
H'0000
Enabled
(by writing to
the enable bit)
TIO interrupt request
Measure event
(capture) occurs
Enable bit
Note: • This diagram does not show detailed timing information.
Measure register
TIN interrupt request due to
external event input
TIO interrupt request due
to underflow
H'7000
H'9000
Measure event
(capture)
TIN interrupt request due to
external event input
TIN interrupt request
Undefined
value
H'7000
Undefined
H'9000
Summary of Contents for M32R/ECU Series
Page 17: ...12 This page is blank for reasons of layout...
Page 712: ...CHAPTER 18 OSCILLATOR CIRCUIT 18 1 Oscillator Circuit 18 2 Clock Generator Circuit...
Page 794: ...CHAPTER 22 TYPICAL CHARACTERISTICS...
Page 796: ...APPENDIX 1 MECHANICAL SPECIFICAITONS Appendix 1 1 Dimensional Outline Drawing...
Page 798: ...APPENDIX 2 INSTRUCTION PROCESSING TIME Appendix 2 1 32180 Instruction Processing Time...
Page 802: ...APPENDIX 3 PROCESSING OF UNUSED PINS Appendix 3 1 Example Processing of Unused Pins...