Pumpkin, Inc.

Pumpkin User Forums

How to change baud rate to 9600 on AN-8 demo?

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

How to change baud rate to 9600 on AN-8 demo?

Postby aek » Wed Sep 14, 2005 7:38 am

Hello noom.

The PIC doesn't have enough processing power to run multiple 9600 baud software UARTs using the code in AN-8 ...

Using AN-8, you can run 4 software UARTs at 1200 baud. You may also be able to run 2 software UARTs at 2400 baud and 1 software UART at 4800 baud. I doubt you can run any 9600 baud software UARTs using the task-based approach in AN-8.

Bit-banging multiple 9600 baud transmit-only UARTs is pretty easy. But doing multiple receivers -- and perhaps more importantly, having enough cycles to run the rest of your application -- is considerably more complex.

The point of AN-8 is to demonstrate that you can build an application that has 4 1200 baud software UARTs and can also run additional tasks simply by creating the additional tasks at lower priorities than the software UART tasks. IOW, it's easily extended to a bigger application.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: How to change baud rate to 9600 on AN-8 demo?

Postby aek » Wed Sep 14, 2005 7:42 am

quote:
I try to change baud rate to 9600 but the max baud rate I can get only 2400
As per AN-8, it takes a 20MHz PIC to run 4 software UARTs at 1200 baud.

So it's completely understandable that a 40MHz PIC can do 4 software UARTs at 2400 baud, but not faster.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: How to change baud rate to 9600 on AN-8 demo?

Postby noom » Wed Sep 14, 2005 11:21 am

I try to change baud rate to 9600 but the max baud rate I can get only 2400. I used PIC18F252 with XTAL 10MHz PLL to 40MHz
noom
 
Posts: 2
Joined: Sun Sep 11, 2005 11:00 pm


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest

cron