Hi again, and you're welcome -- it really is a nice app' (and I lack PC-side programming expertise)...
Some of the 'newer' devices have the 16-bit SPBRG capability as well as 8-bit SPBRG Compatible mode... Here are a few of them; 18F2420/4420, 18F2520/4520, and 18F2620/4620...
Regards, Mike
<added>
Gosh Steve, I didn't expect such a positive response and so quickly... Cool... Well, here's a 25-cent 'jump-start', if you haven't finished the new app' already (grin)...
Code:
Here is the 'base' SPBRG formula in the spreadsheet;
SPBRG = INT ( Fosc / BaudRate / Divisor - 1 )
where Divisor is equal to;
64 (BRGH=0 & BRG16=0) 8-bit SPBRG solution
16 (BRGH=1 & BRG16=0) 8-bit SPBRG solution
16 (BRGH=0 & BRG16=1) 16-bit SPBRG solution
4 (BRGH=1 & BRG16=1) 16-bit SPBRG solution
Bookmarks