I am running this code in a 08m:
Do: if pin1= 1 then SEROUT 4,N2400,("1")
else SEROUT 4,N2400,(0) endif
if pin2= 1 then SEROUT 4,N2400,("2")
else SEROUT 4,N2400,(0) endif
if pin3= 1 then serout 4,n2400, ("3")
else serout 4,n2400, (0) endif
LOOP
I am running this code in a 18A:
my_loop:
serin 4, N2400, b0
if b0 = "1" then
high 0
elseif b0= "2" then
high 1
elseif b0= "3" then
high 2
else ' b0 = 0
low 0,1,2,4
endif
goto my_loop
Both picaxes are mounted on prototype boards. Both are able to have the program loaded into them. I have a wire going from pin 4 of the 08m to pin 4 on the 18a. There is another wire going from ground on the 08m to ground on the 18a. The wire going to the input on the 18a protoype board is going to the inside hole immediately to the right of the small #4. The ground is coming in to immediately right of the little G. Any Ideas why this would not be working at all? Im not sure what it means but When I got my picaxe at a little class we cut R1 off of the board and put a 1K resistor where it says R7.If that has any bearing on the situation. Thanks for any help.
Do: if pin1= 1 then SEROUT 4,N2400,("1")
else SEROUT 4,N2400,(0) endif
if pin2= 1 then SEROUT 4,N2400,("2")
else SEROUT 4,N2400,(0) endif
if pin3= 1 then serout 4,n2400, ("3")
else serout 4,n2400, (0) endif
LOOP
I am running this code in a 18A:
my_loop:
serin 4, N2400, b0
if b0 = "1" then
high 0
elseif b0= "2" then
high 1
elseif b0= "3" then
high 2
else ' b0 = 0
low 0,1,2,4
endif
goto my_loop
Both picaxes are mounted on prototype boards. Both are able to have the program loaded into them. I have a wire going from pin 4 of the 08m to pin 4 on the 18a. There is another wire going from ground on the 08m to ground on the 18a. The wire going to the input on the 18a protoype board is going to the inside hole immediately to the right of the small #4. The ground is coming in to immediately right of the little G. Any Ideas why this would not be working at all? Im not sure what it means but When I got my picaxe at a little class we cut R1 off of the board and put a 1K resistor where it says R7.If that has any bearing on the situation. Thanks for any help.