Author Topic: STM32F4 GPIO Speed Vs External Debounce circuit.  (Read 2084 times)

0 Members and 1 Guest are viewing this topic.

Offline diyaudioTopic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 683
  • Country: za
STM32F4 GPIO Speed Vs External Debounce circuit.
« on: February 09, 2017, 06:53:35 am »
It occurred to me that whilst building a typical 4 button push button circuit with rotary encoder, that the inputs to STM32F4 MCU has GPIO speed settings of which 2_Mhz is the lowest reaction time for the PORT to latch, does this mean typical external RC Debouncing maybe be ommited ?
 

Offline kony

  • Regular Contributor
  • *
  • Posts: 242
  • Country: cz
Re: STM32F4 GPIO Speed Vs External Debounce circuit.
« Reply #1 on: February 09, 2017, 06:56:02 am »
Why not just timer polling of the inputs and some majority voting logic for the buttons?
You are very likely running system tick timer with period in the order of 1-10ms anyways.
 

Offline JPortici

  • Super Contributor
  • ***
  • Posts: 3461
  • Country: it
Re: STM32F4 GPIO Speed Vs External Debounce circuit.
« Reply #2 on: February 09, 2017, 06:59:09 am »
the gpio speed affects the slew rate of the output driver.
or does it have an effect on the input too? what does the manual say?
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3240
  • Country: gb
Re: STM32F4 GPIO Speed Vs External Debounce circuit.
« Reply #3 on: February 09, 2017, 09:44:33 am »
the gpio speed affects the slew rate of the output driver.
or does it have an effect on the input too? what does the manual say?

AFAIK it only affects the output driver slew rate, nothing to do with the inputs.
 
The following users thanked this post: diyaudio


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf