2019-01-04 06:19 AM
Pleaese give me some idea for this control theory. The output pin should be PWM_A/_B/_C and RESET_A/_B/_C as shown on picture. If I give specific duty cycle and frequency, how to implement it ?
2019-01-04 06:37 AM
First, as not specialist of motor control, would say to look at motor control applications. The motor control boards are called IHMxxx if I remember well.
There might be different ways to implement.
One that I used to control analog switches around op-amps is using TIMER + COMPARE OUTPUT TOGGLE mode with DMA looping through a user defined compare RAM table. The timer was one shot kicked in from a trigger event signal. Depending on the STM32, the number of timers with DMA on compares maybe limited or not.
For the reset pins, it's a bit simpler, so there should be various ways to generate them.