My question is : can the C produced by the ST Motor Control Workbench be modified by to permit all 3 inverter currents to be measured by the same ADC, for example ADC 1? This would result in a 200ns delay for the 2nd measurement, and 400ns delay for
Messieurs,
I am using the ST NUCLEO-F303RE together with an X-NUCLEO-IHM08M1 and the ST Motor Control Workbench (STMCW) to drive a BLDC motor using ST code.
In addition, my company has designed its own motor control board for driving two BLDC motors using the same STM32F303RET6 processor. I hope, for prototype purposes, to use some of the ST motor control code in the company motor control board.
However, I may have an issue with the ST code because of the ADC allocation.
In the X-NUCLEO-IHM08M1 the inverter currents are measured by bridge leg shunt resistors and fed to operational amplifiers with a gain of 5.18.
The STMCW allows for selection of the ADC channels with the NUCLEO-F303RE board for measuring the inverter shunt currents, for example :-
Ch phase U ADC1_IN1 (A0)
Ch phase V ADC12_1N9 (C3)
Ch phase W ADC12_IN8 (C2)
What is apparent is that the choice of ADC channels is as follows
(a) 1 fast channel from ADC1
(b) 1 connected channel from ADC12
(c) 1 other channel
I assume that (a) and (b) are to permit simultaneous analog to digital conversion of at least 2 inverter currents at the same time.
The ADCs are very quick - 200ns conversion time.
The PWM switching frequency on my board is in the range 50-100kHz. The ripple current is quite small.
My question is : can the C produced by the ST Motor Control Workbench be modified by to permit all 3 inverter currents to be measured by the same ADC, for example ADC 1? This would result in a 200ns delay for the 2nd measurement, and 400ns delay for the last current measurement, which I think is acceptable.
Cordialement,
Patrick Brooking.