Multiple SDRAM chips arrangements on 144 pin TQFP STM32F7 series clarification
Hello everybody!
I am looking into possibilities of having 256 megabytes of SDRAM memory on a 144 pin STM32F7 chip. As I understand the 144 pin chips only have 16 bits data bus available for the SDRAM interface, so I was looking into using two, 8 bit data bus 512megabit chips (because they are readily available), sharing everything but the databus pins, which would go separate to make up the 16 bits, and give me a total of 128 megabytes. Now, I was wondering about the SDRAM1 and SDRAM2 interfaces which are available on these STM32F7 chips.. one uses SDCKE0+SDNE0 clock and chip enable pins and the other SDCKE1+SDNE1 pins. I am trying to understand how this works, given that both SDRAM1 and SDRAM2 seem to be sharing all of the other pins. Would it be possible for me to connect a second pair of SDRAM chips to all the same interface pins used by the first pair, but using these other clock and chip enable pins, in a sort of a "multiplexed" way where both pairs of chips can be accessed? Or am I really just limited by the 16 bit maximum data bus width of the 144 pin chips series, and a maximum of 2 physical SDRAM chips? If so, what is the purpose of the 2 separate SDRAM1 and SDRAM2 interfaces that can be enabled simultaneously (saying this based on what STM32CUBE software shows)?
Basically, I am looking forward to having 256 megabytes of ram to store and playback a high quality stereo WAV file. If there are better ways than using SDRAM, ideas are welcome! Need to be a type of RAM that could support unlimited read/write cycles.
Thank you in advance for any advice!
Best regards,
Konstantin