hi,
Advice from a previous post helped me to get an 08M to talk to a 20x2, now I'm trying to get the same 08m to talk to a 28x1.
I've written a short test code which works in the simulator
but it doesn't work in the real world.
I know both circuits work and there is a 0v strap between each circuit, so it must be an error with my code (again).
Also I'm confused about the input pin command. Reading the manual, I should be using a "porta" command for example something like...
But these throw up syntax errors, so I searched through the forum and came across a thread that used
which pass's the syntax test but I don't have a clue which pin "2" is.
Even when I tap my serial-out lead onto each input/output pin of the 28 the 28 fails to respond.
Advice from a previous post helped me to get an 08M to talk to a 20x2, now I'm trying to get the same 08m to talk to a 28x1.
I've written a short test code which works in the simulator
Code:
start:
;serin s8x1
setfreq m8
serin 2, n1200_8, ("ABC"),b0
if b0=1 then goto led1
if b0=2 then goto led2
goto start
led1:
high 7
low 6
goto start
led2:
high 6
low 7
goto start
I know both circuits work and there is a 0v strap between each circuit, so it must be an error with my code (again).
Also I'm confused about the input pin command. Reading the manual, I should be using a "porta" command for example something like...
Code:
serin porta, 0, n1200_8, ("ABC"),b0
serin port a.0, n1200_8, ("ABC"),b0
Code:
serin 2, n1200_8, ("ABC"),b0
Even when I tap my serial-out lead onto each input/output pin of the 28 the 28 fails to respond.