Electronics > Beginners
stm32 gpio speed
alireza7:
hi
what does the GPIO_Speed setting do?
GPIO_Speed_2MHz /*!< Low speed */
GPIO_Speed_25MHz /*!< Medium speed */
GPIO_Speed_50MHz /*!< Fast speed */
GPIO_Speed_100MHz
does it change the gpio pin slew rate? or it changes propagation time of gpio pin?
Muxr:
My understanding is, it does improve the slew rate at the expense of power use and noise being generated by the circuit.
So unless you really need it for a specific reason it's best to use the slower speed.
alireza7:
--- Quote from: Muxr on July 28, 2018, 05:13:14 pm ---My understanding is, it does improve the slew rate at the expense of power use and noise being generated by the circuit.
So unless you really need it for a specific reason it's best to use the slower speed.
--- End quote ---
but it's some how odd to me.
how can a digital gate change its slew rate during operation time??
Muxr:
--- Quote from: alireza7 on July 28, 2018, 05:20:43 pm ---
--- Quote from: Muxr on July 28, 2018, 05:13:14 pm ---My understanding is, it does improve the slew rate at the expense of power use and noise being generated by the circuit.
So unless you really need it for a specific reason it's best to use the slower speed.
--- End quote ---
but it's some how odd to me.
how can a digital gate change its slew rate during operation time??
--- End quote ---
Not only can it change the slew rate it can completely change the mode of operation from using push-pull to open-drain, as well as the configuration of built in pull-ups and pull-downs.
The integrated circuit (STM32) can have this capability. I don't know the exact implementation details on how they accomplish it but I don't think it's that hard to believe that its capable of doing it.
Perhaps ask in the Microcontroller's section. Maybe someone knows the answer.
ataradov:
I'm just guessing here, but when you select slow or fast mode on Microchip SAM MCUs there is an observable change in the pin series resistance. My best guess is that the idea here is to have an RC filter formed by that variable resistor and the line capacitance.
Again, just guessing and would be interested to know the details myself.
My observation method may not be perfect either. All I did is set the pin as an output driven to 0 and measure the resistance from the pin to ground using a multimeter. Since there is only two settings in SAM MCUs, the results are hard to interpret. May be you can do the same measurement on the STM32?
Navigation
[0] Message Index
[#] Next page
Go to full version