28560 Parallax Inc, 28560 Datasheet - Page 18

Interface Modules & Development Tools Mouse Sensor Kit

28560

Manufacturer Part Number
28560
Description
Interface Modules & Development Tools Mouse Sensor Kit
Manufacturer
Parallax Inc
Datasheet

Specifications of 28560

Interface Type
Serial
Operating Supply Voltage
5 V
Product
Interface Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Propeller Application
Here’s the Top Level MouseSensorMonitor.spin listing. The referenced objects are included with the
archive downloadable from the Mouse Sensor page (search "28560" at www.parallax.com) or from the
Propeller Object Exchange (obex.parallax.com).
CON
OBJ
PUB start | x, y, q, status
PUB report (x, y, q)
Copyright © Parallax Inc.
_clkmode
_xinfreq
SCK_PIN
SDA_PIN
ms
sio
sio.start(31, 30, 0, 38400)
ms.start(SCK_PIN, SDA_PIN)
q~
repeat
sio.tx("x")
sio.dec(x)
sio.str(string(" y"))
sio.dec(y)
sio.str(string(" q"))
sio.dec(q)
sio.tx(13)
if ((status := ms.read(ms#STAT)) & ms#CHNG)
else
if (status & ms#OFLOW)
report(x += ms.getdx, y += ms.getdy, q := ms.read(ms#QLTY))
report(x, y, q)
: "MouseSensor"
: "FullduplexSerial"
report(x, y, 999)
= xtal1 + pll16x
= 5_000_000
= 22
= 23
'Change these pin specs as necessary.
Mouse Sensor Kit (#28560)
v1.0 6/1/2010 Page 18 of 18

Related parts for 28560