English
Language : 

UPSD3422_06 Datasheet, PDF (173/293 Pages) STMicroelectronics – Turbo Plus Series Fast Turbo 8032 MCU with USB and Programmable Logic
uPSD34xx
Analog-to-digital convertor (ADC)
Table 89.
Bit 7
AINTF
ACON register (SFR 97h, reset value 00h)
Bit 6
Bit 5
Bit 4
Bit 3
AINTEN ADEN
ADS2
ADS1
Bit 2
ADS0
Bit 1
ADST
Bit 0
ADSF
Bit Symbol
Function
ADC Interrupt flag. This bit must be cleared with software.
7
AINTF 0 = No interrupt request
1 = The AINTF flag is set when ADSF goes from '0' to '1.' Interrupts CPU when
both AINTF and AINTEN are set to '1.'
ADC Interrupt Enable
6
AINTEN 0 = ADC interrupt is disabled
1 = ADC interrupt is enabled
ADC Enable Bit
5
ADEN 0 = ADC shut off and consumes no operating current
1 = Enable ADC. After ADC is enabled, 16ms of calibration is needed before
ADST Bit is set.
Analog channel Select
000 Select channel 0 (P1.0)
001 Select channel 0 (P1.1)
010 Select channel 0 (P1.2)
4.. 2 ADS2.. 0
011 Select channel 0 (P1.3)
101 Select channel 0 (P1.5)
110 Select channel 0 (P1.6)
111 Select channel 0 (P1.7)
ADC Start Bit
1
ADST 0 = Force to zero
1 = Start ADC, then after one cycle, the bit is cleared to '0.'
ADC Status Bit
0
ADSF 0 = ADC conversion is not completed
1 = ADC conversion is completed. The bit can also be cleared with software.
173/293