12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ATmega32A</strong>If the user has a fixed voltage source connected to the AREF pin, the user may not use the otherreference voltage options in the application, as they will be shorted to the external voltage. If noexternal voltage is applied to the AREF pin, the user may switch between AVCC and 2.56V asreference selection. The first ADC conversion result after switching reference voltage sourcemay be inaccurate, and the user is advised to discard this result.If differential channels are used, the selected reference should not be closer to AVCC thanindicated in Table 27-4 on page 303.22.7 ADC Noise CancelerThe ADC features a noise canceler that enables conversion during sleep mode to reduce noiseinduced from the CPU core and other I/O peripherals. The noise canceler can be used with ADCNoise Reduction and Idle mode. To make use of this feature, the following procedure should beused:1. Make sure that the ADC is enabled and is not busy converting. Single Conversion Modemust be selected and the ADC conversion complete interrupt must be enabled.2. Enter ADC Noise Reduction mode (or Idle mode). The ADC will start a conversion oncethe CPU has been halted.3. If no other interrupts occur before the ADC conversion completes, the ADC interrupt willwake up the CPU and execute the ADC Conversion Complete interrupt routine. Ifanother interrupt wakes up the CPU before the ADC conversion is complete, that interruptwill be executed, and an ADC Conversion Complete interrupt request will begenerated when the ADC conversion completes. The CPU will remain in active modeuntil a new sleep command is executed.Note that the ADC will not be automatically turned off when entering other sleep modes than Idlemode and ADC Noise Reduction mode. The user is advised to write zero to ADEN before enteringsuch sleep modes to avoid excessive power consumption. If the ADC is enabled in suchsleep modes and the user wants to perform differential conversions, the user is advised toswitch the ADC off and on after waking up from sleep to prompt an extended conversion to get avalid result.22.7.1 Analog Input CircuitryThe Analog Input Circuitry for single ended channels is illustrated in Figure 22-8. An analogsource applied to ADCn is subjected to the pin capacitance and input leakage of that pin, regardlessof whether that channel is selected as input for the ADC. When the channel is selected, thesource must drive the S/H capacitor through the series resistance (combined resistance in theinput path).The ADC is optimized for analog signals with an output impedance of approximately 10 kΩ orless. If such a source is used, the sampling time will be negligible. If a source with higher impedanceis used, the sampling time will depend on how long time the source needs to charge theS/H capacitor, with can vary widely. The user is recommended to only use low impedant sourceswith slowly varying signals, since this minimizes the required charge transfer to the S/Hcapacitor.If differential gain channels are used, the input circuitry looks somewhat different, althoughsource impedances of a few hundred kΩ or less is recommended.Signal components higher than the Nyquist frequency (f ADC /2) should not be present for eitherkind of channels, to avoid distortion from unpredictable signal convolution. The user is advised8155C–AVR–02/11217

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!