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.
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
Then how come Rx() function works, and could you tell me why do we add 48?
Just following your advice, Hello World Hope am not testing your patience Sir, kindly explain this, In the program, Rx() where we write to ACC works, but Tx() where we read from ACC does not work,
ACC is defined in REG51.h, then should not we write to ACC?