Datasheet

Section 21 A/D Converter
Rev. 3.00 Mar 21, 2006 page 591 of 788
REJ09B0300-0300
21.3.4 Keyboard Comparator Control Register (KBCOMP)
KBCOMP selects the CIN input channel for which A/D conversion is performed and enables or
disables the comparator scan function of CIN7 to CIN0.
Bit Bit Name Initial Value R/W Description
7IrE 0 R/W
6 IrCKS2 0 R/W
5 IrCKS1 0 R/W
4 IrCKS0 0 R/W
These bits are related to the SCI. For details, refer to
section 15.3.10, Keyboard Comparator Control Register
(KBCOMP).
3 KBADE 0 R/W Keyboard A/D Enable (AN6, AN7)
Selects whether channels 6 and 7 of the A/D converter
are used as analog pins or digital pins, in combination
with the KBCH2 to KBCH0 bits. For details, refer to
description for bits 2 to 0. Analog pins of the A/D
converter are set to digital pins (CIN0 to CIN7 and CIN8
to CIN15).
2
1
0
KBCH2
KBCH1
KBCH0
0
0
0
R/W
R/W
R/W
Keyboard A/D Channel Select 2 to 0
These bits select a channel of digital input pins for A/D
conversion, in combination with the KBADE bit. The
input channel setting must be made while conversion is
halted.
Channel 6 Channel 7
0xxx: Selects AN6 AN7
1000: Selects CIN0 CIN8
1001: Selects CIN1 CIN9
1010: Selects CIN2 CIN10
1011: Selects CIN3 CIN11
1100: Selects CIN4 CIN12
1101: Selects CIN5 CIN13
1110: Selects CIN6 CIN14
1111: Selects CIN7 CIN15
Legend:
x: Don’t care