Datasheet

201
4341H–MP3–10/07
AT8xC51SND2C/MP3B
version (see Section "End Of Conversion", page 201). This bit is cleared by hardware at the end
of the conversion.
Notes: 1. Only the CPU activity is frozen, peripherals are not affected by the Pseudo-Idle mode.
2. If some interrupts occur during the Pseudo-Idle mode, they will be delayed and processed,
according to their priority after the end of the conversion.
3. Concurrently with ADSST bit.
22.1.4 Configuration
The ADC configuration consists in programming the ADC clock as detailed in the Section "Clock
Generator", page 200. The ADC is enabled using the ADEN bit in ADCON register. As shown in
Figure 93, user must wait the setup time (T
SETUP
) before launching any conversion.
Figure 22-4. ADC Configuration Flow
22.1.5 Conversion Launching
The conversion is launched by setting the ADSST bit in ADCON register, this bit remains set
during the conversion. As soon as the conversion is started, it takes 11 clock periods (T
CONV
)
before the data is available in ADDH and ADDL registers.
Figure 22-5. ADC Conversion Launching Flow
22.1.6 End Of Conversion
The end of conversion is signalled by the ADEOC flag in ADCON register becoming set or by the
ADSST bit in ADCON register becoming cleared. ADEOC flag can generate an interrupt if
ADC
Configuration
Enable ADC
ADIDL = x
ADEN = 1
Wait Setup Time
Program ADC Clock
ADCD4:0 = xxxxxb
ADC
Conversion Start
Select Channel
ADCS = 0-1
Start Conversion
ADSST = 1