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

Transmitting 2 bytes at a time

I am trying to interface flash to 8051,
when i try to read and transmit 2 bytes to PC, it displays only one byte to the terminal
have used this same code

Fn1(){
// read Operations ...
ce = 0;
// ...
SBUF = read1;
while(TI){
}
TI = 0;
ce = 1;
}

Fn2(){
// read operations...
ce = 0;
// ...
SBUF = read2;
while(TI){
}
TI = 0;
ce = 1;
}

Kindly help.