English
Language : 

M16C29 Datasheet, PDF (181/499 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/Tiny SERIES
M16C/29 Group
13. Timer S
13.4 Time Measurement Function
In synchronization with an external trigger input, the value of the base timer is stored into the G1TMj
register (j=0 to 7). Table 13.5 shows specifications of the time measurement function. Table 13.6 shows
register settings associated with the time measurement function. Figures 13.19 and 13.20 display opera-
tional timing of the time measurement function. Figure 13.21 shows operational timing of the prescaler
function and the gate function.
Table 13.5 Time Measurement Function Specifications
Item
Specification
Measurement channel
Selecting trigger input polarity
Channels 0 to 7
Rising edge, falling edge, both edges of the INPC1j pin (1)
Measurement start condition
The IFEj bit in the G1FE register should be set to 1 (channels j function
enabled) when the FSCj bit (j=0 to 7) in the G1FS register is set to 1 (time
measurement function selected).
Measurement stop condition
The IFEj bit should be set to 0 (channel j function disabled)
Time measurement timing
•No prescaler : every time a trigger signal is applied
•Prescaler (for channel 6 and channel 7):
every G1TPRk (k=6,7) register value +1 times a trigger signal is applied
Interrupt request generation timing
INPC1j pin function (1)
The G1IRi bit (i=0 to 7) in the interrupt request register (See Figure 13.9) is
set to 1 at time measurement timing
Trigger input pin
Selectable function
• Digital filter function
The digital filter samples a trigger input signal level every f1, f2 or fBT1
cycles and passes pulse signal matching trigger input signal level three
times
• Prescaler function (for channel 6 and channel 7)
Time measurement is executed every G1TPRk register value +1 times a
trigger signal is applied
NOTE:
1. The INPC10 to INPC17 pins
• Gate function (for channel 6 and channel 7)
After time measurement by the first trigger input, trigger input cannot be
accepted. However, while the GOC bit in the G1TMCRk register is set to 1
(gate cleared by matching the base timer with the G1POp register (p=4
when k=6, p=5 when k=7)), trigger input can be accepted again by
matching the base timer value with the G1POp register setting
• Digital Debounce function (for channel7)
________
See 13.6.2 Digital Debounce Function for P17/INT5/INPC17 and 19.6
Digital Debounce Function for details
Rev. 1.12 Mar.30, 2007 page 157 of 458
REJ09B0101-0112