Hi Paul,
The following compiles here, using PBP 3.1.6.4 and MPASM 5.87:Try copy/pasting the above code (not your original code, but the above) into a new file and compile it for the 46K80.Code:recvoff: RCSTA1.7 = 0 while ! TXSTA1.1 :wend 'wait til TX completes TXSTA1.5 = 0 'turn off EUSART1 TX
It's a real longshot but I have had weird things happening where some character have not been what it looks like. Can't really explain it but deleting ALL of the offending line and type it again solved the issue.
/Henrik.




Bookmarks