I guess it is only the first character that is wrong the first time you send. You can fix this by making sure the pin you use for serial com is in the correct state (High/Low) before you make the first Debug output. Also if you can start your program with a PAUSE so all other things around you MAX and similar gets some time to wake up.


-------------------------------------------
TRISwhatever..... 'make the pin an output

TXpin=1 '<------- here is the fix if you use TRUE modes, if you have inverted modes do TXpin=0
DEBUG..... 'send data on TXPIN