Keyboard Comparator Control Register (Kbcomp) - Renesas H8S/2158 User Manual

16-bit single-chip microcomputer h8s family/h8s/2100 series
Table of Contents

Advertisement

22.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.
The DTC decides where to store the A/D conversion result according to settings of the KBCH2 to
KBCH0 bits.
Bit
Bit Name
Initial Value
7
0
6, 5 —
All 0
4
SCANE
0
3
KBADE
0
2
KBCH2
0
1
KBCH1
0
0
KBCH0
0
R/W
Description
R/(W) Reserved
The initial value should not be changed.
R
Reserved
These bits are always read as 0 and cannot be
modified.
R/W
DTC Comparator Scan Enable
Enables or disables the DTC comparator scan function.
0: Disables DTC comparator scan function
1: Enables DTC comparator scan function
R/W
Keyboard A/D Enable
Sets analog pin 0 (AN0) of the A/D converter to digital
input pins (CIN7 to CIN0).
0: Selects AN0 (not mounted on this LSI)
1: Selects CIN7 to CIN0
R/W
Keyboard A/D Channel Select 2 to 0
R/W
These bits select a channel of digital input pins (CIN7 to
R/W
CIN0) for A/D conversion. The input channel setting
must be made while conversion is halted. When the
SCANE bit is set to 1, these bits are automatically
incremented by the DTC.
000: Selects CIN0
001: Selects CIN1
010: Selects CIN2
011: Selects CIN3
100: Selects CIN4
101: Selects CIN5
110: Selects CIN6
111: Selects CIN7
Section 22 A/D Converter
Rev. 3.00 Jan 25, 2006 page 703 of 872
REJ09B0286-0300

Advertisement

Table of Contents
loading

Table of Contents