28060 Parallax Inc, 28060 Datasheet - Page 4

I/O Connectors PS/2 to Breadboard Adapter

28060

Manufacturer Part Number
28060
Description
I/O Connectors PS/2 to Breadboard Adapter
Manufacturer
Parallax Inc
Series
-r
Datasheet

Specifications of 28060

Number Of Positions / Contacts
6
Mounting Style
SMD/SMT
Termination Style
DIP
Operating Temperature Range
0 to + 70 C
Accessory Type
PS/2 Console Interface Module
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
Game Systems, Development, Hobby and Education Projects

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
280609-1
Quantity:
150
'' Test Parallax Mouse.spin
'' Displays Parallax mouse X, Y, and Scroll button coordinates along with the scroll wheel,
'' right and left button states in the Parallax Serial Terminal.
'' See 28060-PS2-to_Breadbaord.PDF for schematics and instructions.
CON
OBJ
PUB MouseDisplay | mousex, mousey, mousez, mousebtns
Copyright © Parallax Inc.
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
HOME
CRSRXY = 2
CR
CLREOL = 11
CLS
mouse : "Mouse"
debug : "FullDuplexSerial"
mouse.start(24, 25)
debug.start(31, 30, 0, 57600)
waitcnt(clkfreq + cnt)
' Display static text.
debug.str(String(CLS, "Mouse", CR, "x = ", CR, "y = ", CR, "scroll = ", CR, "CRL", HOME))
repeat
mousex += mouse.delta_x
mousey += mouse.delta_y
mousez += mouse.delta_z
mousebtns := mouse.buttons
debug.str(string(CRSRXY, 4, 1))
debug.dec(mousex)
debug.str(string(CLREOL, CRSRXY, 4, 2))
debug.dec(mousey)
debug.str(string(CLREOL, CRSRXY, 9, 3))
debug.dec(mousez)
debug.str(string(CLREOL, CR, CR))
debug.bin(mouse.buttons, 3)
waitcnt(clkfreq/20 + cnt)
= 1
= 13
= 16
PS/2 to Breadboard Adapter (#28060)
' System clock settings
' Parallax Serial Terminal constants
' Declare Mouse object
' Declare FullDuplexSerial object
' Start mouse
' Start serial connection
' Wait 1 s before starting
' Get mouse data
' Display mouse data
v1.0 7/3/2008 Page 4 of 5

Related parts for 28060