Os motores de busca de Datasheet de Componentes eletrônicos
  Portuguese  ▼
ALLDATASHEETPT.COM

X  

AN3023 Folha de dados(PDF) 17 Page - STMicroelectronics

Nome de Peças AN3023
Descrição 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 início  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3023 Folha de dados(HTML) 17 Page - STMicroelectronics

Back Button 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 AN3023 Datasheet HTML 19Page - STMicroelectronics AN3023 Datasheet HTML 20Page - STMicroelectronics AN3023 Datasheet HTML 21Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 23 page
background image
AN3023
Configuring ADC registers for conversion
Doc ID 16113 Rev 1
17/23
3.2
Storing converted values
In the scan mode and buffered continuous mode, the converted ADC values are stored in
the data buffer registers ADC_DBxRH and ADC_DBxRL, where x = 1..15.
In the normal mode, the converted ADC values are stored in the ADC data registers
ADC_DRH and ADC_DRL. ADC_DRH and ADC_DRL also contain the last converted value
in scan and buffered continuous mode.
Different data alignment modes (left or right) can be selected depending on the application.
If right alignment mode is chosen, the LSB register (ADC_DRL) must be read before the
MSB register (ADC_DRH), otherwise the values of register ADC_DRH are not updated. If
left alignment mode is chosen, the MSB register (ADC_DRH) must be read before the LSB
register (ADC_DRL), otherwise the values of register ADC_DRL are not updated. This
prevents reading data register values from two different conversions. Therefore the reading
order must be respected.
Practical use
Left alignment is useful for fast read access to the conversion result in 8-bit resolution.
Right alignment is useful for fast read access when measuring low level signals. In cases
where the result does not affect the high order bits, you can read only the LSB byte.
3.3
ADC interrupt management
ADC interrupt sources are selectable from one or more of the following events:
End of conversion (EOC) in nonbuffered mode—generated after each AD conversion
End of conversion (EOC) in buffered mode—generated after data buffer registers are
full
Analog watchdog alert—when converted values reach the high or low threshold values
You can enable the ADC interrupt to give the main program fast asynchronous event
notification at the end of conversion(s). This means the main program does not need to poll
the ADC conversion status flags but only has to process the ADC data results (for example,
after storing a set of conversions in a buffer). The reception of the ADC converted data
values is performed by an interrupt routine in the background. In addition, the analog
watchdog interrupt can be used for monitoring a given analog range on the measured
channels.
Register settings:
ADC_CSR: AWDIE, EOCIE bits



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


Folha de dados Download

Go To PDF Page


Ligação URL



ALLDATASHEET é útil para você?  [ DONATE ] 

Sobre Alldatasheet   |   Publicidade   |   Contato conosco   |   Privacy Policy   |   Link para a ficha técnica    |   roca de Link   |   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