Shop OBEX P1 Docs P2 Docs Learn Events
Freeing P14 & P15 — Parallax Forums

Freeing P14 & P15

ArchiverArchiver Posts: 46,084
edited 2004-01-03 17:29 in General Discussion
I noticed that on my BS2 OEM that P14 & P15 are also used by the
serial port. In my next project I need to use all 16 I/O where serial
communication is not needed during runtime. How can I free the last
two ports?

- Johari

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-01-02 13:52
    That is not correct, all IO pins are Stamp IO pins are avaiable for your
    programs. If you want to use SERIN or SEROUT with the programming port,
    you must specify pin 16. There is no actual IO pin 16, this just
    redirects the software to use the programming port.

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


    Original Message
    From: Johari Aziz [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=G9xLqAnoV77nS6OvATvKUk6id42lUbDqmwtiu2zsyzBhih2KJblA5eXNPyvfmUf2o6PTuLwPaSs]johaziz@y...[/url
    Sent: Friday, January 02, 2004 1:38 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Freeing P14 & P15


    I noticed that on my BS2 OEM that P14 & P15 are also used by the serial
    port. In my next project I need to use all 16 I/O where serial
    communication is not needed during runtime. How can I free the last two
    ports?

    - Johari


    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.


    Yahoo! Groups Links

    To visit your group on the web, go to:
    http://groups.yahoo.com/group/basicstamps/

    To unsubscribe from this group, send an email to:
    basicstamps-unsubscribe@yahoogroups.com

    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....
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-02 17:37
    I've looked up the BS2 OEM, and it's not clear to me
    what pins you're talking about. You might not want
    to describe the OEM pins a 'P14 & P15'. It turns
    out P14 and P15 are I/O pin keywords used in PBasic.
    Both the BS2 and OEM have usable P14 and P15.

    Instead, call them "Pin 14 and Pin 15". I believe
    the pins used for the serial port are RA2 and RA3.
    These are not mapped to PBasic P1..P15.

    With the PBasic firmware, I don't think you can
    remap these pins to be used for anything but the
    'Port 16' SERIN/SEROUT and programming port.



    --- In basicstamps@yahoogroups.com, "Johari Aziz" <johaziz@y...>
    wrote:
    > I noticed that on my BS2 OEM that P14 & P15 are also used by the
    > serial port. In my next project I need to use all 16 I/O where
    serial
    > communication is not needed during runtime. How can I free the last
    > two ports?
    >
    > - Johari
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-02 18:15
    Actually it is not much of a SERIN or SEROUT problem because I don't
    normally use that. I just had problem uploading the program if those
    two pins are active and interconnected. I have many BS2s running at
    the same time and used those two pins to comunicate with each other as
    HIGH anf LOW status. I used PIN 14 as input and PIN 15 as output. eg.:

    BS2 #1

    outcom PIN 15
    OUTPUT outcom

    IsOn CON 1
    IsOff CON 0

    outcom = IsOn

    BS2 #2

    incom PIN 14
    INPUT incom

    IsOn CON 1
    IsOff CON 0

    DO
    LOOP UNTIL incom = IsOn

    The program works fine but I cannot reverse the situation. I can't
    have PIN 14 as outcom and PIN 15 as incom. PIN 14 just refuse to go
    HIGH. This makes me believe that PIN 14 and 15 are shared by other
    function by the Bascic Stamp.

    - Johari


    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...> wrote:
    > That is not correct, all IO pins are Stamp IO pins are avaiable for your
    > programs. If you want to use SERIN or SEROUT with the programming port,
    > you must specify pin 16. There is no actual IO pin 16, this just
    > redirects the software to use the programming port.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > Sent: Friday, January 02, 2004 1:38 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Freeing P14 & P15
    >
    >
    > I noticed that on my BS2 OEM that P14 & P15 are also used by the serial
    > port. In my next project I need to use all 16 I/O where serial
    > communication is not needed during runtime. How can I free the last two
    > ports?
    >
    > - Johari
    >
    >
    > 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.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > 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...
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-02 19:03
    No, they are not shared with anything else. Do a quick check with LEDs
    to make sure you haven't damaged your Stamp. Something easy like this:

    Test:
    HIGH 14
    PAUSE 1000
    LOW 14
    HIGH 15
    PAUSE 1000
    LOW 15
    GOTO Test

    I was assisting a customer in their lab the other day and we found that
    we had a bad pin on the Stamp. Once that was sorted out, the rest of
    the day went easier.

    -- Jon Williams
    -- Parallax


    Original Message
    From: Johari Aziz [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=yCcEhjVpvN1KORHX-TGsO_u-wlnQ_rfyg542wYzk8GQdXSoKBOCN6iLRcS0M0FU0OLgxZmLt1g]johaziz@y...[/url
    Sent: Friday, January 02, 2004 12:15 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Freeing P14 & P15


    Actually it is not much of a SERIN or SEROUT problem because I don't
    normally use that. I just had problem uploading the program if those two
    pins are active and interconnected. I have many BS2s running at the same
    time and used those two pins to comunicate with each other as HIGH anf
    LOW status. I used PIN 14 as input and PIN 15 as output. eg.:

    BS2 #1

    outcom PIN 15
    OUTPUT outcom

    IsOn CON 1
    IsOff CON 0

    outcom = IsOn

    BS2 #2

    incom PIN 14
    INPUT incom

    IsOn CON 1
    IsOff CON 0

    DO
    LOOP UNTIL incom = IsOn

    The program works fine but I cannot reverse the situation. I can't have
    PIN 14 as outcom and PIN 15 as incom. PIN 14 just refuse to go HIGH.
    This makes me believe that PIN 14 and 15 are shared by other function by
    the Bascic Stamp.

    - Johari


    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > That is not correct, all IO pins are Stamp IO pins are avaiable for
    > your programs. If you want to use SERIN or SEROUT with the
    > programming port, you must specify pin 16. There is no actual IO pin
    > 16, this just redirects the software to use the programming port.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > Sent: Friday, January 02, 2004 1:38 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Freeing P14 & P15
    >
    >
    > I noticed that on my BS2 OEM that P14 & P15 are also used by the
    > serial port. In my next project I need to use all 16 I/O where serial
    > communication is not needed during runtime. How can I free the last
    > two ports?
    >
    > - Johari
    >
    >
    > 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.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > 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...


    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.


    Yahoo! Groups Links

    To visit your group on the web, go to:
    http://groups.yahoo.com/group/basicstamps/

    To unsubscribe from this group, send an email to:
    basicstamps-unsubscribe@yahoogroups.com

    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....
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-03 00:09
    If you are using a couple of pins to
    signal other BS2 modules, you need to
    be careful not to enable two drivers
    on the same pin. The risk is if one
    driver is outputting high while another
    driver is outputting low. If there is
    no resistance between the two pins,
    you can easily burn out a driver on
    one of the pins. This may have happened
    to your P14.

    A 220 resistor in series with the two
    pins can reduce the current to the point
    where it won't damage the pins.

    In any event, P14 and P15 don't have
    any other purpose on the BS2 than
    general purpose I/O.

    --- In basicstamps@yahoogroups.com, "Johari Aziz" <johaziz@y...>
    wrote:
    > Actually it is not much of a SERIN or SEROUT problem because I don't
    > normally use that. I just had problem uploading the program if those
    > two pins are active and interconnected. I have many BS2s running at
    > the same time and used those two pins to comunicate with each other
    as
    > HIGH anf LOW status. I used PIN 14 as input and PIN 15 as output.
    eg.:
    >
    > BS2 #1
    >
    >
    > outcom PIN 15
    > OUTPUT outcom
    >
    > IsOn CON 1
    > IsOff CON 0
    >
    > outcom = IsOn
    >
    > BS2 #2
    >
    >
    > incom PIN 14
    > INPUT incom
    >
    > IsOn CON 1
    > IsOff CON 0
    >
    > DO
    > LOOP UNTIL incom = IsOn
    >
    > The program works fine but I cannot reverse the situation. I can't
    > have PIN 14 as outcom and PIN 15 as incom. PIN 14 just refuse to go
    > HIGH. This makes me believe that PIN 14 and 15 are shared by other
    > function by the Bascic Stamp.
    >
    > - Johari
    >
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > > That is not correct, all IO pins are Stamp IO pins are avaiable
    for your
    > > programs. If you want to use SERIN or SEROUT with the
    programming port,
    > > you must specify pin 16. There is no actual IO pin 16, this just
    > > redirects the software to use the programming port.
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    Original Message
    > > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > > Sent: Friday, January 02, 2004 1:38 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] Freeing P14 & P15
    > >
    > >
    > > I noticed that on my BS2 OEM that P14 & P15 are also used by the
    serial
    > > port. In my next project I need to use all 16 I/O where serial
    > > communication is not needed during runtime. How can I free the
    last two
    > > ports?
    > >
    > > - Johari
    > >
    > >
    > > 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.
    > >
    > >
    > > Yahoo! Groups Links
    > >
    > > To visit your group on the web, go to:
    > > http://groups.yahoo.com/group/basicstamps/
    > >
    > > To unsubscribe from this group, send an email to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > >
    > > 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...
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-03 01:11
    Actually all of my 6 units of BS2 behaved the same way. Since then i
    have switched to other pins for that purpose, P3 & P4. They have pull
    up and pull down resistors where it is necessary. All of them been
    running fine for more than a month at location. This query is for a
    future project that i may or may not use them.

    - Johari

    --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...> wrote:
    > If you are using a couple of pins to
    > signal other BS2 modules, you need to
    > be careful not to enable two drivers
    > on the same pin. The risk is if one
    > driver is outputting high while another
    > driver is outputting low. If there is
    > no resistance between the two pins,
    > you can easily burn out a driver on
    > one of the pins. This may have happened
    > to your P14.
    >
    > A 220 resistor in series with the two
    > pins can reduce the current to the point
    > where it won't damage the pins.
    >
    > In any event, P14 and P15 don't have
    > any other purpose on the BS2 than
    > general purpose I/O.
    >
    > --- In basicstamps@yahoogroups.com, "Johari Aziz" <johaziz@y...>
    > wrote:
    > > Actually it is not much of a SERIN or SEROUT problem because I don't
    > > normally use that. I just had problem uploading the program if those
    > > two pins are active and interconnected. I have many BS2s running at
    > > the same time and used those two pins to comunicate with each other
    > as
    > > HIGH anf LOW status. I used PIN 14 as input and PIN 15 as output.
    > eg.:
    > >
    > > BS2 #1
    > >
    > >
    > > outcom PIN 15
    > > OUTPUT outcom
    > >
    > > IsOn CON 1
    > > IsOff CON 0
    > >
    > > outcom = IsOn
    > >
    > > BS2 #2
    > >
    > >
    > > incom PIN 14
    > > INPUT incom
    > >
    > > IsOn CON 1
    > > IsOff CON 0
    > >
    > > DO
    > > LOOP UNTIL incom = IsOn
    > >
    > > The program works fine but I cannot reverse the situation. I can't
    > > have PIN 14 as outcom and PIN 15 as incom. PIN 14 just refuse to go
    > > HIGH. This makes me believe that PIN 14 and 15 are shared by other
    > > function by the Bascic Stamp.
    > >
    > > - Johari
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > > That is not correct, all IO pins are Stamp IO pins are avaiable
    > for your
    > > > programs. If you want to use SERIN or SEROUT with the
    > programming port,
    > > > you must specify pin 16. There is no actual IO pin 16, this just
    > > > redirects the software to use the programming port.
    > > >
    > > > -- Jon Williams
    > > > -- Applications Engineer, Parallax
    > > > -- Dallas Office
    > > >
    > > >
    > > >
    Original Message
    > > > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > > > Sent: Friday, January 02, 2004 1:38 AM
    > > > To: basicstamps@yahoogroups.com
    > > > Subject: [noparse][[/noparse]basicstamps] Freeing P14 & P15
    > > >
    > > >
    > > > I noticed that on my BS2 OEM that P14 & P15 are also used by the
    > serial
    > > > port. In my next project I need to use all 16 I/O where serial
    > > > communication is not needed during runtime. How can I free the
    > last two
    > > > ports?
    > > >
    > > > - Johari
    > > >
    > > >
    > > > 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.
    > > >
    > > >
    > > > Yahoo! Groups Links
    > > >
    > > > To visit your group on the web, go to:
    > > > http://groups.yahoo.com/group/basicstamps/
    > > >
    > > > To unsubscribe from this group, send an email to:
    > > > basicstamps-unsubscribe@yahoogroups.com
    > > >
    > > > 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...
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-03 01:19
    Actually all of my 6 unit BS2 responded the same way either using LED
    to test or my Fluke. Since then I have switched to P3 & P5 and it
    works fine.

    - Johari

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...> wrote:
    > No, they are not shared with anything else. Do a quick check with LEDs
    > to make sure you haven't damaged your Stamp. Something easy like this:
    >
    > Test:
    > HIGH 14
    > PAUSE 1000
    > LOW 14
    > HIGH 15
    > PAUSE 1000
    > LOW 15
    > GOTO Test
    >
    > I was assisting a customer in their lab the other day and we found that
    > we had a bad pin on the Stamp. Once that was sorted out, the rest of
    > the day went easier.
    >
    > -- Jon Williams
    > -- Parallax
    >
    >
    >
    Original Message
    > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > Sent: Friday, January 02, 2004 12:15 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Freeing P14 & P15
    >
    >
    > Actually it is not much of a SERIN or SEROUT problem because I don't
    > normally use that. I just had problem uploading the program if those two
    > pins are active and interconnected. I have many BS2s running at the same
    > time and used those two pins to comunicate with each other as HIGH anf
    > LOW status. I used PIN 14 as input and PIN 15 as output. eg.:
    >
    > BS2 #1
    >
    >
    > outcom PIN 15
    > OUTPUT outcom
    >
    > IsOn CON 1
    > IsOff CON 0
    >
    > outcom = IsOn
    >
    > BS2 #2
    >
    >
    > incom PIN 14
    > INPUT incom
    >
    > IsOn CON 1
    > IsOff CON 0
    >
    > DO
    > LOOP UNTIL incom = IsOn
    >
    > The program works fine but I cannot reverse the situation. I can't have
    > PIN 14 as outcom and PIN 15 as incom. PIN 14 just refuse to go HIGH.
    > This makes me believe that PIN 14 and 15 are shared by other function by
    > the Bascic Stamp.
    >
    > - Johari
    >
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > That is not correct, all IO pins are Stamp IO pins are avaiable for
    > > your programs. If you want to use SERIN or SEROUT with the
    > > programming port, you must specify pin 16. There is no actual IO pin
    > > 16, this just redirects the software to use the programming port.
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    Original Message
    > > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > > Sent: Friday, January 02, 2004 1:38 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] Freeing P14 & P15
    > >
    > >
    > > I noticed that on my BS2 OEM that P14 & P15 are also used by the
    > > serial port. In my next project I need to use all 16 I/O where serial
    > > communication is not needed during runtime. How can I free the last
    > > two ports?
    > >
    > > - Johari
    > >
    > >
    > > 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.
    > >
    > >
    > > Yahoo! Groups Links
    > >
    > > To visit your group on the web, go to:
    > > http://groups.yahoo.com/group/basicstamps/
    > >
    > > To unsubscribe from this group, send an email to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > >
    > > 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...
    >
    >
    > 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.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > 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...
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-03 04:08
    As Allan pointed out in another post, it's a good idea to use a 220 ohm
    (minimum) resistor between two Stamps that are signaling each other.
    It's easy -- even for us pros -- to make an error that causes the both
    pins to be outputs and in the opposite state, usually blowing one pin or
    the other.

    -- Jon Williams
    -- Parallax


    Original Message
    From: Johari Aziz [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=YBZt_dWqY_sYrdHhSb8xjUPb1FKoXqpDF27n_enW1UG-FNdatUu_JQTcJq-6B3ETl87iqgMqNNU]johaziz@y...[/url
    Sent: Friday, January 02, 2004 7:20 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Re: Freeing P14 & P15


    Actually all of my 6 unit BS2 responded the same way either using LED to
    test or my Fluke. Since then I have switched to P3 & P5 and it works
    fine.

    - Johari

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    wrote:
    > No, they are not shared with anything else. Do a quick check with
    > LEDs to make sure you haven't damaged your Stamp. Something easy like

    > this:
    >
    > Test:
    > HIGH 14
    > PAUSE 1000
    > LOW 14
    > HIGH 15
    > PAUSE 1000
    > LOW 15
    > GOTO Test
    >
    > I was assisting a customer in their lab the other day and we found
    > that we had a bad pin on the Stamp. Once that was sorted out, the
    > rest of the day went easier.
    >
    > -- Jon Williams
    > -- Parallax
    >
    >
    >
    Original Message
    > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > Sent: Friday, January 02, 2004 12:15 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Freeing P14 & P15
    >
    >
    > Actually it is not much of a SERIN or SEROUT problem because I don't
    > normally use that. I just had problem uploading the program if those
    > two pins are active and interconnected. I have many BS2s running at
    > the same time and used those two pins to comunicate with each other as

    > HIGH anf LOW status. I used PIN 14 as input and PIN 15 as output. eg.:
    >
    > BS2 #1
    >
    >
    > outcom PIN 15
    > OUTPUT outcom
    >
    > IsOn CON 1
    > IsOff CON 0
    >
    > outcom = IsOn
    >
    > BS2 #2
    >
    >
    > incom PIN 14
    > INPUT incom
    >
    > IsOn CON 1
    > IsOff CON 0
    >
    > DO
    > LOOP UNTIL incom = IsOn
    >
    > The program works fine but I cannot reverse the situation. I can't
    > have PIN 14 as outcom and PIN 15 as incom. PIN 14 just refuse to go
    > HIGH. This makes me believe that PIN 14 and 15 are shared by other
    > function by the Bascic Stamp.
    >
    > - Johari
    >
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > That is not correct, all IO pins are Stamp IO pins are avaiable for
    > > your programs. If you want to use SERIN or SEROUT with the
    > > programming port, you must specify pin 16. There is no actual IO
    pin
    > > 16, this just redirects the software to use the programming port.
    > >
    > > -- Jon Williams
    > > -- Applications Engineer, Parallax
    > > -- Dallas Office
    > >
    > >
    > >
    Original Message
    > > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > > Sent: Friday, January 02, 2004 1:38 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] Freeing P14 & P15
    > >
    > >
    > > I noticed that on my BS2 OEM that P14 & P15 are also used by the
    > > serial port. In my next project I need to use all 16 I/O where
    serial
    > > communication is not needed during runtime. How can I free the last
    > > two ports?
    > >
    > > - Johari
    > >
    > >
    > > 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.
    > >
    > >
    > > Yahoo! Groups Links
    > >
    > > To visit your group on the web, go to:
    > > http://groups.yahoo.com/group/basicstamps/
    > >
    > > To unsubscribe from this group, send an email to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > >
    > > 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...
    >
    >
    > 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.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > 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...


    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.


    Yahoo! Groups Links

    To visit your group on the web, go to:
    http://groups.yahoo.com/group/basicstamps/

    To unsubscribe from this group, send an email to:
    basicstamps-unsubscribe@yahoogroups.com

    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....
  • ArchiverArchiver Posts: 46,084
    edited 2004-01-03 17:29
    Perhaps the 220 ohm may help. It also may caused by power problem
    because it is an outdoor installation and during the initial setup we
    were using diesel driven power generators for one week. Then later we
    had a direct tap from the mains. But yet I have to use a UPS to filter
    the power. I only can do an 'autopsy' when the whole unit returns next
    week.

    - Johari

    --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...> wrote:
    > As Allan pointed out in another post, it's a good idea to use a 220 ohm
    > (minimum) resistor between two Stamps that are signaling each other.
    > It's easy -- even for us pros -- to make an error that causes the both
    > pins to be outputs and in the opposite state, usually blowing one pin or
    > the other.
    >
    > -- Jon Williams
    > -- Parallax
    >
    >
    >
    Original Message
    > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > Sent: Friday, January 02, 2004 7:20 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Re: Freeing P14 & P15
    >
    >
    > Actually all of my 6 unit BS2 responded the same way either using LED to
    > test or my Fluke. Since then I have switched to P3 & P5 and it works
    > fine.
    >
    > - Johari
    >
    > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > wrote:
    > > No, they are not shared with anything else. Do a quick check with
    > > LEDs to make sure you haven't damaged your Stamp. Something easy like
    >
    > > this:
    > >
    > > Test:
    > > HIGH 14
    > > PAUSE 1000
    > > LOW 14
    > > HIGH 15
    > > PAUSE 1000
    > > LOW 15
    > > GOTO Test
    > >
    > > I was assisting a customer in their lab the other day and we found
    > > that we had a bad pin on the Stamp. Once that was sorted out, the
    > > rest of the day went easier.
    > >
    > > -- Jon Williams
    > > -- Parallax
    > >
    > >
    > >
    Original Message
    > > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > > Sent: Friday, January 02, 2004 12:15 PM
    > > To: basicstamps@yahoogroups.com
    > > Subject: [noparse][[/noparse]basicstamps] Re: Freeing P14 & P15
    > >
    > >
    > > Actually it is not much of a SERIN or SEROUT problem because I don't
    > > normally use that. I just had problem uploading the program if those
    > > two pins are active and interconnected. I have many BS2s running at
    > > the same time and used those two pins to comunicate with each other as
    >
    > > HIGH anf LOW status. I used PIN 14 as input and PIN 15 as output. eg.:
    > >
    > > BS2 #1
    > >
    > >
    > > outcom PIN 15
    > > OUTPUT outcom
    > >
    > > IsOn CON 1
    > > IsOff CON 0
    > >
    > > outcom = IsOn
    > >
    > > BS2 #2
    > >
    > >
    > > incom PIN 14
    > > INPUT incom
    > >
    > > IsOn CON 1
    > > IsOff CON 0
    > >
    > > DO
    > > LOOP UNTIL incom = IsOn
    > >
    > > The program works fine but I cannot reverse the situation. I can't
    > > have PIN 14 as outcom and PIN 15 as incom. PIN 14 just refuse to go
    > > HIGH. This makes me believe that PIN 14 and 15 are shared by other
    > > function by the Bascic Stamp.
    > >
    > > - Johari
    > >
    > >
    > > --- In basicstamps@yahoogroups.com, "Jon Williams" <jwilliams@p...>
    > > wrote:
    > > > That is not correct, all IO pins are Stamp IO pins are avaiable for
    > > > your programs. If you want to use SERIN or SEROUT with the
    > > > programming port, you must specify pin 16. There is no actual IO
    > pin
    > > > 16, this just redirects the software to use the programming port.
    > > >
    > > > -- Jon Williams
    > > > -- Applications Engineer, Parallax
    > > > -- Dallas Office
    > > >
    > > >
    > > >
    Original Message
    > > > From: Johari Aziz [noparse][[/noparse]mailto:johaziz@y...]
    > > > Sent: Friday, January 02, 2004 1:38 AM
    > > > To: basicstamps@yahoogroups.com
    > > > Subject: [noparse][[/noparse]basicstamps] Freeing P14 & P15
    > > >
    > > >
    > > > I noticed that on my BS2 OEM that P14 & P15 are also used by the
    > > > serial port. In my next project I need to use all 16 I/O where
    > serial
    > > > communication is not needed during runtime. How can I free the last
    > > > two ports?
    > > >
    > > > - Johari
    > > >
    > > >
    > > > 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.
    > > >
    > > >
    > > > Yahoo! Groups Links
    > > >
    > > > To visit your group on the web, go to:
    > > > http://groups.yahoo.com/group/basicstamps/
    > > >
    > > > To unsubscribe from this group, send an email to:
    > > > basicstamps-unsubscribe@yahoogroups.com
    > > >
    > > > 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...
    > >
    > >
    > > 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.
    > >
    > >
    > > Yahoo! Groups Links
    > >
    > > To visit your group on the web, go to:
    > > http://groups.yahoo.com/group/basicstamps/
    > >
    > > To unsubscribe from this group, send an email to:
    > > basicstamps-unsubscribe@yahoogroups.com
    > >
    > > 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...
    >
    >
    > 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.
    >
    >
    > Yahoo! Groups Links
    >
    > To visit your group on the web, go to:
    > http://groups.yahoo.com/group/basicstamps/
    >
    > To unsubscribe from this group, send an email to:
    > basicstamps-unsubscribe@yahoogroups.com
    >
    > 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.