This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

C51: Interfacing Flash AT29C512 with AT89C51

I am trying to interface Flash AT29C512 with AT89C51
How do read and write serially between the 8 bit 8051 and 24 bit Flash,

Kindly help if some one has worked on this.

Parents
  • Why should we notwrite to ACC directly in 'C'?
    because you do not need to
    then how do we write to ACC?
    you do not need to and, if you do, you are virtually guaranteed to make the code fail.

      ACC = (ACC + 48);
      SBUF = ACC;
    
    should be
    U8 Ralph;
    ....
    
      Ralph += 48;
      SBUF = Ralph
    

    Erik

Reply
  • Why should we notwrite to ACC directly in 'C'?
    because you do not need to
    then how do we write to ACC?
    you do not need to and, if you do, you are virtually guaranteed to make the code fail.

      ACC = (ACC + 48);
      SBUF = ACC;
    
    should be
    U8 Ralph;
    ....
    
      Ralph += 48;
      SBUF = Ralph
    

    Erik

Children