Shop OBEX P1 Docs P2 Docs Learn Events
propstick serial transmit indicator led on? — Parallax Forums

propstick serial transmit indicator led on?

ohVaNiLLaGoRiLLaohVaNiLLaGoRiLLa Posts: 33
edited 2013-04-28 19:28 in Propeller 1
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

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

  • kuronekokuroneko Posts: 3,623
    edited 2013-04-28 19:28
    Pins 31 and 30 are used for communication with the PC (hardwired to the FT232). So you should avoid them in your setup. The onboard EEPROM is connected to pins 28/29 so stay away from them as well (for now).
Sign In or Register to comment.