AT45 Intermitent problems
EricABerg
Posts: 2
I am running a 28 PIN AT45 flash chip with 8Meg of bits with a BS2P40. I send data to the buffer and then from the buffer to the page. Everything generally works fine except every now and then when I read the data from the AT45 I get a bunch of 255s where there should be other data. I discovered that the buffer wasn't receiving the data correctly. The problem seems to be in the shiftout of data to the buffer. Has anyone out there had this experience before and if so how did you correct it?
Kind Regards,
Eric
·
Kind Regards,
Eric
·
Comments
·· Sid (Newzed) has used the AT45 in the past.· Perhaps he can post some of his example code and you can compare notes or something.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Here is a snippet of code I use to write to the buffer:
LOW CS
SHIFTOUT Dout,Sclk,MSBFIRST,[noparse][[/noparse]Buffer_1_Write\8, dummy\15, ByAddr\9]················· 'Buffer_1_Write con $84
SHIFTOUT Dout,Sclk,MSBFIRST,[noparse][[/noparse]v1.lowbyte,v1.highbyte,v2.lowbyte,v2.highbyte]
HIGH CS
Did you read the buffer to make sure the buffer is receiving the data?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Need a bezel for your LCD?
Newzed@aol.com
·
The problem Sid mentioned with the capacitor and power supply affects the write to the flash page, because of peak current at that instant. That is certainly the first place to look if you see bad data when you read back the flash page.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com