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.....
"the mov a,sbuf instruction is not being executed...."
The only way the mov a,sbuf instruction isn't being executed is if it isn't "hidden" behind some conditional expression.
But if the processor do reach that instruction, then the processor has no option but to execute it.
If you don't get the expected result in A, then that is because SBUF doesn't contain what you expect it to contain.
About baudrate - always verify your baudrate by _sending_ data and checking the baudrate of the transmitted data using an oscilloscope.