cancel
Showing results for 
Search instead for 
Did you mean: 

interfacing st72f264 & 93C46 spi eeprom -problem

mailtoarup
Associate II
Posted on February 07, 2005 at 03:31

interfacing st72f264 & 93C46 spi eeprom -problem

1 REPLY 1
mailtoarup
Associate II
Posted on February 07, 2005 at 03:31

Dear sir,

I am facing a problem with SPI.I am trying to interface ST72F264 mcu with 93c46 spi eeprom.I am using SPI port of the mcu.My con. in my application board is like this.

/ss pin is software configured as master(SSM=1;SSI=1)

MISO & MOSI tied together and connected to DI & DO(which are connected together) pins of the eeprom(as i will either transmit or receive data).

SCK-PB6 is connected to pin2(SK) of 93C

PB3 is connected to CS of eeprom(for slave selection)

Now just for testing i m sending a byte.I have selected x16 organization of eeprom.First I have send writeenable command,then write 2byte of data(d15-d0) at memory location 00 and read the same (as per datasheet).As i m not able to get what i have written thro READ com command,so i am doubtful about my communication with the eeprom??

Any suggestion on my circuit arrangement & procedure for communicating will be highly appreciated.I have gone thro AN9

Pls if possible i need some code to communicate with 93C

making PB3 at high state.

EWEN 1stbyte:00000100 2ndbyte: 00110000 (as per datasheet)

WRITE 1stbyte:00000101 2ndbyte: 00000000(address a5-a0)

3rdbyte:00000000 & 4thbyte:00000000(data d15-d0)

READ 1stbyte:00000110 2ndbyte: 00000000(address a5-a0)

then i read 3rdbyte & 4thbyte(data d15-d0)..not getting anything

I have attached the code file ''spi_code.txt''.

Thanks & Rrgards,

Arup

null

I have attached the code file ''spi_code.txt''.

________________

Attachments :

spi_code.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0EA&d=%2Fa%2F0X0000000bVl%2Fi7R2XDtKTfCn8uNDNfSan3yzd2QhjCUg9NJPurNOISE&asPdf=false