| 전자부품 데이터시트 검색엔진 |
|
AN4073 데이터시트(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4073 데이터시트(HTML) 9 Page - STMicroelectronics |
|
9 / 32 page ![]() 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 = |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |