Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
problem talking to dataflash at45 series
I'm having a bit trouble getting a PIC to communicate to a AT45DB321D DataFlash via the spi bus.
All i'm trying to do at the moment is retrieve the manufacturing ID (0x9F) opcode.
I always get the data 0X1E, 0X18 returned instead of the 0X1F, 0X27 i'm supposed to receive. Using a scope and stepping through the code everything seems ok: the SO changes from high impedance after taking the 7th clock cycle low, but for some reason it goes low when taking the 14th clock cycle low - giving me 0x1E.
Any ideas what i could be doing wrong?