cancel
Showing results for 
Search instead for 
Did you mean: 

How can i set CubeMX to get ADC data in stm32f103rb?

kkiha
Associate

Hi. I'm KAI.

I want to configure the system to receive the sensing value by ADC.

The system configuration I am currently thinking is as follows.

  1. The system is the same as the attached file. In STM32F103RB, the serial data and the SR clock signal are input to the shft register and shift register output signal is transferred from the shft register to the sensor unit. During this high input signal, the ADC is selected through a 3-bit MUX control signal and received as an STM32F ADC input. The timing diagram at this time is the same as the attached file.
  2. ​PB13 and PB15 use the same timer as TIM1_CH3N and TIM1_CH1N, respectively, and I wonder if I can make TIM1_CH3N of PB13 like the attached timing diagram.
  3. I am wondering if PB7 (TIM4_CH2) is master and PB13 / PB15 (TIM1) is slave and it is possible to synchronize PB13, PB15, PC6, PC7, PC8, ADC_SAMPLING signal.
  4. I wonder if this is the most commonly used method in these systems.

I am developing for the first time using STM and since I am a beginner in the field of firmware, I need your help. Thank you.

0 REPLIES 0