R01UH0092EJ0110 Rev.1.10
Page 437 of 807
Jul 31, 2012
M16C/64C Group
22. Remote Control Signal Receiver
22.3.3.5
Compare Function (PMC0)
Values from registers PMC0CPD and PMC0DAT0 are compared. From the result, reception of the
specified value which is selected from the first 1 to 8 bits of the remote control signal can be detected.
When using the compare function, set the following:
•
Set the CPEN bit in the PMC0CPC register to 1 (compare enabled).
•
Select bits to be compared by setting 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.
When storing received data, if the compared results match, the CPFLG bit in the PMC0STS register
becomes 1 (compare match).
Summary of Contents for M16C Series
Page 846: ...M16C 64C Group R01UH0092EJ0110...