Skip to main content
shuianle
Associate
August 10, 2006
Question

Why IrDA can not work well

  • August 10, 2006
  • 1 reply
  • 574 views
Posted on August 10, 2006 at 05:55

Why IrDA can not work well

This topic has been closed for replies.

1 reply

shuianle
shuianleAuthor
Associate
May 17, 2011
Posted on May 17, 2011 at 11:51

Dear all, I am Drip.

Now i write code for upsd3434e's IrDA like follow:

first set JP12 4�6 and 3�5, make UART1 work in IrDA

TH2=0xFF;

TL2=0x7E;

RCAP2H=0xFF; // set baud rate 9600bps

RCAP2L=0x7E;

C_T2=0;

TR2=1;

PCON=0x3C;

SCON1=0x50;

P1SFS0|=0x0C;

P1SFS1&=0xF3;

IEA|=0x10;

IPA|=0x10;

IRDACON|=0x40; //IRDAEN=1, enable IRDA

But why IrDA can not work well, i can receive byte send by PDA, but the content is wrong, but the num of receive byte is right. who can tell me why?

I think maybe the baud rate is not the same, IrDA's is 9615, but PDA's is 9600, but i do not sure other is ok.

who can help me ,thank you very much!

:D :D :D