Serial Communication w/ Qualifiers

rrw1v

New Member
Hello Picaxe,

We are working on serial communication between a 28X1 and an 08M. The problem is with the qualifiers to tell the 28X1 to start receiving data. We can only get the qualifier to work if it is NOT letters. Numbers and characters such as *&* work perfect.

Code from 28X1:

main:
serin 5, n2400, ("*&*"), b0
debug
goto main

Code from 08M:

symbol ir_in = pin3
symbol ir_test = b0
pwmout 2, 25, 40

main:
ir_test = ir_in
serout 1, n2400,("*&*", ir_test)
goto main



When we try and replace the "*&*" with something like "go" the debug waits forever! Numbers and symbols seem to work fine, but how do we configure the code to work for characters?

Colin and Ren
 

moxhamj

New Member
This is most odd. Just to double check:

serout 1, N2400,("ABC", b0)

then

serin 1, N2400, ("ABC"),b0

does not work?

I have this code working fine between 08s. If there truly is a strange bug, at the least it would help to know if it is a Tx or Rx problem, ie try it with different chips. It helps to know if the transmitter is not sending properly or the receiver not receiving. I have resorted in the past to using a CRO and reading ascii letters off the waveform (before finding the problem was actually power supply glitches).
 
Top