Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Sat Apr 23, 2005 12:43 pm
There is also a boot loader for the PIC on Mircochip's website that has an autobaud routine in it.
Humberto
Joined: 08 Sep 2003 Posts: 1215 Location: Buenos Aires, La Reina del Plata
Posted: Sat Apr 23, 2005 12:51 pm
Also if the PIC 18xxx you are using have hardware EUART you can use:
setup_uart(UART_AUTODETECT);
and will sets the UART baud rate to match.
I never use it.
Humberto
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
Re: Auto baud detection algoritm
Posted: Tue Apr 26, 2005 3:47 pm
mesuty wrote:
Hi friends;
Did somebody work before on automatic baudrate detection in PIC 18xxx series of MCUs.
My baudrate range is between 9600-115200 . What is the logic behind the automatic baud rate sensing.
Could somebody give me a light )
Thanks.
I posted an example that uses framing errors to know the baud rate is wrong. Starting at the highest baud rate and reducing the baud rate until the correct baud rate is found.
http://www.ccsinfo.com/forum/viewtopic.php?t=19306
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum