Shop OBEX P1 Docs P2 Docs Learn Events
PS2 20Mhz resonator not working? — Parallax Forums

PS2 20Mhz resonator not working?

ArchiverArchiver Posts: 46,084
edited 2003-07-13 02:13 in General Discussion
MY PS2 has a strange problem, it works when connected a wire is
connected to the 9pin. I thought it was the RF linnk, but it does the
same thing when just mounted by itself on the test board. It will
accept and run prgrams when connected to a computer AND also when the
serial cable si left connected. Removing the serial cable but leaving
power on and the STAMP still works fine. If I then take pwoer off the
STAMP and repower it willnot function. Simply connecting to the serial
cable and plugging into a computer starts it up fine.
I tired to check if the resonator was working as it seemed like it
might be a touchy oscillator problem. What should I expect to see on
the controller chip pins 26 and 27 that go to the resonator? I have a
good HF scope but so far have found nothing active on these pins!! ?
Has anyone changed out the resonator succesfully and where did you get
it. ( part number etc please )
sorry for long post but if I make it too short I am often
mistunderstood).
ron

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-07-12 19:45
    The ATN line (BS2 pin 3) may be floating HIGH,
    or you may have a flaky ground.

    Tie ATN to ground through 10Kohm resistor, to
    guarantee a 'soft' 0 there, so you won't get
    held in reset.

    --- In basicstamps@yahoogroups.com, "rondoc69" <rdoctors@c...> wrote:
    > MY PS2 has a strange problem, it works when connected a wire is
    > connected to the 9pin. I thought it was the RF linnk, but it does
    the
    > same thing when just mounted by itself on the test board. It will
    > accept and run prgrams when connected to a computer AND also when
    the
    > serial cable si left connected. Removing the serial cable but
    leaving
    > power on and the STAMP still works fine. If I then take pwoer off
    the
    > STAMP and repower it willnot function. Simply connecting to the
    serial
    > cable and plugging into a computer starts it up fine.
    > I tired to check if the resonator was working as it seemed like it
    > might be a touchy oscillator problem. What should I expect to see
    on
    > the controller chip pins 26 and 27 that go to the resonator? I have
    a
    > good HF scope but so far have found nothing active on these pins!! ?
    > Has anyone changed out the resonator succesfully and where did you
    get
    > it. ( part number etc please )
    > sorry for long post but if I make it too short I am often
    > mistunderstood).
    > ron
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-12 21:02
    NIce idea but it made no difference..problem is the same if the
    computer is on or off. It would seem that one of the 3 connections to
    the serial 9 pin has to be connected to something to make this STAMP
    work..I checked out the resonator and it works all the time. Any more
    ideas welcomed..
    ron

    --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    wrote:
    > The ATN line (BS2 pin 3) may be floating HIGH,
    > or you may have a flaky ground.
    >
    > Tie ATN to ground through 10Kohm resistor, to
    > guarantee a 'soft' 0 there, so you won't get
    > held in reset.
    >
    > --- In basicstamps@yahoogroups.com, "rondoc69" <rdoctors@c...>
    wrote:
    > > MY PS2 has a strange problem, it works when connected a wire is
    > > connected to the 9pin. I thought it was the RF linnk, but it does
    > the
    > > same thing when just mounted by itself on the test board. It will
    > > accept and run prgrams when connected to a computer AND also when
    > the
    > > serial cable si left connected. Removing the serial cable but
    > leaving
    > > power on and the STAMP still works fine. If I then take pwoer off
    > the
    > > STAMP and repower it willnot function. Simply connecting to the
    > serial
    > > cable and plugging into a computer starts it up fine.
    > > I tired to check if the resonator was working as it seemed like
    it
    > > might be a touchy oscillator problem. What should I expect to see
    > on
    > > the controller chip pins 26 and 27 that go to the resonator? I
    have
    > a
    > > good HF scope but so far have found nothing active on these
    pins!!
    ?
    > > Has anyone changed out the resonator succesfully and where did
    you
    > get
    > > it. ( part number etc please )
    > > sorry for long post but if I make it too short I am often
    > > mistunderstood).
    > > ron
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-12 22:07
    At 08:02 PM 7/12/03 +0000, rondoc69 wrote:
    >NIce idea but it made no difference..problem is the same if the
    >computer is on or off. It would seem that one of the 3 connections to
    >the serial 9 pin has to be connected to something to make this STAMP
    >work..I checked out the resonator and it works all the time. Any more
    >ideas welcomed..
    >ron

    How is the Stamp being powered, from a wall wart, or a battery ?
    Are you using a test board of your own design or one that was pre-built
    and purchased ?

    I'm beginning to wonder if there is a missing ground somewhere.

    Bruce Bates
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-12 23:24
    I have checked , the board makes no differecne as I have tried it the
    dev. board that Parallax supplies and the board in which it is used.
    Either way the problem is the same. If I put a 1.5K from the SIN pin
    (
    2 on the STAMP2 ) to ground the STAMP will run normally. If this
    resistor is removed the STAMP will run until either a reset or power
    cycled, so it seems that the condition is marginal. The SIN goes to a
    3904 NPN base , the collector goes to pin 7 or RX on the PIC
    microcontroller chip. ( schematic from Parallax ). (BTW The 3904 and
    micro are all part of the STAMP board. )
    SInce I can get the STAMP to run I wondered if it would be OK to just
    put the resistor in and leave it there. I would really like a
    response
    on this from an engineer at Parallax inc as it might be a dumb thing
    to do and it mught indicate that the PIC chip is failing..

    (btw The schematic shows SIN going to PIN3 of the 9pin connector and
    is labelled Tx .. I am a bit confused as this line also controls the
    NPN
    transistor that goes RX on the pic... is this an error or what? )


    sicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
    > At 08:02 PM 7/12/03 +0000, rondoc69 wrote:
    > >NIce idea but it made no difference..problem is the same if the
    > >computer is on or off. It would seem that one of the 3 connections
    to
    > >the serial 9 pin has to be connected to something to make this
    STAMP
    > >work..I checked out the resonator and it works all the time. Any
    more
    > >ideas welcomed..
    > >ron
    >
    > How is the Stamp being powered, from a wall wart, or a battery ?
    > Are you using a test board of your own design or one that was
    pre-built
    > and purchased ?
    >
    > I'm beginning to wonder if there is a missing ground somewhere.
    >
    > Bruce Bates
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-13 00:02
    >If I put a 1.5K from the SIN pin
    >( 2 on the STAMP2 ) to ground the STAMP will run normally.

    Did you try the idea of connecting ATN to ground (either directly or
    via a 1.5k resistor), to see if that would have the same effect as
    the 1.5 K from SIN to ground? (ATN pin 4 on the DB9, pin 3 on the
    BS2 carrier, via npn xistor to MCLR on the PIC)

    >(btw The schematic shows SIN going to PIN3 of the 9pin connector and
    >is labelled Tx .. I am a bit confused as this line also controls the
    >NPN
    >transistor that goes RX on the pic... is this an error or what? )

    The pins on the DB9 connector are labeled from the point of view of
    the PC, which is the DTE device (Data Terminal Equipment), and
    transmits its data from pin 3 of its DB9. The Stamp carrier boards
    are wired DCE (Data Communications Equipment) and expects to receive
    data pin 3 of its DB9. The cable from DTE to DCE is straight thru,
    pin 1 to pin 1 on up to pin 9 to pin 9. No crosses. The
    convention is to label signals from the point of view of the DTE.
    When the signal gets into the heart of the BS2, they call it Sin.

    -- Tracy Allen
  • ArchiverArchiver Posts: 46,084
    edited 2003-07-13 00:11
    Rondoc,

    If at all possible, can you find someone in your area with a Stamp? See if
    their Stamp will program without the resistor.

    Good luck,

    Jonathan

    www.madlabs.info

    Original Message
    From: "rondoc69" <rdoctors@c...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, July 12, 2003 3:24 PM
    Subject: [noparse][[/noparse]basicstamps] Re: PS2 20Mhz resonator not working?


    > I have checked , the board makes no differecne as I have tried it the
    > dev. board that Parallax supplies and the board in which it is used.
    > Either way the problem is the same. If I put a 1.5K from the SIN pin
    > (
    > 2 on the STAMP2 ) to ground the STAMP will run normally. If this
    > resistor is removed the STAMP will run until either a reset or power
    > cycled, so it seems that the condition is marginal. The SIN goes to a
    > 3904 NPN base , the collector goes to pin 7 or RX on the PIC
    > microcontroller chip. ( schematic from Parallax ). (BTW The 3904 and
    > micro are all part of the STAMP board. )
    > SInce I can get the STAMP to run I wondered if it would be OK to just
    > put the resistor in and leave it there. I would really like a
    > response
    > on this from an engineer at Parallax inc as it might be a dumb thing
    > to do and it mught indicate that the PIC chip is failing..
    >
    > (btw The schematic shows SIN going to PIN3 of the 9pin connector and
    > is labelled Tx .. I am a bit confused as this line also controls the
    > NPN
    > transistor that goes RX on the pic... is this an error or what? )
    >
    >
    > sicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
    > > At 08:02 PM 7/12/03 +0000, rondoc69 wrote:
    > > >NIce idea but it made no difference..problem is the same if the
    > > >computer is on or off. It would seem that one of the 3 connections
    > to
    > > >the serial 9 pin has to be connected to something to make this
    > STAMP
    > > >work..I checked out the resonator and it works all the time. Any
    > more
    > > >ideas welcomed..
    > > >ron
    > >
    > > How is the Stamp being powered, from a wall wart, or a battery ?
    > > Are you using a test board of your own design or one that was
    > pre-built
    > > and purchased ?
    > >
    > > I'm beginning to wonder if there is a missing ground somewhere.
    > >
    > > Bruce Bates
    >
    >
    > 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-07-13 00:29
    Thanks guys for your ideas... No putting the ATN to ground does
    nothing. This is becauase the ATN does a RESET , it seems that the
    problem is with the RX pin on PIC controller, the RESET seems to be
    rock solid.
    I live in Santa Barbara.. anyone live nearby that would loan me a
    STAMP just be sure I am not crazy..
    It seems that the PIC chip is bad or that the transistors on the STAMP
    have failed. Can anyone give me some resistance figures for the pins
    1,2 3 also pins 7 and 8 on the PIC to each other and to ground, on A
    stamp ps2? I am going to try and look at the transistors on the STAMP
    to see if they are OK. I think that they are as I can still program
    the STAMP fine.
    Anyone have a spare STAMP PS2 they want to sell?

    3-- In basicstamps@yahoogroups.com, "Jonathan Peakall" <jpeakall@m...
    > wrote:
    > Rondoc,
    >
    > If at all possible, can you find someone in your area with a Stamp?
    See if
    > their Stamp will program without the resistor.
    >
    > Good luck,
    >
    > Jonathan
    >
    > www.madlabs.info
    >
    >
    Original Message
    > From: "rondoc69" <rdoctors@c...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Saturday, July 12, 2003 3:24 PM
    > Subject: [noparse][[/noparse]basicstamps] Re: PS2 20Mhz resonator not working?
    >
    >
    > > I have checked , the board makes no differecne as I have tried it
    the
    > > dev. board that Parallax supplies and the board in which it is
    used.
    > > Either way the problem is the same. If I put a 1.5K from the SIN
    pin
    > > (
    > > 2 on the STAMP2 ) to ground the STAMP will run normally. If this
    > > resistor is removed the STAMP will run until either a reset or
    power
    > > cycled, so it seems that the condition is marginal. The SIN goes
    to a
    > > 3904 NPN base , the collector goes to pin 7 or RX on the PIC
    > > microcontroller chip. ( schematic from Parallax ). (BTW The 3904
    and
    > > micro are all part of the STAMP board. )
    > > SInce I can get the STAMP to run I wondered if it would be OK to
    just
    > > put the resistor in and leave it there. I would really like a
    > > response
    > > on this from an engineer at Parallax inc as it might be a dumb
    thing
    > > to do and it mught indicate that the PIC chip is failing..
    > >
    > > (btw The schematic shows SIN going to PIN3 of the 9pin connector
    and
    > > is labelled Tx .. I am a bit confused as this line also controls
    the
    > > NPN
    > > transistor that goes RX on the pic... is this an error or what? )
    > >
    > >
    > > sicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
    > > > At 08:02 PM 7/12/03 +0000, rondoc69 wrote:
    > > > >NIce idea but it made no difference..problem is the same if the
    > > > >computer is on or off. It would seem that one of the 3
    connections
    > > to
    > > > >the serial 9 pin has to be connected to something to make this
    > > STAMP
    > > > >work..I checked out the resonator and it works all the time.
    Any
    > > more
    > > > >ideas welcomed..
    > > > >ron
    > > >
    > > > How is the Stamp being powered, from a wall wart, or a battery ?
    > > > Are you using a test board of your own design or one that was
    > > pre-built
    > > > and purchased ?
    > > >
    > > > I'm beginning to wonder if there is a missing ground somewhere.
    > > >
    > > > Bruce Bates
    > >
    > >
    > > 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-07-13 00:38
    sorry, forgot to mention it but the STAMP prgrams and runs fine
    without any resistors as long as plugged into the serial line. That is
    why I was so confused, it would run fine on the bench then when I
    disconnected it from the programming board and went to use it on the
    main system it did nothing. The system is a solar tracking system that
    is on the roof of an RV, so it a pain to keep plugging and unplugging
    the STAMP. I have a 50 foot long serial cable but it so haevy that I
    hate to use it.
    I have now moved everything to the computer room so I can prgram the
    STAMP in situ.. problem the same but easier to trouble shoot..
    ron


    --- In basicstamps@yahoogroups.com, "Jonathan Peakall" <jpeakall@m...>
    wrote:
    > Rondoc,
    >
    > If at all possible, can you find someone in your area with a Stamp?
    See if
    > their Stamp will program without the resistor.
    >
    > Good luck,
    >
    > Jonathan
    >
    > www.madlabs.info
    >
    >
    Original Message
    > From: "rondoc69" <rdoctors@c...>
    > To: <basicstamps@yahoogroups.com>
    > Sent: Saturday, July 12, 2003 3:24 PM
    > Subject: [noparse][[/noparse]basicstamps] Re: PS2 20Mhz resonator not working?
    >
    >
    > > I have checked , the board makes no differecne as I have tried it
    the
    > > dev. board that Parallax supplies and the board in which it is
    used.
    > > Either way the problem is the same. If I put a 1.5K from the SIN
    pin
    > > (
    > > 2 on the STAMP2 ) to ground the STAMP will run normally. If this
    > > resistor is removed the STAMP will run until either a reset or
    power
    > > cycled, so it seems that the condition is marginal. The SIN goes
    to a
    > > 3904 NPN base , the collector goes to pin 7 or RX on the PIC
    > > microcontroller chip. ( schematic from Parallax ). (BTW The 3904
    and
    > > micro are all part of the STAMP board. )
    > > SInce I can get the STAMP to run I wondered if it would be OK to
    just
    > > put the resistor in and leave it there. I would really like a
    > > response
    > > on this from an engineer at Parallax inc as it might be a dumb
    thing
    > > to do and it mught indicate that the PIC chip is failing..
    > >
    > > (btw The schematic shows SIN going to PIN3 of the 9pin connector
    and
    > > is labelled Tx .. I am a bit confused as this line also controls
    the
    > > NPN
    > > transistor that goes RX on the pic... is this an error or what? )
    > >
    > >
    > > sicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
    > > > At 08:02 PM 7/12/03 +0000, rondoc69 wrote:
    > > > >NIce idea but it made no difference..problem is the same if the
    > > > >computer is on or off. It would seem that one of the 3
    connections
    > > to
    > > > >the serial 9 pin has to be connected to something to make this
    > > STAMP
    > > > >work..I checked out the resonator and it works all the time.
    Any
    > > more
    > > > >ideas welcomed..
    > > > >ron
    > > >
    > > > How is the Stamp being powered, from a wall wart, or a battery ?
    > > > Are you using a test board of your own design or one that was
    > > pre-built
    > > > and purchased ?
    > > >
    > > > I'm beginning to wonder if there is a missing ground somewhere.
    > > >
    > > > Bruce Bates
    > >
    > >
    > > 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-07-13 02:13
    The BS2 module uses SIN from the PC to provide a
    -12 volt signal, which the BS2 then modulates
    for its SOUT signal. This means every byte
    sent to the BS2 comes back to the PC. However,
    this lets the BS2 send 'true' 232 levels back
    to the PC.

    --- In basicstamps@yahoogroups.com, "rondoc69" <rdoctors@c...> wrote:
    > I have checked , the board makes no differecne as I have tried it
    the
    > dev. board that Parallax supplies and the board in which it is used.
    > Either way the problem is the same. If I put a 1.5K from the SIN pin
    > (
    > 2 on the STAMP2 ) to ground the STAMP will run normally. If this
    > resistor is removed the STAMP will run until either a reset or
    power
    > cycled, so it seems that the condition is marginal. The SIN goes to
    a
    > 3904 NPN base , the collector goes to pin 7 or RX on the PIC
    > microcontroller chip. ( schematic from Parallax ). (BTW The 3904
    and
    > micro are all part of the STAMP board. )
    > SInce I can get the STAMP to run I wondered if it would be OK to
    just
    > put the resistor in and leave it there. I would really like a
    > response
    > on this from an engineer at Parallax inc as it might be a dumb
    thing
    > to do and it mught indicate that the PIC chip is failing..
    >
    > (btw The schematic shows SIN going to PIN3 of the 9pin connector
    and
    > is labelled Tx .. I am a bit confused as this line also controls
    the
    > NPN
    > transistor that goes RX on the pic... is this an error or what? )
    >
    >
    > sicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
    > > At 08:02 PM 7/12/03 +0000, rondoc69 wrote:
    > > >NIce idea but it made no difference..problem is the same if the
    > > >computer is on or off. It would seem that one of the 3
    connections
    > to
    > > >the serial 9 pin has to be connected to something to make this
    > STAMP
    > > >work..I checked out the resonator and it works all the time. Any
    > more
    > > >ideas welcomed..
    > > >ron
    > >
    > > How is the Stamp being powered, from a wall wart, or a battery ?
    > > Are you using a test board of your own design or one that was
    > pre-built
    > > and purchased ?
    > >
    > > I'm beginning to wonder if there is a missing ground somewhere.
    > >
    > > Bruce Bates
Sign In or Register to comment.