There's a Patch for PBP 2.46 that "Fixes Hserin/Hserout defines for PIC16F688"
I assume it was also a problem in 2.45. The patch won't work on 2.45
You'll probably need to set the SPBRG, SPBRGH and BAUDCTL registers manually.
HTH,
There's a Patch for PBP 2.46 that "Fixes Hserin/Hserout defines for PIC16F688"
I assume it was also a problem in 2.45. The patch won't work on 2.45
You'll probably need to set the SPBRG, SPBRGH and BAUDCTL registers manually.
HTH,
DT
Thanks Darrel, that was indeed the problem, I have set the registers manually and now it works fine.
That was quick!
Nice to see someone that's not affraid of the datasheets.
Good work.
regards,
DT
Yup!
But in case some are afraid of datasheet, if they use the Calc i posted, they only have to modify the generated...
toCode:DEFINE HSER_RCSTA 90h DEFINE HSER_TXSTA 20h DEFINE HSER_SPBRG 51 ' 1200 Bauds
I'll add this feature in the next PicMultiCalc. It's handy when you don't use HSERIN/HSEROUT but just reading/writing to/from RCREG/TXREG.Code:RCSTA=$90 TXSTA=$20 SPBRG= 51 ' 1200 Bauds
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
But i have some problem. I am hasty for your code, Sir Steve.Originally Posted by mister_e
I don't know how Young you are with your great post ( 2660) , but im only 20 years and i compiling your all post as pdf file to learn. Yaaa when i compleet this ebooks, i also add the post of sayzer 's , I think This is great opportunities for me.
Your matrix keyboard code is great working.
Please post your code of PicMultiCalc on HSER.
I am waaaaaaaaaaaaaaaaaaaing
Thanks
As now the PICMultiCalc is still on testing and development when time permit.
AS now, it include
- USART SPBRG calc: SPBRG value, error % and generate PBP DEFINE, i'll add the Register stuff too
- Timer calc: Select the crystal speed, select a time mode (8 or 16 Bit), select a prescaller, assign a TMRx pre-load value and know in snap the Overflow interrupt delay
- Timer Helper:select the oscillator speed, enter your expected delay (uSec or mSec) and it will produce you a report on how to set the Timer (prescaller, Pre-load) AND also it will return the calculated value.
- PWM Calc: TBA.
In meantime the old HSER Calc is available Here
There's no release date for the PICMultiCalc. Before christmas for sure
I'm 33. Nice to hear such great comments!Originally Posted by precision
Have fun!
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks