a_guy_called_tom
Active member
Hi all
I'm using a Teensy 4.1 for an audio device with both an external DAC and an OLED display. I noticed that using the OLED via SPI introduces quite some noise in the audio signal. I would like to try if limiting the slew rate* on some of the SPI pins improves the situation, however i have no clue how to enable/disable the setting on individual pins (and i don't know if its enabled by default or not). Would anyone be able to point me in the right direction with some code snippets?
Many thanks!
Tom
* from the Teensy 4.1 product page:
Slew Rate Limiting
This optional feature greatly reduces high frequency noise when long wires are connected to digital output pins. The rate of voltage change on the pin is slowed. The extra time is only nanoseconds, which is enough to lower undesirable high frequency effects which can cause trouble with long wires.
I'm using a Teensy 4.1 for an audio device with both an external DAC and an OLED display. I noticed that using the OLED via SPI introduces quite some noise in the audio signal. I would like to try if limiting the slew rate* on some of the SPI pins improves the situation, however i have no clue how to enable/disable the setting on individual pins (and i don't know if its enabled by default or not). Would anyone be able to point me in the right direction with some code snippets?
Many thanks!
Tom
* from the Teensy 4.1 product page:
Slew Rate Limiting
This optional feature greatly reduces high frequency noise when long wires are connected to digital output pins. The rate of voltage change on the pin is slowed. The extra time is only nanoseconds, which is enough to lower undesirable high frequency effects which can cause trouble with long wires.