??? 10/14/08 10:49 Read: times |
#159039 - Welcome Responding to: ???'s previous message |
Hi Praveen,
Welcome to 8052.com You said Praveen Kumar said:
I configured my serial port for even parity, but i'm not getting the required o/p, can anyone check the below code & let me know what i did wrong. Please help me out in this regard. #include unsigned int Data[6]={0x01, 0x10, 0x00, 0x10, 0x01, 0x22}, a; void main() { TMOD = 0x20; TH1 = 0xFD; SCON = 0xD0; TR1 = 1 for( a = 0; a < 6; a++ ) { SBUF = Data[a]; while( TI == 0 ); TI = 0; } Where does "even" parity comes in picture. to me it looks like 8-bit NO parity. You said but i'm not getting the required o/p, can you tell what output you were expecting, & what you are getting Regards, Mahesh |
Topic | Author | Date |
Even Parity | 01/01/70 00:00 | |
Welcome | 01/01/70 00:00 | |
Again Even Parity | 01/01/70 00:00 | |
No, it doesn't | 01/01/70 00:00 | |
have you tried ...![]() | 01/01/70 00:00 | |
welcome, are you also ... | 01/01/70 00:00 | |
Cross-post | 01/01/70 00:00 |