Electronic Components Datasheet Search
  English  ▼

X  

AN4195 Datasheet(PDF) 13 Page - STMicroelectronics

Part # AN4195
Description  STM32F30x ADC modes and application
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4195 Datasheet(HTML) 13 Page - STMicroelectronics

Back Button AN4195 Datasheet HTML 9Page - STMicroelectronics AN4195 Datasheet HTML 10Page - STMicroelectronics AN4195 Datasheet HTML 11Page - STMicroelectronics AN4195 Datasheet HTML 12Page - STMicroelectronics AN4195 Datasheet HTML 13Page - STMicroelectronics AN4195 Datasheet HTML 14Page - STMicroelectronics AN4195 Datasheet HTML 15Page - STMicroelectronics AN4195 Datasheet HTML 16Page - STMicroelectronics AN4195 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 24 page
background image
DocID023897 Rev 1
13/24
Independent modes
2.2.4
Using the ADC in injected conversion
Injected channel configuration
1.
Configure the sequence length, the order of channels to be converted, the external
hardware trigger and the edge of this trigger, by configuring the ADC_JSQR registers.
2.
Configure the next context (if the queue of context will be used). Note that each write
access to the ADC_JSQR register is considered as a new context.
3.
Configure the sampling time for each channel to be configured, by writing to the
ADC_SMPRX registers.
4.
Select the JSQR mode by writing to the JQM bit in the ADC_CFGR register.
5.
Set the JAUTO bit if the injected sequence should be started after the regular channels.
6.
Configure the ADC resolution by writing to the RES bit in the ADC_CFGR register.
ADC start conversion
Software-injected ADC conversion is started immediately after the JADSTART bit is
set.
Hardware-injected conversion is started after the JADSTART bit is set, and at the next
active edge of the selected injected hardware trigger.
If JAUTO=1, both the regular and injected conversion channels use the ADSTART bit
to start the regular conversions, followed by the auto-injected conversions. This means
that JADSTART must be kept cleared.
ADC read conversion data
At the end of each injected conversion channel (when the JEOC event occurs), the
converted data result is stored in the corresponding 16-bit wide ADC_JDRx data register.
To read the converted data, both the JEOC flag/interrupt and the JEOS flag/interrupt can be
used to access the corresponding register.
2.2.5
Application examples
The injected conversion mode can be used to synchronize the conversion of channels to an
event. It is interesting in motor control applications where transistor switching generates
noise that impacts ADC measurements and results in wrong conversions. Using a timer, the
injected conversion mode can thus be implemented to delay the ADC measurements until
after the transistor switching.
The queue of context is used to synchronize the conversion of channels to an event, each
context uses a specific external trigger to convert a specific sequence of injected channels.
A typical example of application of the Queue of context is the dual motor control.



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


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