Hi Guys
it's been a while since ive used a picaxe, I am trying to send a serial transmission from a Parallax Propeller chip, to the picaxe 18 chip in my project board.
It is being transmitted inverted, I have a common ground between the 2 boards, and the Tx lin at the propeller end is pulled low by a 4.7k resistor.
Basically it does not work, the code works great in the sim, i have the Tx lead from the prop, going to port 0 on the input side of the board.
Now some of the documentation says you need to pull the line low with a 10k resistor, as well as an in-line 22k resistor, which for some reason causes the board to start pulling 0.98 Amps from the PSu, (normally 0.01A).
If I just use the 4.7K pull-down it does not use as much ampage, but still it does not work (variable in debug does not change)
I was wondering if anyone can help?
here is my code:
main:
w1 = 0
'for b0 = 0 to 3 ‘ start a loop
serin 0,N2400,w1 ‘ receive serial value
'write b0,b1 ‘ write value into b1
'next b0 ‘ next loop
debug w1
If w1 = 001 then goto led
goto main
led:
high 5
pause 3000
goto main
DJH
it's been a while since ive used a picaxe, I am trying to send a serial transmission from a Parallax Propeller chip, to the picaxe 18 chip in my project board.
It is being transmitted inverted, I have a common ground between the 2 boards, and the Tx lin at the propeller end is pulled low by a 4.7k resistor.
Basically it does not work, the code works great in the sim, i have the Tx lead from the prop, going to port 0 on the input side of the board.
Now some of the documentation says you need to pull the line low with a 10k resistor, as well as an in-line 22k resistor, which for some reason causes the board to start pulling 0.98 Amps from the PSu, (normally 0.01A).
If I just use the 4.7K pull-down it does not use as much ampage, but still it does not work (variable in debug does not change)
I was wondering if anyone can help?
here is my code:
main:
w1 = 0
'for b0 = 0 to 3 ‘ start a loop
serin 0,N2400,w1 ‘ receive serial value
'write b0,b1 ‘ write value into b1
'next b0 ‘ next loop
debug w1
If w1 = 001 then goto led
goto main
led:
high 5
pause 3000
goto main
DJH