Datasheet

Section 20 A/D Converter
Rev. 4.00 Sep 27, 2006 page 621 of 1130
REJ09B0327-0400
20.2.4 Keyboard Comparator Control Register (KBCOMP)
Bit 76543210
IrE IrCKS2 IrCKS1 IrCKS0 KBADE KBCH2 KBCH1 KBCH0
Initial value00000000
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
KBCOMP is an 8-bit readable/writable register that controls the SCI2 IrDA function and selects
the CIN input channels for A/D conversion.
KBCOMP is initialized to H'00 by a reset and in hardware standby mode.
Bits 7 to 4—IrDA Control: See the description in section 15.2.11, Keyboard Comparator Control
Register (KBCOMP).
Bit 3—Keyboard A/D Enable (KBADE): Selects either analog input pins (AN6, AN7) or digital
input pins (CIN0 to CIN7, CIN8 to CIN15) for A/D converter channel 6 and channel 7 input.
Bits 2 to 0—Keyboard A/D Channel Select 2 to 0 (KBCH2 to KBCH0): These bits select the
channels for A/D conversion from among the digital input pins. Only set the input channel while
A/D conversion is stopped.
Bit 3 Bit 2 Bit 1 Bit 0
KBADE KBCH2 KBCH1 KBCH0
A/D Converter
Channel 6 Input
A/D Converter
Channel 7 Input
0 ———AN6 AN7
1 0 0 0 CIN0 CIN8
1 CIN1 CIN9
1 0 CIN2 CIN10
1 CIN3 CIN11
1 0 0 CIN4 CIN12
1 CIN5 CIN13
1 0 CIN6 CIN14
1 CIN7 CIN15