Page 1 of 1

Sending commands via SPI

Posted: Wed Nov 01, 2017 8:55 pm
by Tony Brown
Hi,

Im trying to send a four bit command to an eeprom to make it format itself. I am using a pic 12f1840. When I monitor the SDO on a scope there is no data transmitted. Can anyone help?

I have attached the flowcode file.

Many thanks

Tony

http://www.matrixtsl.com/mmforums/downl ... w&id=24848

Re: Sending commands via SPI

Posted: Mon Nov 06, 2017 11:31 am
by Benj
Hi Tony,

Your program seems to have 3 SPI components in it. Maybe get rid of the components your not using.

If your going to monitor the SDO pin with the scope then try adding a while 1 loop around the send byte component macros to ensure your not simply missing the data.

What EEPROM are you using?

Re: Sending commands via SPI

Posted: Mon Nov 06, 2017 9:28 pm
by Tony Brown
Hi,
Thanks for your response.

The eeprom I'm wanting to erase is an AT45DB321D.

The eeprom needs a four byte command sequence: C7H, 94H, 80H and 9AH.

I have not used the SPI command before so any help will be most appreciated.

Regards Tony

Re: Sending commands via SPI

Posted: Sat Dec 29, 2018 6:00 pm
by medelec35
Hi Tony,
I know this topic is over a year old, but did you resolve your issue?