Home > other >  Stm32 acquisition rate
Stm32 acquisition rate

Time:11-01

Novice because some other work need to learn the use of stm32f103 adc, need to collect the voltage, the target is 1 ms at least 10 points, I was using a single channel dma, usart baud rate is set to 115200, in order to save everyone's time, I only put the parameter Settings section figure, other configuration code should do not have what problem, I in data from serial port, a cycle (ms) 20 to 20 points,

CodePudding user response:

1 ms 10 points that is 10 k, frequency division and calculate ADC_SampleTime_239Cycles5 next look at the clock isn't fast enough
Another bit rate 115200 or 11520 bytes/S, even if the AD is only 8, 1 ms sent 10 bytes is also very nervous

CodePudding user response:

reference 1st floor dceacho response:
1 ms 10 points that is 10 k, frequency division and calculate ADC_SampleTime_239Cycles5 next look at the clock isn't fast enough
Another bit rate 115200 or 11520 bytes/S, even if the AD is only 8, 1 ms sent 10 bytes is also very nervous

Hello, thank you for your reply! Am I on the right is calculate so you see, the clock is six points frequency is 12 MHZ, cycle is 1/12 mu s, sampling time is 20 mu s 240 cycles, so 1 ms can adopt 50 points,
There is also the question of baud rate, I tried more than 15200 output noise,
  • Related