cancel
Showing results for 
Search instead for 
Did you mean: 

STSPIN32F0 PF6 PF7 找�?到管脚

Wzong.1
Associate III
 
1 ACCEPTED SOLUTION

Accepted Solutions
Enrico Poli
ST Employee

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

View solution in original post

7 REPLIES 7
Enrico Poli
ST Employee

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
Associate III

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
ST Employee

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
Associate III

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

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
Associate III

OK�?With pleasure.

Wzong.1
Associate III

 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