Epson S1C63358 Technical Manual page 84

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

CHAPTER 4: PERIPHERAL CIRCUITS AND OPERATION (A/D Converter)
CHS0, CHS1: Analog input channel selection register (FFD0H•D0, D1)
Selects an analog input channel.
At initial reset, this register is set to "0" (AD0).
VADSEL: A/D power source selection register (FF01H•D3)
Selects the power supply for the A/D converter.
When "1" is written: V
When "0" is written: V
Reading: Valid
When "1" is written to the VADSEL register, the A/D converter operates with the V
the LCD voltage booster. Use V
the LPWR register (FF60H•D0) and wait at least 100 msec to stabilize the V
When "0" is written, the A/D converter operates with V
At initial reset, this register is set to "0" (V
ADRUN: A/D conversion control (FFD0H•D3)
Starts an A/D conversion.
When "1" is written: Start
When "0" is written: No operation
Reading: Invalid
When "1" is written to ADRUN, the A/D converter starts A/D conversion of the channel selected by the
CHS register and stores the conversion result to the ADDR register.
At initial reset, this bit is set to "0".
ADDR0–ADDR7: A/D conversion result (FFD2H/lower 4 bits, FFD3H/upper 4 bits)
A/D conversion result is stored.
ADDR0 is the LSB and ADDR7 is the MSB.
At initial reset, data is undefined.
EIAD: A/D converter interrupt mask register (FFE7H•D0)
This register is used to select whether to mask the A/D converter interrupt or not.
When "1" is written: Enabled
When "0" is written: Masked
Reading: Valid
Writing "1" to the EIAD register enables the A/D converter interrupt and writing "0" disables the inter-
rupt.
At initial reset, this register is set to "0".
74
Table 4.10.6.3 Selection of analog input channel
CHS1
CHS0
1
1
1
0
0
1
0
0
C2
DD
when the supply voltage is 1.6 V or less. To generate V
C2
).
DD
EPSON
Input channel
AD3 (P43)
AD2 (P42)
AD1 (P41)
AD0 (P40)
voltage.
C2
In this case, V
must be 1.6 V or more.
DD.
DD
voltage output from
C2
, write "1" to
C2
S1C63358 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents