Stm32 ADC Learning

Source: Internet
Author: User

The 1.stm32 uses a successive approximation analog digital approach, so what is successive approximation?

The successive approximation is similar to the dichotomy, taking the 8-bit data as an example; When an analog amount is entered, the first half of the 8 digits, i.e. 1000 0000, is compared with the analog value, then becomes 1, less than the next bit; set the next one to 1, then compare, greater than 0, and less than the same. Until the two numbers are not large, stop comparing and output the result.

What is the alignment method in 2.ADC?

Since the ADC conversion result in Stm32 is 12 bits, the data storage register is 16 bits. Left-aligned, that is, the highest bit of the 12-bit is the highest bit of the register, low four bits no data, right-aligned, the lowest bit of 12 bits is the lowest bit of register, high four-bit no number

3. What is the difference between a regular channel and an injection channel?

In fact, these two translations are not very appropriate, you can understand the rule channel as a regular channel, and the injection channel is an interrupt channel, that is, the injection channel can interrupt the transformation of the regular channel.

4. For "You must avoid setting the break mode for both the rule and the injection group. Discontinuous mode can only act on a set of transformations. "The Understanding

Where the "current conversion" refers to all conversions before the end of the rule channel patrol, the conversion of the group is reset when the conversion of the injection group is not completed, so the break mode is available for both channels, but the interval must be set to convert after the rule group ends, However, due to the time interval can not be accurately calculated, so two channels are not recommended for intermittent mode

Waiting for follow-up ...

Stm32 ADC Learning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.