Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Spanish  ▼
ALLDATASHEET.ES

X  

AN3023 Datasheet(PDF) 14 Page - STMicroelectronics

No. de pieza AN3023
Descripción Electrónicos  Using the analog-to-digital converter of the STM8A microcontroller
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  STMICROELECTRONICS [STMicroelectronics]
Página de inicio  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3023 Datasheet(HTML) 14 Page - STMicroelectronics

Back Button AN3023 Datasheet HTML 10Page - STMicroelectronics AN3023 Datasheet HTML 11Page - STMicroelectronics AN3023 Datasheet HTML 12Page - STMicroelectronics AN3023 Datasheet HTML 13Page - STMicroelectronics AN3023 Datasheet HTML 14Page - STMicroelectronics AN3023 Datasheet HTML 15Page - STMicroelectronics AN3023 Datasheet HTML 16Page - STMicroelectronics AN3023 Datasheet HTML 17Page - STMicroelectronics AN3023 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 23 page
background image
Configuring ADC registers for conversion
AN3023
14/23
Doc ID 16113 Rev 1
Buffered continuous mode
The buffered mode is enabled in the continuous conversion mode if bit DBUF = 1 in the
ADC_CR3 register. The data buffer registers are filled with the results for up to 16
consecutive conversions performed on a single channel.
Example 5
●
fMASTER = 2 MHz
●
fADC = 0.5 MHz
●
Buffered continuous mode for channel 3
●
Left alignment
●
Starting ADC by software
For Example 5, the ADC registers should be configured as follows:
ADC_CR1:SPSEL[2:0] = 010
→ f
ADC = 0.5 MHz (that is, fMASTER/4)
ADC_CSR:CH[3:0] = 0011
→ AIN3 channel
ADC_CR1:ADON = 1
→ ADC power on
Wait (14/fADC) → stabilization time before starting the conversion
ADC_CR1:CONT = 1
→ continuos conversion mode
ADC_CR3:DBUF = 1
→ data buffer enable
ADC_CR2:ALIGN = 0
→ left alignment
ADC_CR1:ADON = 1
→ starting the conversion of the channel 3 by software
Wait (ADC_CSR:EOC = 1)
→ end of conversion
The results of the 16 consecutive conversions should be read from on ADC_DBxRH and
ADC_DBxRL registers (x = 0..15) before the end of the next conversions. The OVR flag is
set if one of the buffer registers is overwritten.
Analog watchdog
In continuous mode, the analog watchdog is always enabled. The AWD analog watchdog
flag is set if the analog voltage converted by ADC is out of the guard band limited by low and
high threshold values. The low and high threshold values are programmed in the ADC_HTR
and ADC_LTR registers.
Figure 5.
Analog watchdog
The ADC_HTR and ADC_LTR values can be calculated by the formula
,
Analog voltage
HTR
LTR
High threshold
Guarded area
Low threshold
ADC_xTR
V
AIN
V
REF+
V
REF-
–
-----------------------------------------
2
N
1
–
()
⋅
=



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


Datasheet Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
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