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

X  

STM8S 데이터시트(PDF) 432 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) 432 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 428Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 432 / 467 page
background image
Analog/digital converter (ADC)
RM0016
432/467
DocID14587 Rev 14
24.5.3
Channel selection
There are up to 16 external input channels that can be selected through CH[0:3] bits of the
ADC_CSR register. The number of external channels depends on the device (refer to the
product datasheets).
If the channel selection is changed during a conversion, the current conversion is reset and
a new start pulse is sent to the ADC.
24.5.4
Conversion modes
The ADC supports five conversion modes: single mode, continuous mode, buffered
continuous mode, single scan mode, continuous scan mode.
Note:
ADC1 AIN12 channel cannot be selected in ADC scan mode or with analog watchdog.
Values converted from AIN12 are stored only in the ADC_DRH/ADC_DRL registers. Refer
to product datasheet for AIN12 availability.
Single mode
In Single conversion mode, the ADC does one conversion on the channel selected by the
CH[3:0] bits in the ADC_CSR register. This mode is started by setting the ADON bit in the
ADC_CR1 register, while the CONT bit is 0.
Once the conversion is complete, the converted data are stored in the ADC_DR register, the
EOC (End of Conversion) flag is set and an interrupt is generated if the EOCIE bit is set.
Continuous and buffered continuous modes
In continuous conversion mode, the ADC starts another conversion as soon as it finishes
one. This mode is started by setting the ADON bit in the ADC_CR1 register, while the CONT
bit is set.
•
If buffering is not enabled (DBUF bit = 0 in the ADC_CR3 register), the converted data
is stored in the ADC_DR register and the EOC (End of Conversion) flag is set. An
interrupt is generated if the EOCIE bit is set. Then a new conversion starts
automatically.
•
If buffering is enabled (DBUF bit =1) the data buffer is filled with the results of 8 or 10
consecutive conversions performed on a single channel. When the buffer is full, the
EOC (End of Conversion) flag is set and an interrupt is generated if the EOCIE bit is
set. Then a new set of 8 or 10 conversions 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).
To stop continuous conversion, reset the CONT bit to stop conversion or reset the ADON bit
to power off the ADC.
Single scan mode
This mode is used to convert a sequence of analog channels from AIN0 to AINn where ‘n’ is
the channel number defined by the CH[3:0] bits in the ADC_CSR register. During the scan
conversion sequence the CH[3:0] bits are updated by hardware and contain the channel
number currently being converted.
Single scan mode is started by setting the ADON bit while the SCAN bit is set and the
CONT bit is cleared.



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