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

X  

STM8S 데이터시트(PDF) 433 Page - STMicroelectronics

부품명 STM8S
상세설명  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  STMICROELECTRONICS [STMicroelectronics]
홈페이지  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STM8S 데이터시트(HTML) 433 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 429Page - STMicroelectronics STM8S Datasheet HTML 430Page - STMicroelectronics STM8S Datasheet HTML 431Page - STMicroelectronics STM8S Datasheet HTML 432Page - STMicroelectronics STM8S Datasheet HTML 433Page - STMicroelectronics STM8S Datasheet HTML 434Page - STMicroelectronics STM8S Datasheet HTML 435Page - STMicroelectronics STM8S Datasheet HTML 436Page - STMicroelectronics STM8S Datasheet HTML 437Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 433 / 467 page
background image
DocID14587 Rev 14
433/467
RM0016
Analog/digital converter (ADC)
454
Note:
When using scan mode, it is not possible to use channels AIN0 to AINn in output mode
because the output stage of each channel is disabled when it is selected by the ADC
multiplexer.
A single conversion is performed for each channel starting with AIN0 and the data is stored
in the data buffer registers ADC_DBxR. When the last channel (channel ‘n’) has been
converted, the EOC (End of Conversion) flag is set and an interrupt is generated if the
EOCIE bit is set.
The converted values for each channel can be read from the data buffer registers. The OVR
flag is set if one of the data buffer registers is overwritten before it has been read (see
Section 24.5.5).
Do not clear the SCAN bit while the conversion sequence is in progress. Single scan mode
can be stopped immediately by clearing the ADON bit.
To start a new SCAN conversion, clear the EOC bit and set the ADON bit in the ADC_CR1
register.
Continuous scan mode
This mode is like single scan mode except that each time the last channel has been
converted, a new scan conversion from channel 0 to channel n starts automatically. The
OVR flag is set if one of the data buffer registers is overwritten before it has been read (see
Section 24.5.5).
Continuous scan mode is started by setting the ADON bit while the SCAN and CONT bits
are set.
Do not clear the SCAN bit while scan conversion is in progress.
Continuous scan mode can be stopped immediately by clearing the ADON bit. Alternatively
if the CONT bit is cleared while conversion is ongoing, conversion stops the next time the
last channel has been converted.
Caution:
In scan mode, do not use a bit manipulation instruction (BRES) to clear the EOC flag. This is
because this performs a read-modify-write on the whole ADC_CSR register, reading the
current channel number from the CH[3:0] register and writing it back, which changes the last
channel number for the scan sequence.
The correct way to clear the EOC flag in continuous scan mode is to load a byte in the
ADC_CSR register from a RAM variable, clearing the EOC flag and reloading the last
channel number for the scan sequence
24.5.5
Overrun flag
The OVR error flag is set by hardware in buffered continuous mode, single scan or
continuous scan modes. It indicates that one of the ten data buffer registers was overwritten
by a new converted value before the previous value was read. In this case, it is
recommended to start a new conversion.
Note:
Setting the ADON bit automatically clears the OVR flag.



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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


데이터시트 다운로드

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