Skip to main content
Wzong.1
Associate III
October 13, 2020
Solved

STSPIN32F0 PF6 PF7 找�?到管脚

  • October 13, 2020
  • 7 replies
  • 1046 views

..

This topic has been closed for replies.
Best answer by Enrico Poli

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);

7 replies

Enrico Poli
ST Employee
October 14, 2020

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.

Wzong.1
Wzong.1Author
Associate III
October 14, 2020

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.

0693W000004JhffQAC.png

Enrico Poli
Enrico PoliBest answer
ST Employee
October 14, 2020

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);

Wzong.1
Wzong.1Author
Associate III
October 14, 2020

Thank you Poli, Now I understand they have nothing to do with the hardware, I can Configure them by code.

Enrico Poli
ST Employee
October 14, 2020

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 ;)

Wzong.1
Wzong.1Author
Associate III
October 15, 2020

OK�?With pleasure.

Wzong.1
Wzong.1Author
Associate III
October 28, 2020

 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!0693W0000059YIRQA2.png0693W0000059YIHQA2.png