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

X  

AN2658 데이터시트(PDF) 14 Page - STMicroelectronics

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

AN2658 데이터시트(HTML) 14 Page - STMicroelectronics

Back Button AN2658 Datasheet HTML 10Page - STMicroelectronics AN2658 Datasheet HTML 11Page - STMicroelectronics AN2658 Datasheet HTML 12Page - STMicroelectronics AN2658 Datasheet HTML 13Page - STMicroelectronics AN2658 Datasheet HTML 14Page - STMicroelectronics AN2658 Datasheet HTML 15Page - STMicroelectronics AN2658 Datasheet HTML 16Page - STMicroelectronics AN2658 Datasheet HTML 17Page - STMicroelectronics AN2658 Datasheet HTML 18Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 23 page
background image
Configuring ADC registers for conversion
AN2658
14/23
Doc ID 14152 Rev 2
Right alignment has the advantage of 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 least
significant byte.
Practical usage: Left alignment is useful for fast read access to the conversion result in 8-
bit resolution.
Register settings:
ADC_CR3: DBUF bit
ADC_CR2: ALIGN bit
ADC_CR3: OVR bit
3.5
Analog watchdog function
The converted ADC sample is compared with the high and low analog watchdog threshold
registers. If the threshold is reached then the AWD flag is set and another status bit in the
analog watchdog status register to indicate the channel on which the event occurred. The
analog watchdog function can be enabled for selected channels only by setting the
corresponding bits in the ADC_AWCRx control registers.
Register settings:
ADC_HTRH, ADC_HTRL, ADC_LTRH, ADC_LTRL - high and low thresholds
ADC_AWCRH, ADC_AWCRL - control registers
ADC_AWSRH, ADC_AWSRL - status registers
ADC_CSR: AWDIE and AWD bits
3.6
ADC interrupt management
ADC interrupt source(s) are selectable from one or more of the following events:
●
End of conversion (EOC) in non buffered 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
Event-driven programming can be used for efficiency or for special software requirements.
With this technique, when the main program is running, it is notified of state changes by
events. 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


데이터시트 다운로드

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