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

X  

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

부품명 AN4073
상세설명  How to improve ADC accuracy when using STM32F2xx and STM32F4xx microcontrollers
PDF  32 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

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

Back Button AN4073 Datasheet HTML 5Page - STMicroelectronics AN4073 Datasheet HTML 6Page - STMicroelectronics AN4073 Datasheet HTML 7Page - STMicroelectronics AN4073 Datasheet HTML 8Page - STMicroelectronics AN4073 Datasheet HTML 9Page - STMicroelectronics AN4073 Datasheet HTML 10Page - STMicroelectronics AN4073 Datasheet HTML 11Page - STMicroelectronics AN4073 Datasheet HTML 12Page - STMicroelectronics AN4073 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 32 page
background image
DocID022945 Rev 5
9/32
AN4073
Firmware techniques for improving the conversion accuracy
31
Figure 3. Averaging of N-X ADC sample algorithm
Total conversion time = (number of samples * ADC conversion time) + computation time.
Computation time = time taken to read the results, sort the N ADC samples, delete the X
most dispersed samples, add the rest of the ADC samples together and calculate the
average by dividing the total by N-X.
Note:
Refer to Appendix B for more details about the code source used.
MS31177V1
Start
Initialize ADC, variables, I/O and select the
analog channel to be used, (Buff[N])
Configure the ADC to convert
once after each trigger
Set the ADC Start of Conversion bit
Read the ADC output registers after End of Conversion
Add read value to Buff[++]
No. of
conversions
= N?
Sort the N ADC sample
(sort Buff[N])
End
Yes
No
Delete X/2 sample from the top of Buff[N]
And X/2 sample from the bottom of Buff[N]
N-
_
2
X
-1
()
_
2
X
Buff[i]
()
N - X
1
Average =



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


데이터시트 다운로드

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