1.
2.
3.
4.
5.
6.
7.Dual
8.
9.
2. Functional Description
1.
2.
3.
4.
5.
(1) Trigger injection. See the reference manual for details.
(2) Automatic injection. If the JAUTO bit is set, the injection group channels are automatically converted after the regular group channels. This can
6.
(1) Regular Group
(2) Injection group
An external trigger signal can start the conversion of the next channel in the sequence selected by the ADC_JSQR register until all conversions in the sequence are completed. The total sequence length is defined by the JL[1:0] bits in the ADC_JSQR register.
n=1, channels to be converted = 1,2,3
1st trigger: channel 1 is converted
2nd trigger: channel 2 is converted
3rd trigger: channel 3 is converted and EOC and JEOC events are generated
4th trigger: channel 1 is converted
Note: 1 When all injected channels are converted, the next trigger starts the conversion of the 1st injected channel. In the above example, the 4th trigger re-converts the 1st injected channel 1.
2 You cannot use the automatic injection and discontinuous mode at the same time. 3 You must avoid setting the discontinuous mode for both regular and injection groups at the same time. The discontinuous mode can only be applied to a group of conversions.
7.
8.
The ALIGN bit in the ADC_CR2 register selects the alignment of the converted data storage. The data can be left-aligned or right-aligned, as shown in Figure 146 and Figure 147.
The data value converted by the injection group channel has the offset defined in the ADC_JOFRx register subtracted, so the result can be a negative value. The SEXT bit is the extended sign value.
For the regular group channel, the offset value does not need to be subtracted, so only 12 bits are valid.
Data right-aligned:
Injection group
SEXT SEXT SEXT SEXT D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Regular group
0 0 0 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0
Data left-aligned:
Injection group
SEXT D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 0 0 0
Rule group
D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0
3. Programming and software configuration
1.
{
}
Previous article:STM32 MCU GPIO register
Next article:Determination of STM32 series ADC sampling frequency and corresponding time
Recommended ReadingLatest update time:2024-11-16 16:01
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications