QSPI sample pgm

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

QSPI sample pgm

1,552 次查看
lel_chen
Contributor I

Hi,
     I need to read/write data to external flash using SPI.
For this, I was referring to the sample program given in "\Freescale MQX 3.2\mqx\examples\qspi".
 I find the following definitions there:
-----------------------------------------------
/* The 25LC640 QSPI Serial EEPROM instructions */
#define TEST_ROM_WRITE_STATUS             0x01
#define TEST_ROM_WRITE_DATA               0x02
#define TEST_ROM_READ_DATA                0x03
#define TEST_ROM_RESET_WRITE_ENABLE_LATCH 0x04
#define TEST_ROM_READ_STATUS              0x05
#define TEST_ROM_SET_WRITE_ENABLE_LATCH   0x06
-----------------------------------------------

- Where are these definitions derived from?
- Will these definitions remain the same if I connect a SDRAM card instead of EEPROM?

 

The ctl in use is M52259.

 

Thanks,
Chen

0 项奖励
回复
1 回复

841 次查看
JuroV
NXP Employee
NXP Employee

Hello.

 

these definitions come from Microchip 25AA640A/25LC640A datasheet (http://ww1.microchip.com/downloads/en/DeviceDoc/21830C.pdf), page #7.

 

SDRAM is really uncompatible with such EEPROMs, primarily due to the fact that SDRAM is accessed with parallel bus instead of serial data access

0 项奖励
回复