Shop OBEX P1 Docs P2 Docs Learn Events
PS2 port interfacing to BS2? — Parallax Forums

PS2 port interfacing to BS2?

johnny_bjohnny_b Posts: 28
edited 2005-01-29 16:39 in BASIC Stamp
Hi,

So far, I have been using rs232 barcode readers (SERIN). New challenge: PS2 port.
Is it possible to interface a BS2 (sx, p...) with it, using e.g. SHIFTIN?

Anyone has a sample code (+schematics)?

thanx, Johnny

btw, the direct interfaced graphics display (128x64)+BS2sx project works fine now,
first succesful trial application is a 40Hz oscilloscope ;-)
Sample code, schematics anyone? ;-)




·

Comments

  • johnny_bjohnny_b Posts: 28
    edited 2005-01-26 15:23
    PS2 as in PCs (keyboard, mouse...) not PlayStation2 wink.gif
  • steve_bsteve_b Posts: 1,563
    edited 2005-01-26 16:13
    They have those ps/2 to db9 adapters!· Looking at them, I didn't think they were powered in any way....is it just a straight pin change?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·

    Steve
    http://members.rogers.com/steve.brady
    "Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
  • Beau SchwabeBeau Schwabe Posts: 6,557
    edited 2005-01-26 18:52
    Johnny,

    You won't be able to use the pbasic SHIFTIN function because it does not allow itself to
    be externally clock driven. However you should be able to roll your own SHIFTIN function
    that would allow you to provide an external clock. Don't be afraid to look at some micro
    controller (PIC) code that does this, it shouldn't be to difficult to convert it to pbasic. I might
    be able to dig up some old code that I have. What might also help is to "scope" your PS2
    clock and data signals to get a better feel as to what is going on, and what needs to be done
    from the software end.


    -Beau Schwabe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe - Mask Designer III

    National Semiconductor Corporation
    (Communication Interface Division)
    500 Pinnacle Court, Suite 525
    Mail Stop GA1
    Norcross,GA 30071
  • johnny_bjohnny_b Posts: 28
    edited 2005-01-28 12:52
    Ah, ok. It seems I have to do it pin-bit level... grrrr. That was one reason I moved
    from PIC to BS2 to forget this misery... Anyway, I am about to buy an SX-kit, maybe
    that can be a nice and balanced solution to these low-end problems.

    Thanx, Johnny
  • AlWilliamsAWCAlWilliamsAWC Posts: 135
    edited 2005-01-29 16:39
    You will find that the BS by itself is probably not fast enough to act as a PS/2 host (although you might be able to feed data to some PS/2 ports since you generate the clock in that case). If you are trying to read a mouse or a keyboard, have a look at http://www.awce.com/pak6.htm or http://www.awce.com/pak11.htm

    ·
Sign In or Register to comment.