2020-04-04 07:58 AM
Greetings All! We have an F303CB processor for use in a motor control application. I wanted to ask on some points regarding the configuration.
Using TIM1 with CH1 and CH1N (phase A), CH2 and CH2N (phase B), and CH3 and CH3N (phase C). Switching frequency is 20kHz with 500 nanosec deadtime. --> This part seems to be working well.
We are using the "3-shunt current sensing" method, except that we are actually only sensing 2 of the 3 legs (to save cost). We are using ADC1 and ADC2 to simultaneously sample the two current sense resistors.
Using ADC3 and ADC4, we want to simultaneously sample two analog Hall sensors to get motor position feedback.
We want TIM1 to run the PWMs, and also trigger all 4 ADCs at the same time, so that we get simultaneous sampling across current samples and hall position samples.