hi in my recent project i'm doing bit banging SPI in
AT89S52. i am using a self modified library and its not working
properly. i cant remember the original page where i found the
code, though it was for the PIC's.
The data is sending correctly The problem is i am receiving same
data which i am sending. take a look at the code.
#ifndef buffer
#define buffer buf
unsigned char bdata buffer;
sbit Dbit0=buffer^0;
sbit Dbit1=buffer^1;
sbit Dbit2=buffer^2;
sbit Dbit3=buffer^3;
sb
↧