Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/14/08 10:37
Read: times


 
#159038 - Even Parity
Hi,
I'm new to this forum.
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<reg51.h>
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;
}

List of 8 messages in thread
TopicAuthorDate
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      

Back to Subject List