problem talking to dataflash at45 series - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

problem talking to dataflash at45 series

ds_austds_aust Posts: 2Member

Hi guys,
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?

Kind regards,
Damian

Comments

  • ds_austds_aust Posts: 2Member
    Hi guys,
    problem solved.
    The fault was actually a hardware fault.

    Kind Regards,
    Damian






    : Hi guys,
    : 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?
    :
    : Kind regards,
    : Damian
    :

Sign In or Register to comment.