Question
GPIO output speed register setting
- September 18, 2024
- 6 replies
- 6529 views
How to set GPIO output speed register (slow, medium, fast, very fast) in accordance to SPI and the slower I2C, clock speeds respectively? The data sheet specify in rise/fall time. Is it correct that the register actually set drive current?
SPI clock at 6MHz is 83ns high and 83ns low. Should we aim to make rise/fall time a "certain percentage" of 83ns? If so, how much?
Part is STM32WLE5JCI6TR,
SPI bus has two external devices. Pin capacitance is about 5pF per device, presumably the MCU alos count as one, plus 5pF for PCB. That will be 20pF. When putting a scope X10 passive probe will add 15pF. Total 35pF. Still under the 50pF on data sheet. SPI clock about 6MHz.
I2C has one external device. Clock is 100 to 400kHz.
Many thanks
