
deveopmen
Intelligent I/O
Rev.B2 for proof reading
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
249
Table 1. 23.3. Specifications of time measurement function
Item
Time resolution
Specifications
t=1/(base timer count source)
Trigger input polarity select
Rising edge
Falling edge
Both edges
Measurement start condition
(Note)
Write "1" to the function enable bit
Measurement stop condition
Write "0" to the function enable bit
Time measurement timing
Prescaler (only ch6 and ch7) : Every the (m+1) trigger input
No prescaler
: Every trigger input
Interrupt request generation timing
Same timing as time measurement
INPC pin function
Trigger input pin
(Set the corresponding pin to input with the function select register)
Select function
Digital filter function
Pulses will pass when they match either f
1
or the base timerclock 3 times .
Prescaler function (only for ch6 and ch7)
Counts trigger inputs and measures time by inputting a trigger of +1 the
value of the time measurement prescale register.
Gate function (only for ch6 and ch7)
Prohibits the reception of trigger inputs after the time measurement starts
for the first trigger input. Trigger input is newly enabled when the below
conditions are satisfied.
(1)
When the base timer i matches the value in WG register j
(2)
When
“
1
”
is written for the gate function release bit
This bit automatically becomes
“
0
”
after the gate function is released.
Note: On channels where both the time measurement function and waveform output function can be used, select the
time measurement function for the function select register (addresses 00E7
16
and 0127
16
).
Table 1. 23.4. List of time measurement channels with prescaler function and gate function
Group
Channel
TM register
WG register matehes signal to release gate function
ch6
TM register 6
Base timer 0 matches to WG register 4
Group 0
ch7
TM register 7
Base timer 0 matches to WG register 5
ch6
TM register 6
Base timer 1 matches to WG register 4
Group 1
ch7
TM register 7
Base timer 1 matches to WG register 5