Shop OBEX P1 Docs P2 Docs Learn Events
Newbie output\input question — Parallax Forums

Newbie output\input question

ArchiverArchiver Posts: 46,084
edited 2003-09-17 23:53 in General Discussion
I have the chip 2P40. i have the following:

output 16


MOTOR2_C VAR OUT16

and get the error undefined symbol on the second line just trying to setup an
alias.

does this error have to to with the fact one side ofthe chip is IO the other
side is AUX????

TIA.



Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-09-17 22:47
    There IS NO 'OUT16', they max out at 'OUT15',
    so the compiler complains.

    There IS a 'pseudo-pin' 16, which refers to
    the SIN/SOUT port, which is why 'output 16' doesn't
    complain. I don't know the command to switch to
    the 'X' ports -- anybody know it?
    (Could search the Forum for 'X15')

    --- In basicstamps@yahoogroups.com, "Mr. M" <the_0utsider1@y...>
    wrote:
    > I have the chip 2P40. i have the following:
    >
    > output 16
    >
    >
    > MOTOR2_C VAR OUT16
    >
    > and get the error undefined symbol on the second line just trying
    to setup an alias.
    >
    > does this error have to to with the fact one side ofthe chip is IO
    the other side is AUX????
    >
    > TIA.
    >
    >
    >
    >
    > Do you Yahoo!?
    > Yahoo! SiteBuilder - Free, easy-to-use web site design software
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-09-17 22:51
    You can use the "pseudo" ports 16 for serial input / output, but not for
    normal input / output control.
    eg...

    serin 16, etc etc

    Regards
    Chris


    Original Message
    From: "Allan Lane" <allan.lane@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, September 18, 2003 5:47 AM
    Subject: [noparse][[/noparse]basicstamps] Re: Newbie output\input question


    > There IS NO 'OUT16', they max out at 'OUT15',
    > so the compiler complains.
    >
    > There IS a 'pseudo-pin' 16, which refers to
    > the SIN/SOUT port, which is why 'output 16' doesn't
    > complain. I don't know the command to switch to
    > the 'X' ports -- anybody know it?
    > (Could search the Forum for 'X15')
    >
    > --- In basicstamps@yahoogroups.com, "Mr. M" <the_0utsider1@y...>
    > wrote:
    > > I have the chip 2P40. i have the following:
    > >
    > > output 16
    > >
    > >
    > > MOTOR2_C VAR OUT16
    > >
    > > and get the error undefined symbol on the second line just trying
    > to setup an alias.
    > >
    > > does this error have to to with the fact one side ofthe chip is IO
    > the other side is AUX????
    > >
    > > TIA.
    > >
    > >
    > >
    > >
    > > Do you Yahoo!?
    > > Yahoo! SiteBuilder - Free, easy-to-use web site design software
    > >
    > > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > 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 2003-09-17 22:53
    OOps,
    I think Ianswered the question a bit fast.

    You should read the help for mainio and auxio for the bs2p40 i/o access.
    I think you need to switch to auxio and then access pin 0 to access physical
    pin 16.

    Cheers,
    Chris


    Original Message
    From: "Allan Lane" <allan.lane@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, September 18, 2003 5:47 AM
    Subject: [noparse][[/noparse]basicstamps] Re: Newbie output\input question


    > There IS NO 'OUT16', they max out at 'OUT15',
    > so the compiler complains.
    >
    > There IS a 'pseudo-pin' 16, which refers to
    > the SIN/SOUT port, which is why 'output 16' doesn't
    > complain. I don't know the command to switch to
    > the 'X' ports -- anybody know it?
    > (Could search the Forum for 'X15')
    >
    > --- In basicstamps@yahoogroups.com, "Mr. M" <the_0utsider1@y...>
    > wrote:
    > > I have the chip 2P40. i have the following:
    > >
    > > output 16
    > >
    > >
    > > MOTOR2_C VAR OUT16
    > >
    > > and get the error undefined symbol on the second line just trying
    > to setup an alias.
    > >
    > > does this error have to to with the fact one side ofthe chip is IO
    > the other side is AUX????
    > >
    > > TIA.
    > >
    > >
    > >
    > >
    > > Do you Yahoo!?
    > > Yahoo! SiteBuilder - Free, easy-to-use web site design software
    > >
    > > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > 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 2003-09-17 23:53
    BS2p40 pins are in two banks: MAINIO and AUXIO. Both banks use pin
    numbers 0 to 15. To get to pin 0 on the auxilliary bank, you would do
    this:

    AUXIO
    OUTPUT 0

    To get back to the main bank ...

    MAINIO
    OUTPUT 0

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: Mr. M [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=0airOWou1eALTbTHWf8kSCAAgSNxbhWxudLqZ4ZdXDHJbC9zIAuu4KorQPghWBRnj9D-VBCfsFgqR0HL7rsIzxGQ]the_0utsider1@y...[/url
    Sent: Wednesday, September 17, 2003 3:19 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Newbie output\input question


    I have the chip 2P40. i have the following:

    output 16


    MOTOR2_C VAR OUT16

    and get the error undefined symbol on the second line just trying to
    setup an alias.

    does this error have to to with the fact one side ofthe chip is IO the
    other side is AUX????

    TIA.



    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software

    [noparse][[/noparse]Non-text portions of this message have been removed]


    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
Sign In or Register to comment.