Questions about adding 23LC1024 RAM to the audio adapter

Status
Not open for further replies.

lazybaby7

Member
I notice that the schematic of the audio adapter shared on the PJRC website suggests 23LC1024 chip and SDcard socket share several connections(pin12,14,7) to teensy. May I ask if teensy will still be able to play wav file from SD card if the 23LC1024 is mounted on the audio shield?
 
Yes, You are correct. The two memory devices (SD Card and 23LC1024 SRAM) share the common SPI signals (SCLK, MISO, and MOSI) but do not share the Device Select signals. The SD card uses SD Chip Select (SDCS or pin 10) when it is active on the SPI Bus and the SRAM Memory uses Mem Chip Select (MEMCS or pin 6) when it is active on the SPI Bus. You just have to manage who and when "has the SPI Bus" to keep everyone happy. It is quite common to share the SPI bus among several different devices -- such as SRAM, SD Cards, Ethernet, and TFT Displays
 
Yes, you can even use the delayExt object (the only thing currently in the audio lib which makes use of the memory chip) while also playing from the SD card. Why you'd do that, I'm not sure? Maybe adding so extra effects to already recorded sound? Anyway, the hardware works and the audio lib software properly uses those chip select pins.
 
Hello Paul Stoffregen, I am just curious. Thank you so much for reminding me that the delayExt object should be used.
 
Status
Not open for further replies.
Back
Top