Renesas M16C/64A Series User Manual page 468

Table of Contents

Advertisement

M16C/64A Group
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).
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
22. Remote Control Signal Receiver
Page 435 of 800

Advertisement

Table of Contents
loading

Table of Contents