cancel
Showing results for 
Search instead for 
Did you mean: 

[ STM32G070 ] STM32G070 input mode pin speed setting?

E-John
Associate III

Dear Sir,

In STM32G070 series, the code shows the speed setting for GPIO output,

If my GPIO is setting for input to receive external interrupt, does the speed setting also apply for GPIO input mode?

Thanks

/** @defgroup GPIO_speed GPIO speed
  * @brief GPIO Output Maximum frequency
  * @{
  */
#define  GPIO_SPEED_FREQ_LOW        (0x00000000u)  /*!< Low speed       */
#define  GPIO_SPEED_FREQ_MEDIUM     (0x00000001u)  /*!< Medium speed    */
#define  GPIO_SPEED_FREQ_HIGH       (0x00000002u)  /*!< High speed      */
#define  GPIO_SPEED_FREQ_VERY_HIGH  (0x00000003u)  /*!< Very high speed */

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

No, the speed setting only applies to the GPIO output mode and affects the output drivers. This means that with a lower speed setting, the interference radiation (EMI) can be significantly reduced, and it also has some influence on the current consumption of the GPIO block.

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

No, the speed setting only applies to the GPIO output mode and affects the output drivers. This means that with a lower speed setting, the interference radiation (EMI) can be significantly reduced, and it also has some influence on the current consumption of the GPIO block.

Does it answer your question?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
E-John
Associate III

Yes, thanks for you explanations