Posts: 11
Threads: 4
Joined: Mar 2011
2011-03-29, 18:54:50
(This post was last modified: 2012-12-22, 00:42:26 by Mikael Gustavsson.)
Hi,
Everything is in title.
Well, I couldn't find any explanations in firmware manual (Rev M) about usage of USE_BRG16 instruction in settings.inc. (Pic18F)
Another general remark about "Firmware manual" pdf file.
For better reading in 2. Customize settings.inc chapter.
It would be better to list settings in the same order as settings.inc file.
If of course settings are written in same order in Settings.inc file for others bootloader.
Posts: 623
Threads: 0
Joined: Nov 2009
2011-03-29, 19:50:57
(This post was last modified: 2024-07-04, 20:57:57 by Mikael Gustavsson.)
Thanks for the feedback!
BRG16 is explained in the datasheet and by the comment in settings.inc.
Here's a new firmware manual
[broken link]
Also see the UART error calculator.xls in the tools directory in the package.
Posts: 11
Threads: 4
Joined: Mar 2011
(2011-03-29, 19:50:57)Mikael Gustafsson Wrote: Also see the UART error calculator.xls in the tools directory in the package.
Well, I have red and looked a bit in every file but didn't find where to set SPBRG value !
Posts: 623
Threads: 0
Joined: Nov 2009
>Well, I have red and looked a bit in every file but didn't find where to set SPBRG value !
The excel sheet is a tool to calculate the baud rate error for different oscillator speeds and UART settings.
Nowhere in the documentation it says you should set SPBRG. SPBRG is calculated from BAUDRATE and OSCF
and set in the code.
Posts: 11
Threads: 4
Joined: Mar 2011
(2011-04-01, 22:18:44)Mikael Gustafsson Wrote: The excel sheet is a tool to calculate the baud rate error for different oscillator speeds and UART settings.
Nowhere in the documentation it says you should set SPBRG. SPBRG is calculated from BAUDRATE and OSCF
and set in the code.
What confuses me is to use a tool in order to calculate a variable which is needed nowhere in inc / asm file !!
So, why to calculate something if you do not need it !!
Why to calculate something if it's automatically done in program !!
If it's just for user information, you should probably clearly write it ?
Posts: 623
Threads: 0
Joined: Nov 2009
The file name implies that the error is calculated not spbrg.