
HARDWARE CONFIGURATION
2-77
A/D CONVERTER
Description of Register
The detail of each register is described below.
(1) ADC1 (A/D Converter control register)
This register is used to control the A/D converter and display its status.
ADC1
ADC2
ADDH
ADDL
Address: 001E
H
Address: 001F
H
Address: 0020
H
Address: 0021
H
Address: 001E
H
Initial value
00000000
B
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
ANS3
ANS2
ANS1
ANS0
AD1
ADMV
SIFM
AD
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R)
(R/W)
(R/W)
[Bit 7 to Bit 4] ANS3 to ANS0: Analog input channel select bit
These three bits are used to select an analog input channel.
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
ANS3 ANS2
Channel selected
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
ANS1 ANS0
1
1
1
1
1
1
1
1
0
0
0
0
1
1
1
1
AN8
AN9
ANA
ANB
—
—
—
—
ANS3 ANS2
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
ANS1 ANS0
Channel selected
[Bit 3] ADI: Interrupt flag bit
The meaning of each bit to be read in the A/D mode is as follows:
Conversion not terminated
Conversion terminated
0
1
The meaning of each bit to be read in the sense mode is as follows:
Conditions specified by SIFM bit not met
Conditions specified by SIFM bit met
0
1
In both the A/D and sense modes, an interrupt request is output if this bit is
set when the ADIE (bit 4) of the ADC2 is 1.
The meaning of each bit to be written in the A/D and sense modes is as fol-
lows:
This bit is cleared.
This bit is not changed.
0
1
Summary of Contents for F2MC-8L Series
Page 121: ...INSTRUCTIONS 4 7 4 5 F2MC 8L FAMILY INSTRUCTION MAP ...
Page 123: ...5 MASK OPTIONS ...
Page 125: ...APPENDIX ...