R01UH0092EJ0110 Rev.1.10
Page 441 of 807
Jul 31, 2012
M16C/64C Group
22. Remote Control Signal Receiver
Figure 22.9
Operations in Input Capture Mode
22.3.4.1
Count Operation
In input capture mode, the counter counts from 0000h to FFFFh, and then returns to 0000h to
continue counting.
When the counter becomes 0000h after FFFFh, the CEFLG bit in the PMCiCON2 register becomes 1
(counter overflow) and stays 1 until the next measurement timing.
Count started
FFFFh
a
b
c
d
e
f
PMCi internal input signal
EN bit
Counter operation
Counter value
Bits TYP1 to TYP0 are 00b (period measurement (between rising edge and rising edge)
b
f
c
e
b
c
d
f
The bit becomes 0 when an
interrupt request is accepted, or
by setting the bit to 0.
PMCiTIM register
IR bit
IR bit
IR bit
PMCiTIM register
PMCiTIM register
CEFLG bit
d
Bits TYP1 to TYP0 are 10b (pulse width measurement)
i = 0, 1
The above diagram shows an instance in which the following condition is met:
y
The TIMINT bit in the PMCiINT register is 1 (timer measure interrupt enabled)
y
The CEINT bit in the PMCiCON2 register is 0 (counter overflow interrupt enabled)
CEFLG bit
CEFLG bit
e
The bit becomes 0 when an
interrupt request is accepted, or
by setting the bit to 0.
The bit becomes 0 when an
interrupt request is accepted, or
by setting the bit to 0.
a
a
Bits TYP1 to TYP0 are 01b (period measurement between falling edge and falling edge)
EN: Bit in the PMCiCON0 register
TYP1 to TYP0: Bits in the PMCiCON1 register
CEFLG: Bit in the PMCiCON2 register
IR: Bit in the PMCiIC register
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...