전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

AN3023 데이터시트(PDF) 9 Page - STMicroelectronics

부품명 AN3023
상세설명  Using the analog-to-digital converter of the STM8A microcontroller
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3023 데이터시트(HTML) 9 Page - STMicroelectronics

Back Button AN3023 Datasheet HTML 5Page - STMicroelectronics AN3023 Datasheet HTML 6Page - STMicroelectronics AN3023 Datasheet HTML 7Page - STMicroelectronics AN3023 Datasheet HTML 8Page - STMicroelectronics AN3023 Datasheet HTML 9Page - STMicroelectronics AN3023 Datasheet HTML 10Page - STMicroelectronics AN3023 Datasheet HTML 11Page - STMicroelectronics AN3023 Datasheet HTML 12Page - STMicroelectronics AN3023 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 23 page
background image
AN3023
Configuring ADC registers for conversion
Doc ID 16113 Rev 1
9/23
3
Configuring ADC registers for conversion
3.1
ADC setup
Before starting an ADC conversion, ADC setup is done using the following steps:
●
ADC clock selection (define conversion speed)
●
Channel selection
●
Power on the ADC (set ADON bit)
●
Wait for 14 ADC clock cycles (14 * tADC)
●
Conversion mode selection (single or continuous)
●
Trigger source selection and only after trigger enable
●
Apply trigger source or set ADON bit
3.1.1
ADC clock
The clock supplied to the ADC peripheral is the prescaled fMASTER clock. The prescaler is
applied on bit SPSEL[2:0] in the ADC_CR1 register and it can be selected from fMASTER/2 to
fMASTER/18.
The prescaler selection must ensure a maximum 4 MHz ADC frequency.
ADC conversion time depends on the ADC clock frequency, the sampling time duration and
the ADC resolution. The minimum ADC conversion time is 3.5 µs @ 4 MHz ADC clock
frequency.
Note:
It is recommended to change bits SPSEL[2:0] when the ADC is in power-down mode. This
is because, internally, there may be a glitch in the clock during this change. If this change is
made when ADC is not in power-down, the user is required to ignore the first converted
result.
3.1.2
ADC on/off control (power on)
The ADC can be powered on by setting the ADON bit in the ADC_CR1 register. When the
ADON bit is set for the first time, it wakes up the ADC from power-down mode.
After power ON, wait for stabilization time and then, to start a conversion, either set the
ADON bit again in the ADC_CR1 register or use an external trigger source (timers or
ADC_ETR pin).
At the end of conversion, the ADC remains powered on and the ADON bit has to be set only
once to start the next conversion. If the ADC is not used for a long time, it is recommended
to switch it off to decrease power consumption. This is done by clearing the ADON bit.
When the ADC is powered on, the output stage of the selected channel is disabled;
therefore it is recommended to select the channel first before powering on the ADC.
Note:
If any bit of the ADC_CR1 register other than ADON is changed at the same time, the
conversion is not triggered. This is to prevent triggering an erroneous conversion.
Moreover, be aware that any bit manipulation instruction on the ADC_CR1 register can start
a new conversion due to the fact that the ADON bit is read as ‘1’ and then written back as ‘1’
by this operation.



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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