32350 Parallax Inc, 32350 Datasheet - Page 4

MOUSE OPTICAL PARALLAX PS/2

32350

Manufacturer Part Number
32350
Description
MOUSE OPTICAL PARALLAX PS/2
Manufacturer
Parallax Inc
Type
Mouser
Datasheet

Specifications of 32350

Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
323500
Manufacturer:
ERNI
Quantity:
566
Part Number:
323505-1
Manufacturer:
MOLEX
Quantity:
1 230
'' 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 32350