USART support for BRG16?

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
MichaelM
Posts: 57
Joined: Sun May 13, 2007 6:52 pm
Location: Michigan, USA

USART support for BRG16?

Post by MichaelM » Sun Jun 10, 2007 11:00 am

The 16 bit SPBRG modes available on some of the more recent PICs provides incredible bit rate tolerances. Are there any plans to support the 16 bit SPBRG capability in the USART modules?

For those forum members who may be interested, you can download an SPBRG Calculator spreadsheet or a stand-alone program (pictured below) that provides 16-bit and legacy 8-bit SPBRG solutions from the following forum.microchip thread; Revised SPBRG Calc

This tool isn't really necessary when using Swordfish because the SPBRG solution is calculated automatically in the USART module but it's still quite handy for comparing bit error rates with different oscillator frequencies, baud rates, and USART configurations during the project design phase.

Mike


Image
Last edited by MichaelM on Sun Jul 01, 2007 11:40 pm, edited 3 times in total.

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Sun Jun 10, 2007 11:26 am

which devices have you been looking at?

MichaelM
Posts: 57
Joined: Sun May 13, 2007 6:52 pm
Location: Michigan, USA

Post by MichaelM » Sun Jun 10, 2007 12:00 pm

'2420/'2520/'4420/'4520, for now.

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Sun Jun 10, 2007 8:08 pm

Email me directly, I have a module you can test if you like...

MichaelM
Posts: 57
Joined: Sun May 13, 2007 6:52 pm
Location: Michigan, USA

Post by MichaelM » Thu Jun 28, 2007 11:36 am

David,

Just wanted to follow up and say thank you for the modified USART module. I haven't tried it on a PIC yet but the code looks as clever, simple, elegant, and intuitive as all your other code.

Mike

Post Reply