Lost me why DEFINE HSER_SPBRG 129 I cannot find any reference to that in the picbasic manual.
That's for sure... You'll only find DEFINE HSER_SPBRG in the manual. 129 comes from the datasheet. See table 10-4. All the settings are there.
Also I did get a compiler error about an op code with this:
@ __config _HS_OSC & _WDT_ON & _PWRTE_ON & _BODEN_ON & _LVP_OFF
These are the configuration fuse for programming your PIC. This line imply that you must use MPASM to compile your code. If you are using MicroCode Studio to edit your code, go to view menu then PIC basic option. Click on the assembler tab then check the Microchip MPASM option. this will work. OR you can define your configuration fuse in a different way too, see the FAQ under setting configuration fuse or something like that.
All I need now is to get to the 19200 and I will be happy.
Do I need to just change the DEFINE HSER_SPBRG 129 value to reach 19200
For baudrate 19200 you'll change only the DEFINE HSER_SPBRG 129 to DEFINE HSER_SPBRG 64
By the datasheet it suppose to work :0)
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks