Hi.
Im strugelin connecting a bs2P to a picaxe18, the bs sending and the picaxe
receiving the data, Im hoping to use it as a port expander.
I have been reading up on the subject and have found this code on the axe side
poweronreset:
setint 1,1
mainloop:
goto mainloop
interrupt:
high 7
serin 0,T2400,b0 ' also tried the N2400 version
debug b0
gosub handledata
setint 1,1
low 7
return
handledata:
if b0 = "A" then
high 0
endif
.... and so on with B, C, D ...
And it works perfect if you coment out the gosub handledata, it receives
and debugs ok.
But if I trie to use the handledata it seems to hang, afther 1-3 received
bytes.
I have tried to pause 5000 between the bytes to let it 'rest' but still
no go..
I can see that the led on p7 flashes, so the program is running, but
nothing is debuged....
Can someone please explain ????, and perhaps come with a solution to
the problem ??
Thanks.
Tore
Im strugelin connecting a bs2P to a picaxe18, the bs sending and the picaxe
receiving the data, Im hoping to use it as a port expander.
I have been reading up on the subject and have found this code on the axe side
poweronreset:
setint 1,1
mainloop:
goto mainloop
interrupt:
high 7
serin 0,T2400,b0 ' also tried the N2400 version
debug b0
gosub handledata
setint 1,1
low 7
return
handledata:
if b0 = "A" then
high 0
endif
.... and so on with B, C, D ...
And it works perfect if you coment out the gosub handledata, it receives
and debugs ok.
But if I trie to use the handledata it seems to hang, afther 1-3 received
bytes.
I have tried to pause 5000 between the bytes to let it 'rest' but still
no go..
I can see that the led on p7 flashes, so the program is running, but
nothing is debuged....
Can someone please explain ????, and perhaps come with a solution to
the problem ??
Thanks.
Tore