English
Language : 

HD64F2145 Datasheet, PDF (605/829 Pages) Renesas Technology Corp – Hitachi 16-Bit Single-Chip Microcomputer
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
7 IrE
6 IrCKS2
5 IrCKS1
4 IrCKS0
3 KBADE
Initial Value
0
0
0
0
0
2 KBCH2
0
1 KBCH1
0
0 KBCH0
0
Legend
x: Don’t care
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Description
These bits are related to the SCI. For details, refer to
section 15.3.10, Keyboard Comparator Control Register
(KBCOMP).
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).
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
Rev. 2.0, 08/02, page 565 of 788