Skip to main content
E-John
Associate III
March 23, 2023
Solved

[ STM32G070 ] STM32G070 input mode pin speed setting?

  • March 23, 2023
  • 2 replies
  • 1920 views

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 */

This topic has been closed for replies.
Best answer by Peter BENSCH

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

2 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
March 23, 2023

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
E-JohnAuthor
Associate III
March 24, 2023

Yes, thanks for you explanations