Guidance on how to use the 32MB PSRAM on the P2-EC32MB
jrullan
Posts: 168
in Propeller 2
Hello all.
I recently got my P2-EC32MB edge module and I want to learn how to access the PSRAM memory. I read that it uses an SPI interface running @ up to 133MHz. I wonder if there is an example code somewhere that I can use as a base to experiment with reading and writing data to it.
Any pointers will be appreciated.
Comments
Lots to read. It's a little tricky to generate a clock in a desired phase to the data. Roger has a complete set of drivers, which aren't particularly easy to understand themselves. https://forums.parallax.com/discussion/171176/memory-drivers-for-p2-psram-sram-hyperram-was-hyperram-driver-for-p2/p1
I've been trying to make it easier to roll your own, but only does block copies at this stage. https://forums.parallax.com/discussion/174629/64-mb-psram-module-using-16-pins-96-mb-w-16-pins-or-24-mb-w-8-pins/p18
Get a driver from there: https://forums.parallax.com/discussion/171176/memory-drivers-for-p2-psram-sram-hyperram-was-hyperram-driver-for-p2/p1
There is also instructions how to use it in the zip file. Go through the topic, there are modified versions and a lot of discussions in it.
A lot of our toys use the PSRAM: my player Prop2Play, video drivers including my displaylisted stuff, Wurfel21's retro console emulators and more.
There are three P2 Quickbytes that use the 32MB PSRAM to work with an HDMI Display. The Quickbytes work well with a HDMI display as do the 32MB PSRAM drivers. Give them a try. Note: You will need to use the flexprop environment to run the entire Quickbyte demo, but the individual 32MB PSRAM drivers I believe will work with the PropTool and PNut.
P2 HDMI Video Character Map
P2 HDMI Simple Image Driver
P2 Solar Panel Monitor
Thanks @evanh @pik33 and @"Francis Bauer" I'll be checking out those topics, and the Quickbytes.