Pulse Period And Pulse Width Measurement Mode - Renesas M16C/62P Series Hardware Manual

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
15.2.3

Pulse Period and Pulse Width Measurement Mode

In pulse period and pulse width measurement mode, the timer measures pulse period or pulse width of an
external signal (see Table 15.8). Figure 15.21 shows TBiMR Register in Pulse Period and Pulse Width
Measurement Mode. Figure 15.22 shows the Operation Timing when Measuring a Pulse Period. Figure 15.23
shows the Operation Timing when Measuring a Pulse Width.
Table 15.8
Specifications in Pulse Period and Pulse Width Measurement Mode
Item
Count Source
Count Operation
Count Start Condition
Count Stop Condition
Interrupt Request
Generation Timing
TBiIN Pin Function
Read from Timer
Write to Timer
NOTES:
1. Interrupt request is not generated when the first effective edge is input after the timer started
counting.
2. Value read from TBi register is indeterminate until the second valid edge is input after the timer
starts counting.
3. The TB0S to TB2S bits are assigned to the bit 5 to bit 7 in the TABSR register, and the TB3S to
TB5S bits are assigned to the bit 5 to bit 7 in the TBSR register.
Rev.2.41
Jan 10, 2006
REJ09B0185-0241
http://www.xinpian.net
f1, f2, f8, f32, fC32
• Up-count
• Counter value is transferred to reload register at an effective edge of
measurement pulse. The counter value is set to "0000h" to continue counting.
Set TBiS (i=0 to 5) bit
Set TBiS bit to "0" (= stop counting)
• When an effective edge of measurement pulse is input
• Timer overflow. When an overflow occurs, MR3 bit in the TBiMR register is set
to "1" (overflowed) simultaneously. MR3 bit is set to "0" (no overflow) by
writing to TBiMR register at the next count timing or later after MR3 bit was set
to "1". At this time, make sure TBiS bit is set to "1" (start counting).
Measurement pulse input
Contents of the reload register (measurement result) can be read by reading TBi
(2)
register
Value written to TBi register is written to neither reload register nor counter
Page 162 of 390
提供单片机解密、IC解密、芯片解密业务
Specification
(3)
to "1" (= start counting)
15. Timers
(1)
010-62245566 13810019655

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents