Shop OBEX P1 Docs P2 Docs Learn Events
yet another newbie — Parallax Forums

yet another newbie

ArchiverArchiver Posts: 46,084
edited 2001-11-19 05:04 in General Discussion
I have the student workbook of the bs2 micro controller and I am trying to
run the first exercise in it. When I press run it comes up with an error
message that says check power supply. I have the negative terminal connected
to pin 23 and the positive at 24. the code I am writing is

output 0
reblink:


out0=0
pause 1000
out0=1
pause 1000
goto reblink

Any help will be greatly appreciated.

Ben Ford

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-11-19 00:21
    Ben,

    Don't forget that your code must identify the type of Basic Stamp you
    are using. Somewhere near the top (Usually the first code following any
    comments) it must say:
    ' {$STAMP BS2}

    or BS2e or BS2sx or BS2p based on which BS you are using.

    Also if you are using the v1.1 editor under
    Edit/Preferances/Editor_Operation set the default stamp mode to the BS2
    type that you have.

    If that does not fix your problem, what voltage are you providing to
    pin 24?

    Phil

    Ben Ford wrote:
    >
    > I have the student workbook of the bs2 micro controller and I am trying to
    > run the first exercise in it. When I press run it comes up with an error
    > message that says check power supply. I have the negative terminal connected
    > to pin 23 and the positive at 24. the code I am writing is
    >
    > output 0
    > reblink:
    >
    > out0=0
    > pause 1000
    > out0=1
    > pause 1000
    > goto reblink
    >
    > Any help will be greatly appreciated.
    >
    > Ben Ford
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and Body
    of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-11-19 03:44
    >I have the student workbook of the bs2 micro controller and I am trying to
    >run the first exercise in it. When I press run it comes up with an error
    >message that says check power supply. I have the negative terminal connected
    >to pin 23 and the positive at 24. the code I am writing is
    >
    >output 0
    >reblink:
    >
    >
    > out0=0
    >pause 1000
    > out0=1
    > pause 1000
    >goto reblink

    You appear to be using an alphabetic "O" for out0. It should be
    a number zero.

    Carl
  • ArchiverArchiver Posts: 46,084
    edited 2001-11-19 05:04
    Make sure you have the following line at the top of the code:

    '{$STAMP BS2}

    This tells the compiler which stamp it needs to use. If you don't
    already have it, I would suggest getting the BASIC Stamp editor 1.2
    software from www.parallax.com . The help doesn't seem to work in
    Windows XP unless you run the .chm file out of the program
    directory, but the improvements to the interface can be a big help,
    especially when switching between different types of stamps (BS2,
    BS2sx, etc.)

    --- In basicstamps@y..., carl@g... wrote:
    > >I have the student workbook of the bs2 micro controller and I am
    trying to
    > >run the first exercise in it. When I press run it comes up with
    an error
    > >message that says check power supply. I have the negative
    terminal connected
    > >to pin 23 and the positive at 24. the code I am writing is
    > >
    > >output 0
    > >reblink:
    > >
    > >
    > > out0=0
    > >pause 1000
    > > out0=1
    > > pause 1000
    > >goto reblink
    >
    > You appear to be using an alphabetic "O" for out0. It should be
    > a number zero.
    >
    > Carl
Sign In or Register to comment.