After deinstalling all of the software and cleaning the machine (I do many different development tasks) I then re-installed the software components again. Checked the MAX232-Interface with another type of system requireing a level converter this checked out fine.
The same problem existed.
Then I decided to move to hSerOut as I could get closer the baudrate generator values..
Got the picbasic example, and still the same garbage.... Then I got the scope connected and sent a constant stream of one character with a second delay
bingo after some calculations it was easy to see what the problem was
if you use SPBRG = 24 ' Set baud rate to 2400
you get garbage or can only send single characters
but if you use
SPBRG = 23 ' Set baud rate to 2400
as per the spec sheet bingo it works, this means that in picbasic 244 the default defines are not correct for the 877.
the use of debug could be fixed I guess by attacking the mac files (but I will not) because this could be for a reason.
So I will use hSerOut with the above to solve the problem I had.
Don't you just love RS232 lol,
Thanks for all you help guys and if anyone has seen this before and
has a fix then please drop me a line..
Mark
G4LCH
Bookmarks