well what to say to this one. If you receive your data with the PIC it will be already the great value, don't mix Terminal operation and PIC operation..
If by example your PC will get your value from the PIC, you can only send it like this
SEROUT PORTB.0,4,[Myvar1,Myvar2,Myvar3]
and leave it like this. Your PC software will get the right value of your var. Case you want to work with string, you'll have to get each character and do the ASCII to decimal conversion... not handy and so much time spending.
PIC to PIC. Send your data same as above and receive the same way.
Master: SEROUT PORTB.0,4,[Myvar1,Myvar2,Myvar3]
SLAVE : SERIN PORTA.0,4,[Myvar1,Myvar2,Myvar3]
OR maybe i didn't understand your question....
Sending text+Value of a var on a terminal:
SEROUT PORTB.0,4,["Myvar1 : ",#Myvar1," Myvar2 : ",#Myvar2,13,10]
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks