Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2658 Datasheet(PDF) 4 Page - STMicroelectronics

Part # AN2658
Description  Using the analog to digital converter of the STM8S microcontroller
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2658 Datasheet(HTML) 4 Page - STMicroelectronics

  AN2658 Datasheet HTML 1Page - STMicroelectronics AN2658 Datasheet HTML 2Page - STMicroelectronics AN2658 Datasheet HTML 3Page - STMicroelectronics AN2658 Datasheet HTML 4Page - STMicroelectronics AN2658 Datasheet HTML 5Page - STMicroelectronics AN2658 Datasheet HTML 6Page - STMicroelectronics AN2658 Datasheet HTML 7Page - STMicroelectronics AN2658 Datasheet HTML 8Page - STMicroelectronics AN2658 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 4 / 23 page
background image
ADC hardware description
AN2658
4/23
Doc ID 14152 Rev 2
1
ADC hardware description
1.1
General properties
STM8 family microcontrollers include one Analog to Digital Converter which has up to 16
multiplexed inputs. Depending on the STM8 device, the ADC can be one of two types:
●
A basic ADC type named ADC2
●
An extended ADC type named ADC1
The resolution of both ADC types is 10 bits. The number of external analog inputs depends
on the package size of the chosen STM8 family device.
The ADC is a successive approximation Analog to Digital Converter (SAR). Conversion can
be performed in continuous mode or single mode. The analog input channels can be
selected individually or in scan mode. In scan mode, several channels are converted in
sequence, the channel number is incremented for each conversion. The digital result is then
stored in registers. Because the ADC resolution is 10 bits and the ADC data register bit
length is 16, one ADC result is stored in two 8-bit registers. The 10-bit data is either right or
left aligned (this is selectable) in the 16-bit register. Devices with ADC1 can use buffered
mode for data storage. In this case, the values converted by the ADC are stored in N data
buffers (to decrease CPU overhead).
The event used to start conversion can be generated by software or by the STM8
microcontroller's internal timer 1 (any type of timer event can be used). The start of A/D
conversion can also be triggered by an external pin.
The reference voltage for the ADC depends from package. It comes either from an external
source - in this case the reference must be connected to two external pins - or is connected
internally to analog power supply pins. The value of this reference voltage is restricted in its
magnitude - must be from 2.75V up to VDDA. The measured voltage must be between VREF+
and VREF-. Resolution can be increased by so-called analog zooming - using a smaller
reference voltage around the range of values to be measured.
Devices with ADC1 have an analog watchdog function. This function compares the
converted data with high and low thresholds and if a threshold is reached then the analog
watchdog flag is set.
If needed, an interrupt can be generated at the end of conversion and if an analog watchdog
event occurred.
The ADC is driven by a clock derived from the MCU master clock through a programmable
divider. This allows you to select the ADC clock speed according to your application
requirements.



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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