3608 views|2 replies
EdwardsThompson
Currently offline
|
The OP
Published on 2018-3-22 14:03
Only look at the author
This post is from stm32/stm8
Latest reply
Usually, the multi-channel AD of the MCU is multiplexed. If a single channel always occupies the AD, the resources will be wasted. The sampling rate and reading frequency of each channel can be configured. For example, the sampling rate of CH1 is configured to 100Khz, the sampling rate of CH2 is configured to 50Khz, the overflow interrupt of TIM1 is used as the trigger source, and then the overflow frequency is configured to 10HZ, that is, the MCU will read the data of CH1 and CH2 10 times per second. ADC_SampleTime_480Cycles is related to the sampling rate, and ADC_ExternalTrigConv_T2_TRGO is related to the frequency of your data reading. See the figure for the interrupt source configuration.
Details
Published on 2018-3-22 19:52
| |
Personal signature淡泊明志 宁静致远
|
||
2
Published on 2018-3-22 19:52
Only look at the author
This post is from stm32/stm8
Comments
Thanks for the answer, I learned something new!
Details
Published on 2018-3-24 19:12
| ||
Personal signature爱电子,爱生活
|
||
|
EdwardsThompson
Currently offline
|
This post is from stm32/stm8
| |
Personal signature淡泊明志 宁静致远
|
||
|
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190