| ??? 07/14/04 08:11 Read: times |
#74216 - RE: BAUD Rate Setting Responding to: ???'s previous message |
hi,
How do you think, is: 7 Bit, Even Parity, 1 Stop Bit (i.e. 7+1+1) the same as 8 bit, Non parity and 1 Stop Bit (8+1) ? Just use 8th bit as Parity Bit given from PSW.0, something like: ; during send data...
TRANSMIT:
; ...
MOV A,#DATA_TO_BE_SENT ; 7 bit of data to be sent
MOV C,P ; catch parity bit
MOV ACC.7,C ; place it as 8th bit
MOV SBUF,A ; send to receiver
; ...
; during receive data...
RECEIVE:
; ...
MOV A,SBUF ; get 7 data bits + parity bit
JB P,RECEIVE_ERROR ; parity mismatch
; ...
Regards, Oleg |
| Topic | Author | Date |
| BAUD Rate Setting | 01/01/70 00:00 | |
| RE: BAUD Rate Setting | 01/01/70 00:00 | |
| RE: BAUD Rate Setting | 01/01/70 00:00 | |
| RE: BAUD Rate Setting | 01/01/70 00:00 | |
RE: BAUD Rate Setting | 01/01/70 00:00 |



