I simply used the equation sets given in the picbasic pro manual for figuring xstal and spbrg for a needed baud rate.
See attached Excel spreadsheet.
I found another similar calculator(Excel) at this forum.
(don't fret that variable wilma has some math to it, its a byte)
..
Also, I have successfully communicated to a PC, and verified input data thru VB6 coding (at 115200 bps).
..
And, verified bit timing and logic level voltages on a O-scope.
..
SEE ATTACHED FILES.
..
It seems as if there are other issues with HSERIN in the forum, and some are solved by watching the RCIF flag and then loading the RCREG into a byte variable., this didn't work for me.
..
IS there anyplace that explains the HSERIN command completely?..
..
I don't understand a few things about the command:
my interpretation of Pic basic pro manual:
HSERIN (parity) , (timeout goto label), [variable to load into]
..
but from what I have seen in the forum, its actually:
HSERIN (time in ms for timeout), (timeout goto lable), [variable to load into]
..
Much appreciated thanks for anyone's help!!
..
Bookmarks