Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1711 Datasheet(PDF) 6 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) 6 Page - STMicroelectronics

Back Button AN1711 Datasheet HTML 2Page - STMicroelectronics AN1711 Datasheet HTML 3Page - STMicroelectronics AN1711 Datasheet HTML 4Page - STMicroelectronics AN1711 Datasheet HTML 5Page - STMicroelectronics AN1711 Datasheet HTML 6Page - STMicroelectronics AN1711 Datasheet HTML 7Page - STMicroelectronics AN1711 Datasheet HTML 8Page - STMicroelectronics AN1711 Datasheet HTML 9Page - STMicroelectronics AN1711 Datasheet HTML 10Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 6 / 40 page
background image
6/40
SOFTWARE TECHNIQUES FOR COMPENSATING ST7 ADC ERRORS
1.5 READING THE ADC CONVERSION RESULTS
It is recommended to read the ADCDRL first and then the ADCDRH. When the ADC is in con-
tinuous mode, the EOC is set at the end of conversion and a new conversion is started again
(unless the ADC supports one-shot conversion).
The ADC conversion results are not latched on ADCDRL and ADCDRH. This means that if,
between reading ADCDRL and ADCDRH, there is an interrupt which takes a lot of time (more
than the ADC conversion time), then the software will read the ADCDRL from one conversion
and the ADCDRH from another conversion. It is thus recommended to disable interrupts be-
fore reading the conversion results from ADCDRL and ADCDRH and then enable interrupts
again.
However, if you are reading the ADC registers (ADCDRL and ADCDRH) in a peripheral inter-
rupt subroutine, for example, if you are reading the registers in a timer interrupt or external in-
terrupt sub-routine then, do not disable and enable the interrupts.
The “Enable Interrupt” instruction in an interrupt subroutine (in concurrent interrupt mode) will
enable interrupts and cause a nested mode interrupt.
1.6 ENTERING HALT MODE
It is always recommended to shut down the ADC before entering the HALT mode. When ex-
iting from HALT mode, put the ADC ON again. The stabilization time for the ADC, after exiting
from HALT is specified in the datasheet.
1.7 USING A TIMER TO MAKE PERIODIC CONVERSIONS
Some applications may have special requirements for ADC conversion. For example, in an
audio application, you may need to sample an audio signal of maximum 3 kHz. You can
choose to sample 6K samples per second or higher (12K samples/s or 24K samples/s). The
ST7 ADCs do not have a feature for doing this.
In this case it is recommended to use the timer and configure it to generate 6K interrupts (or
12K/ 24K depending on the design) per second. In your timer interrupt routine, the ADC con-
version results can be read and stored.
This kind of configuration is easy to use because of the very fast conversion time of ST7 ADCs
and the built-in continuous conversion feature.



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