| ??? 04/15/03 10:31 Read: times |
#43431 - RE: How 8051 reports serial error? Responding to: ???'s previous message |
Do you refer to frame errors?. The 8051 manual says the serial port behaves in this manner (not a literal transcription):
1) If the received signal does not remain at '0' half a bit time after the start bit leading edge (at the middle of the start bit) the start is not considered valid, so the receiver waits for a new start bit leading edge. No flag is set. 2) Every bit is sampled 3 times, the value found in two or more samples is considered valid. 3) If the stop bit is not valid, i.e. if it is a '0', the frame is not accepted, RI is not activated, and the receiver waits for a new start bit. As you can see, the 8051 uses only simple mechanisms to determine frame errors, and it doesn´t set any flag to inform you. Of course, RI is activated only when the receiver thinks it has a valid frame for you. I must say I prefer this schemma to the more powerful, but complicated, error detection capabilities found in the PC's UART. Alfredo. |
| Topic | Author | Date |
| How 8051 reports serial error? | 01/01/70 00:00 | |
| RE: How 8051 reports serial error? | 01/01/70 00:00 | |
| RE: How 8051 reports serial error? | 01/01/70 00:00 | |
| RE: How 8051 reports serial error? | 01/01/70 00:00 | |
| RE: How 8051 reports serial error?XA | 01/01/70 00:00 | |
| RE: 8051 serial port framing error | 01/01/70 00:00 | |
| RE: 8051 serial port framing error | 01/01/70 00:00 | |
| RE: FE bit | 01/01/70 00:00 | |
| RE: How 8051 reports serial error? | 01/01/70 00:00 | |
| RE: How 8051 reports serial error? | 01/01/70 00:00 | |
| 8051 reports serial error? - Valentin | 01/01/70 00:00 | |
Yes, I've got it | 01/01/70 00:00 |



