English
Language : 

AT89LP51RC2_14 Datasheet, PDF (169/254 Pages) ATMEL Corporation – 8-bit Microcontroller Compatible with 8051 Products
AT89LP51RB2/RC2/IC2 Preliminary
In ADC mode, there are no requirements on the clock frequency with respect to the system
clock. The ADC prescaler selection is independent of the system clock divider and the ADC may
operate at both higher or lower frequencies than the CPU. However, in DAC mode the ADC
clock frequency must not be higher than the CPU clock, including any clock division from the
system clock.
Figure 21-6. DADC Clock Selection
OSC
7-BIT ADC PRESCALER
INTERNAL
÷4
8MHz OSC
ACK0
ACK1
ACK2
ADC CLOCK SOURCE
21.5
Starting a Conversion
Setting the GO/BSY bit (DADC.6) when ADCE = 1 starts a single conversion in both ADC and
DAC modes. The bit remains set while the conversion is in progress and is cleared by hardware
when the conversion completes. The ADC channel should not be changed while a conversion is
in progress.
Alternatively, a conversion can be started automatically by various timer sources. Conversion
trigger sources are selected by the TRG bits in DADI. A conversion is started every time the
selected timer overflows, allowing for conversions to occur at fixed intervals. The GO/BSY bit will
be set by hardware while the conversion is in progress. Note that the timer overflow rate must be
slower than the conversion time.
21.6
Noise Considerations
Digital circuitry inside and outside the device generates EMI which might affect the accuracy of
analog measurements. If conversion accuracy is critical, the noise level can be reduced by
applying the following techniques:
• Keep analog signal paths as short as possible. Make sure to run analog signals tracks over
an analog ground plane, and keep them well away from high-speed digital tracks.
• Place the CPU in Idle during a conversion. For best results, use a Timer to start the
conversion while CPU is already in Idle Mode.
• If any Port 0 pins are used as digital outputs, it is essential that these do not switch while a
conversion is in progress.
3722A–MICRO–10/11
169