Shop OBEX P1 Docs P2 Docs Learn Events
dummy question — Parallax Forums

dummy question

10gigbill10gigbill Posts: 79
edited 2010-08-18 18:17 in Propeller 1
led blink program. I want the pin to stay high when it finishes.

what did i forget?

thanks..

Bill

Comments

  • AJMAJM Posts: 171
    edited 2010-08-18 17:02
    Hi Bill

    Simply end your program with a 'repeat' and you will loop forever.
  • 10gigbill10gigbill Posts: 79
    edited 2010-08-18 17:29
    Thanks AJM:

    that did the trick... dose that mean the chip goes to sleep if it is
    not executing a program? turns off all it's ports..?

    Bill
  • Mike GreenMike Green Posts: 23,101
    edited 2010-08-18 18:17
    Yes. Whenever a cog exits, it performs a stop instruction which turns off the cog's clock and clears the cog's I/O registers which sets the I/O mode of its I/O pins to input. Remember that if another cog is using the I/O pins as outputs, that takes precedence.
Sign In or Register to comment.