Shop OBEX P1 Docs P2 Docs Learn Events
Default IO status — Parallax Forums

Default IO status

BasilBasil Posts: 380
edited 2007-04-03 21:04 in Propeller 1
Hi All,

Just a query on the default direction and value of the IO ports on bootup.

Are the ports set to input or output while the prop is starting up (Or neither)? Obviously those special function·pins used at startup·are already answered for, but what about the others?

If output, what is the default value?
Also, is this the same default vlaue·once a port is set to output direction using DIRA?·I'd asusme its low but probably wrong blush.gif
Thanks All.

Comments

  • OzStampOzStamp Posts: 377
    edited 2007-04-03 10:54
    Hi Basil

    my guess is that the general i/o pins are all inputs (0)

    In SPIN..
    You have to set them to output with commands like dira[noparse][[/noparse]0..7]~~ ( set 0 thru to 7 (inc 7)) to outputs

    Have a quick peeky boo at the Prop datasheet there is a good blurb on this exact issue.
    Cheers
    Ronald Nollet Australia
  • OzStampOzStamp Posts: 377
    edited 2007-04-03 10:54
    Hi Basil

    my guess is that the general i/o pins are all inputs (0)

    In SPIN..
    You have to set them to output with commands like dira[noparse][[/noparse]0..7]~~ ( set 0 thru to 7 (inc 7)) to outputs

    Have a quick peeky boo at the Prop datasheet there is a good blurb on this exact issue.
    Cheers
    Ronald Nollet Australia
  • BasilBasil Posts: 380
    edited 2007-04-03 21:04
    Thanks for that smile.gif

    I noticed the spec sheet just now! What a wonderful document smilewinkgrin.gif
Sign In or Register to comment.