Download CodeVisionAVR User Manual
Transcript
CodeVisionAVR 5.8 Setting the Analog-Digital Converter Some AVR chips contain an analog-digital converter (ADC). By selecting the ADC tab of the CodeWizardAVR, you can specify the ADC configuration. Checking the ADC Enabled check box enables the on-chip ADC. On some AVR devices only the 8 most semnificative bits of the ADC conversion result can be used. This feature is enabled by checking the Use 8 bits check box. If the ADC has an internal reference voltage source, than it can be selected using the Volt. Ref. list box or activated by checking the ADC Bandgap check box. If you want to generate interrupts when the ADC finishes the conversion, then you must check the ADC Interrupt check box. If ADC interrupts are used you have the possibility to enable the following functions: • by checking the ADC Noise Canceler check box, the chip is placed in idle mode during the conversion process, thus reducing the noise induced on the ADC by the chip's digital circuitry • by checking the Automatically Scan Inputs Enabled check box, the CodeWizardAVR will generate code to scan an ADC input domain and put the results in an array. The start, respectively the end, of the domain are specified using the First Input, respectively the Last Input, spinedit boxes. © 1998-2001 HP InfoTech S.R.L. Page 165