Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1711 Datasheet(PDF) 20 Page - STMicroelectronics

Part # AN1711
Description  SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS
PDF  40 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1711 Datasheet(HTML) 20 Page - STMicroelectronics

Back Button AN1711 Datasheet HTML 16Page - STMicroelectronics AN1711 Datasheet HTML 17Page - STMicroelectronics AN1711 Datasheet HTML 18Page - STMicroelectronics AN1711 Datasheet HTML 19Page - STMicroelectronics AN1711 Datasheet HTML 20Page - STMicroelectronics AN1711 Datasheet HTML 21Page - STMicroelectronics AN1711 Datasheet HTML 22Page - STMicroelectronics AN1711 Datasheet HTML 23Page - STMicroelectronics AN1711 Datasheet HTML 24Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 40 page
background image
20/40
SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS
If 2 NOP instructions are used, it will take 7 executions of the loop
If 3 NOP instructions are used it will take 5 executions of the loop
If 4 NOP instructions are used it will take 4 executions of the loop
See: ADC_do_conversion()
3.2 USING SLOW MODE
You can use “Slow mode” to reduce the internal noise generated by the CPU. SLOW mode re-
duces the CPU frequency fCPU. This reduces the internal noise because the CPU runs slower
and executes the code at a lower frequency.
For devices with fCPU(max)=8 MHz and fADC(max) =2 MHz, you can utilise the SPEED bit
available in some ADCs. Refer to section 1.1 on page 4. If you set the SPEED bit, you can use
fADC = fCPU/2. So in this configuration you can reduce the fCPU to 4 MHz by setting the SLOW
mode and you can set the SPEED bit to make fADC(max) =2 MHz.
In the software example: the following sequence is used
1. MCCSR register, keep CP[1:0] = 00. fCPU = fOSC2/2
2. MCCSR register, Set SMS (Slow mode select) = 1
This configures fCPU = 4 MHz and fADC = 1 MHz
3. Set the SPEED bit in the ADCCSR register
This configures fADC = 2 MHz
Use #define ADC_SLOW_MODE_SELECT in adc_tech.h to enable the ADC conversions in
SLOW mode.
3.3 USING WAIT MODE
You can also use WAIT mode to reduce the internal noise generated by the CPU. In WAIT
mode the CPU is OFF and the peripherals are working. Note that some ADCs do not have in-
terrupt capability, but anyhow you can wake up the CPU from WAIT mode by means of a timer
interrupt or an external interrupt.
In the software example, we use the Timer-A output compare interrupt to wake up the CPU
from WAIT mode.
The value to be compared is chosen in order to take enough time to allow one ADC conver-
sion to be completed. We can also use a time period which is equivalent to 2 conversions. This
would guarantee that at least the second conversion is done while the CPU is in WAIT mode.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com