Hi Chris,
Not sure here, but since you are using DEC to get input, I believe that it is waiting for a non-decimal character to be read before it returns, so it the program is probably hanging in the first HSERIN. You might try a simple change to the program like:
Code:
hserout [dec emit, 13]
The CR should give the other side something to tell it to finish the read. Personally when I do communications like this I prefer to do fixed length packets or the like...
Could maybe do it something like:
Code:
hserout [dec5 emit\5]
hserin [dec5 temp\5]
So I would normally avoid the conversion of the binary data to ascii, so could probably do it with something like:
Code:
hserout [emit.highbyte, emit.lowbyte]
hserin [emit.highbyte, emit.lowbyte]
Or you could do it like:
Code:
hserout [str emit\2]
hserin [str emit\2]
This last way is how I would often do this, as I often output things like arrays. The \2 says output or input 2 bytes. So if emit was an element with 6 words in it you would change the \2 to \12.
I know for sure that the Bap28 handles H125000 just fine and now reason it should not handle H500000, which the H8/3696 manual suggests is the fastest baud...
Good Luck
Kurt