DSPRelated.com
Forums

How to use M25P32 SPI Flash with DM642

Started by randri20 November 12, 2006
Hi,

I am trying to communicate to a M25P32 SPI Flash from ST using the
Mcbsp1 of a DM642 DSP, but I have some problems. There are some
fundamental instructions in this flash where I need to send a command
and wait for the answer (The READ, for example). In this case, in the
same FSX low period, I need the clock signals first to send the
instruction READ code and more three bytes of address and a "n x 8"
number os clocks for "n" bytes to be read from the memmory. If I can
read one byte from the flash it will be a progress. The read byte is
send by the flash only after the entire instruction code and address is
received (4 bytes). I don't find a way to configure the Mcbsp in a SPI
mode to do this. I am thinking that the SPI support of the Mcbsp is
very limited. Maybe the only way is change the mcbsp pins to GPIO and
write the communication sequence in code, but this is not I would
expect from a hardware that says that support SPI mode. Can anyone help
me?