Figure 13.3.1 A/D Control Register 1 (Adc1) - Fujitsu F2MC-8L MB89620 Series Hardware Manual

8-bit microcontroller
Table of Contents

Advertisement

13.3 Structure of A/D Converter
13.3.1 A/D Control Register 1 (ADC1)
A/D control register 1 (ADC1) is used to enable or disable the functions, select the
analog input pin, and check the state of the A/D converter.
n A/D Control Register 1 (ADC1)
R/W : Readable and writable
R
: Read-only
: Initial value
250
CHAPTER 13 A/D CONVERTER
Address
Bit 7
Bit 6
0020
ANS3
ANS2
H
R/W
R/W
AD
0
Does not activate the A/D conversion or sense function.
1
Activates the A/D conversion or sense function.
SIFM
0
Sets the interrupt request flag bit when the input voltage is less than the compare voltage.
1
Sets the interrupt request flag bit when the input voltage is greater than the compare voltage.
ADMV
0
Conversion or comparison not currently in progress.
1
Conversion or comparison in progress.
ADI
0
Conversion not complete.
1
Conversion completes.
ANS3
0
0
0
0
0
0
0
0
1

Figure 13.3.1 A/D Control Register 1 (ADC1)

Bit 5
Bit 4
Bit 3
ANS1
ANS0
ADI
R/W
R/W
R/W
A/D converter activation bit
Only applies when software activation is specified (ADC2: EXT = "0").
Compare condition setting bit
Only applies when the sense function is selected (ADC2: ADMD = "1")
Conversion-in-progress flag bit
Interrupt request flag bit
Read
For the A/D conversion
For the sense function
function
Specified condition has not occurred.
Specified condition occurred.
ANS2
ANS1
ANS0
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
×
×
×
Bit 2
Bit 1
Bit 0
Initial value
ADMV
SIFM
AD
00000000
R
R/W
R/W
Clears this bit.
No effect. The bit does not change.
Analog input channel selection bits
AN0 pin
AN1 pin
AN2 pin
AN3 pin
AN4 pin
AN5 pin
AN6 pin
AN7 pin
Not available
B
Write
MB89620 series

Advertisement

Table of Contents
loading

Table of Contents