OK I'm Lost...
Ive been reading the manual but I just dont understand, there are 3 commands for serial out (serout, serout2, hserout) now ive tryed about 15 combinations of same code and I cant get anything but a english pound sign and 2 arrows to show up, sometimes random characters/symbols appending the line about every second.
Here is some code I've tried useing.
I've mixed and matched it so many ways., if someone could tell em what Im doing wrong or what im doing right.Code:Include "modedefs.bas" 'DEFINE CHAR_PACING 104 DEFINE SER2_BITS 9 'Set number of data bits DEFINE SER2_ODD 1 PAUSE 500 ' Wait 0.5 second to initialize LCD TRISB = 0 RPT: SEROUT PORTB.0, T9600 ,["T9600" ] pause 100 SEROUT PORTB.0, N9600 ,["N9600" ] pause 100 SEROUT2 PORTB.0, 38400,["38400"] pause 100 SEROUT2 PORTB.0, 84,["84"] pause 100 GOTO RPT END
Ive read a few articles online but theres so many conflicting ideas about how to handle 8N2 serial out data.




Bookmarks