... I used PICMulticalc and pasted its results in my first post's HSERIN code; unfortunately it doesn't work.
... I used PICMulticalc and pasted its results in my first post's HSERIN code; unfortunately it doesn't work.
Roger
Could it be hardware related? Pull-up or current-limitting resistors?
What about the Mode setting (True VS Inverted)?
Robert
EDIT: You use Open,True,N,9600bps for SERIN, that's inverted.
You use BAUDCON = %01001000 for HSERIN, bit 5, 0 = non-inverted Data/Receive Polarity.
There could be other stuff, but that's all I got.
Last edited by Demon; - 20th March 2012 at 14:26.
Hi Demon,
I tried all that already. Neither a new chip nor data polarity will change anything; HSERIN won't work...while SERIN2 does :-/
Roger
BAUDCON bit 3
BRG16: 16-Bit Baud Rate Register Enable bit
1 = 16-bit Baud Rate Generator – SPBRGH and SPBRG
0 = 8-bit Baud Rate Generator – SPBRG only (Compatible mode), SPBRGH value ignored
Don't you want 8-bit?
Robert
Last edited by Demon; - 20th March 2012 at 15:27. Reason: Removed unnecessary stuff
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
I tried BAUDCON = %10000000 if this is what you mean. No luck either.
Roger
Bookmarks