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

serial data cannot be read...

hello,
im working on a project that reads serial data from RFID scanner......
Now the problem is the serial data is unable to be fetched.....
im using at89s52 microcontroller...
the instruction

MOV A,SBUF

doesnt copy the sbuf data to the accumulator for further processing...
the RI pin goes high on recieving data n its been cleared through programming.....
the only problem is the data is not been copied to accumulator.....

plz help....
thnku.....

Parents
  • Check list

    Is the port3 pin configured as input pin? (to configure port pin as input, SETB P3.0)
    Is the SCON register configured properly? REN bit must be high.
    Is the baud rate correctly generated? (to generate baud rate, configure one of the timer properly)

    finally,
    Is data being received in RxBuf?
    to check this, just output the RxBuf data on any of the port and check the bits on port.

Reply
  • Check list

    Is the port3 pin configured as input pin? (to configure port pin as input, SETB P3.0)
    Is the SCON register configured properly? REN bit must be high.
    Is the baud rate correctly generated? (to generate baud rate, configure one of the timer properly)

    finally,
    Is data being received in RxBuf?
    to check this, just output the RxBuf data on any of the port and check the bits on port.

Children