propstick serial transmit indicator led on?
I have my propstick plugged into a breadboard running a program but the program does not seem to be working and the red serial transmit indicator led is on? anyone know why this is?
I am trying to use it as an 8bit register or 9 if the twos compliment needs 9
heres my code but i dont think that has anything to do with it.. I have +5 volts going to pin12 and have it grounded on pin9
I am trying to use it as an 8bit register or 9 if the twos compliment needs 9
heres my code but i dont think that has anything to do with it.. I have +5 volts going to pin12 and have it grounded on pin9
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
var
byte a,b,c,d,e,f,g,h,i
word subtraction,clock
pub register2v2
dira[0..7] := 0000
dira[8..16] := 11111
dira[30..31] := 00
repeat
clock := ina[31]
subtraction := ina[30]
outa[8] := a
outa[9] := b
outa[10] := c
outa[11] := d
outa[12] := e
outa[13] := f
outa[14] := g
outa[15] := h
outa[16] := i
if clock <> 1
a := ina[0]
b := ina[1]
c := ina[2]
d := ina[3]
e := ina[4]
f := ina[5]
g := ina[6]
h := ina[7]
if subtraction == 1
a := !a + 1
if a == 2
b := b + 1
a := 1
c := !c
if b == 2
c := c + 1
b := 1
d := !d
if c == 2
d := d + 1
c := 1
e := !e
if d == 2
e := e + 1
d := 1
f := !f
if e == 2
f := f + 1
e := 1
g := !g
if f == 2
g := g + 1
f := 1
h := !h
if g == 2
h := h + 1
g := 1
if h == 2
i := 1
h := 1
if clock == 1

Comments