adafruit / Adafruit_VS1053_Library

This is a Arduino library for the Adafruit VS1053 Codec Breakout and Music Maker Shields
https://www.adafruit.com/products/1381
133 stars 112 forks source link

Increase SPI clock? #84

Closed bimac closed 1 year ago

bimac commented 1 year ago

Would it be possible/sensible to increase the SPI clock settings for, both, access to SD card and VS1053b? The SD card should be good up to 25 Mhz, and the VS1053b should be happy with 5 Mhz (internal clock of 36.864 Mhz / 7, according to the datasheet). I'm having some issues here with high-bitrate files clogging the bus ... Alternatively, this could perhaps be handled with user-defined parameters through an overloaded constructor? Happy to send a PR if you're interested. Cheerio :-)

bimac commented 1 year ago

I played around with this a bit using a Teensy 3.2 - I could push the communication with VS1053b to 2.4 MHz (library is currently at 250 kHz). I had issues pushing SD access beyond 9 MHz (library at 8 MHz). After a bit of research this seems to be limited by the HC4050 on board of the PCB?