Software UART between 2 PICs with different clock frequency

General discussion on mikroC.
Post Reply
Author
Message
sagat11
Posts: 3
Joined: 10 Feb 2016 08:02

Software UART between 2 PICs with different clock frequency

#1 Post by sagat11 » 12 Apr 2016 13:36

Does software uart work with 2 PICs with different clock frequency? I've search but i didn't found any answer. I also tried 2 pic16f877a one using 16mhz oscillator and the other 1 is using 4 mhz oscillator. Thank you sir.

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: Software UART between 2 PICs with different clock freque

#2 Post by uros.cvetinovic » 13 Apr 2016 15:43

Hi,

Which baud rate did you used?

Baud rate depends on the MCU’s clock and working conditions,
but if you can generate same baud rates on both MCUs, I believe you shouldn't have problem on establishing communication.

Best regards,

Uros

sagat11
Posts: 3
Joined: 10 Feb 2016 08:02

Re: Software UART between 2 PICs with different clock freque

#3 Post by sagat11 » 14 Apr 2016 01:30

I use 2400 baudrate and it works. Thanks :)

Post Reply

Return to “mikroC General”