English
Language : 

M16C65 Datasheet, PDF (505/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
22. Remote Control Signal Receiver
22.3.2.4 Compare Function (PMC0)
Contents of registers PMC0CPD and PMCDAT0 are compared. Reception of the specific data which
is 1 to 8 bits can be detected.
When using compare function, follow the instructions below:
• The CPEN bit in the PMC0CPC register: 1 (compare enabled)
• Select bits to be compared by bits CPN2 to CPN0 in the PMC0CPC register (when setting value is
n, bits n to 0 are compared. n: 0 to 7)
• Set the compare data in the PMC0CPD register
The contents which have been compared are matched, the CPFLG bit in the PMC0STS register
becomes 1 (compare match).
PMC0 internal input signal
Data 0 Data 1 Data 1 Data 0
ENFLG bit in the
PMC0CON2 register
PMC0RBIT register
0
1
2
3
4
PMC0DAT0 register
0000 0000b
0000 0000b 0000 0010b 0000 0110b 0000 0110b
Data 0 is
stored in
bit 0
Data 1 is
stored in
bit 1
Data 1 is
stored in
bit 2
Data 0 is
stored in
bit 3
PMC0DAT1 register 0000 0000b
PMC0CPD register
CPFLG bit in the
PMC0STS register
XXXX X110b
Compare match
Data 1
Data 0
8
9
1111 0110b
Data 1 is
stored in
bit 7
0000 0001b
Data 1 is
stored in
bit 8
The above diagram shows an instance in which the following conditions are met:
y The CPEN bit in the PMC0CPC register is 1 (compare enabled)
y Bits CPN2 to CPN0 in the PMC0CPC register is 2 (bits 2 to 0 are compared)
Figure 22.8 Receive Buffer and Compare Function
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 470 of 791