2020-10-13 06:47 AM
2020-10-14 02:18 AM
Dear @Wzong.1
Sorry, I misunderstood your question.
PF6 and PF7 are not available on the pinout of the device, but they are internally connected to the gate driving circuitry.
In fact the STSPIN32F0 is a system-in-package embedding 2 silicon in the same package:
STM32F031 MCU + three-phase gate driver
The PF6 and PF7 of the STM32F031 are internally connected to the gate driver silicon.
For setting the OC values according to the table you just need to set the GPIOs through the code.
For example, the 100 mV threshold is set as following:
HAL_GPIO_WritePin(GPIOF,GPIO_PIN_6,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOF,GPIO_PIN_7,GPIO_PIN_SET);
2020-10-14 12:41 AM
Dear @Wzong.1
Looks like you are asking clarifications about the STSPIN32F0 pinout (no PF6 and PF7 pins).
I confirm you that these two GPIOs are not available in the STSPIN32F0 pinout.
2020-10-14 01:41 AM
Dear Poli:
Thank you very much for answering my questions in time.How can I change the Internal comp. threshold in motor control.
I need to configure PF6�?PF7 as shown in the following table.Thanks.
2020-10-14 02:18 AM
Dear @Wzong.1
Sorry, I misunderstood your question.
PF6 and PF7 are not available on the pinout of the device, but they are internally connected to the gate driving circuitry.
In fact the STSPIN32F0 is a system-in-package embedding 2 silicon in the same package:
STM32F031 MCU + three-phase gate driver
The PF6 and PF7 of the STM32F031 are internally connected to the gate driver silicon.
For setting the OC values according to the table you just need to set the GPIOs through the code.
For example, the 100 mV threshold is set as following:
HAL_GPIO_WritePin(GPIOF,GPIO_PIN_6,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOF,GPIO_PIN_7,GPIO_PIN_SET);
2020-10-14 02:47 AM
Thank you Poli, Now I understand they have nothing to do with the hardware, I can Configure them by code.
2020-10-14 02:58 AM
You are welcome @Wzong.1
If you are satisfied of my previous answer, please flag it as "best answer".
This will help other community members finding answers to their issues ;)
2020-10-14 06:27 PM
OK�?With pleasure.
2020-10-28 12:12 AM
Hi Poli.
Now I'm using the ST Motor Control Workbench to debug the FOC, but how to set or calculate the parameters (1 and 2 of the figure below)bothers me, Can you give me some guidance, Thanks!