??? 01/23/06 13:31 Read: times |
#108078 - SM2=0 => RB8=stop_bit Responding to: ???'s previous message |
Louis said:
Does anybody know if the 8051(2) UART can be used to detect a break signal on the RXD line. I am testing it with a VB program and without the break I recieve the correct command with a break I get rubbish. It looks like the break is causing a framing error. This depends on length of break. Do you mean, that the break is a recieved logic low state at RxD pin? If this is longer than the typical time needed to transmit one character, then there's a way to detect the break: If master transmits ten bits, configure the UART of slave as Mode1 with SM2=0. Then, after the begin of break was recieved, RB8 contains the stop bit, which is logic low when recieving the break, instead of logic high when recieveing true data. Kai |
Topic | Author | Date |
8051 UART 'break' detection | 01/01/70 00:00 | |
Software break detect | 01/01/70 00:00 | |
Break Detection | 01/01/70 00:00 | |
it all depends | 01/01/70 00:00 | |
framing error? | 01/01/70 00:00 | |
from the Philips P89C51Rx2 datasheet | 01/01/70 00:00 | |
Problem Solved | 01/01/70 00:00 | |
the other way round | 01/01/70 00:00 | |
Stop bit![]() | 01/01/70 00:00 | |
SM2=0 => RB8=stop_bit | 01/01/70 00:00 |