32350 Parallax Inc, 32350 Datasheet - Page 3

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 Keyboard.spin
'' Displays characters typed on the Parallax PS/2 keyboard in the Parallax Serial Terminal.
'' See 28060-PS2-to-Breadbaord.PDF for schematics and instructions.
CON
OBJ
PUB KeyboardDisplay
Propeller Microcontroller – Test Parallax PS/2 Mouse
This application tests the Parallax PS/2 mouse connected to Propeller chip I/O pins P24 and P25 and
displays the X, Y and scroll wheel positions along with the center (scroll wheel), right, and left buttons in
the Parallax Serial Terminal.
included in the Propeller Tool software’s Propeller Library.
Copyright © Parallax Inc.
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
CLS
CR
keys : "Keyboard"
debug : "FullDuplexSerial"
keys.start(26, 27)
debug.start(31, 30, 0, 57600)
waitcnt(clkfreq + cnt)
' Display static text.
debug.str(string(CLS, "Type characters on", CR, "the PS/2 keyboard:", CR, CR))
repeat
if keys.gotKey
Schematic for Test Parallax Mouse.spin
debug.tx(keys.getKey)
Change the I/O pin connections; they are different from the keyboard example.
For tips on finding and using the Parallax Serial Terminal, see the explanation and checklist
instructions in the Test Parallax PS/2 Keyboard example.
If you did not click the enable button within 1 second after the Propeller Tool’s Load EEPROM
feature finished, the “Mouse”, “x = ”, “y = “, and other labels might not display. To refresh the
display, you can restart the application by holding down your computer keyboard’s CTRL key and
clicking the Parallax Serial Terminal’s DTR checkbox.
= 16
= 13
This program relies on the Mouse and FullDuplexSerial objects, which are
DAT
5V
PS/2 to Breadboard Adapter (#28060)
GND
CLK
' System clock settings
' Parallax Serial Terminal constants
' Declare keyboard object
' Declare FullDuplexSerial object
' Start keyboard
' Start serial connection
' Wait 1 s before starting
' If key in buffer
' Display character
v1.0 7/3/2008 Page 3 of 5

Related parts for 32350