Chameleon-PIC Nurve Networks, Chameleon-PIC Datasheet - Page 65

MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)

Chameleon-PIC

Manufacturer Part Number
Chameleon-PIC
Description
MCU, MPU & DSP Development Tools PIC24 & PROPELLER DEV SYSTEM (SBC)
Manufacturer
Nurve Networks
Datasheet

Specifications of Chameleon-PIC

Processor To Be Evaluated
PIC24
Data Bus Width
16 bit
Interface Type
USB, VGA, PS/2, I2C, ISP, SPI
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lastly, the only commands the standard PS/2 mouse will send to the host are the "Resend" ($FE) and "Error" ($FC).
They both work the same as they do as host-to-device commands. Other than that the mouse simply sends 3-byte data
motion packets in most cases.
$F2
$F0
$EE
$EC
$EB
$EA
$E9
$E8
$E7
$E6
NOTE
Right, Middle, Left button = 1 if button pressed; 0 if button is not pressed.
Scaling = 1 if scaling is 2:1; 0 if scaling is 1:1 (Refer to commands $E7 and $E6).
Enable = 1 if data reporting is enabled; 0 if data reporting is disabled (Refer to commands $F5 and $F4).
Mode = 1 if Remote Mode is enabled; 0 if Stream mode is enabled (Refer to commands $F0 and $EA).
Get Device ID - The mouse responds with "acknowledge" ($FA) followed by its device ID ($00 for the
standard PS/2 mouse.) The mouse also resets its movement counters in most cases.
Set Remote Mode - The mouse responds with "acknowledge" ($FA) then resets its movement counters
and enters Remote mode.
Set Wrap Mode - The mouse responds with "acknowledge" ($FA) then resets its movement counters
and enters Wrap mode.
Reset Wrap Mode - The mouse responds with "acknowledge" ($FA) then resets its movement counters
and enters the mode it was in prior to Wrap mode (Stream Mode or Remote Mode.)
Read Data - The mouse responds with acknowledge ($FA) then sends a movement data packet. This is
the only way to read data in Remote Mode. After the data packet has been successfully sent, the mouse
resets its movement counters.
Set Stream Mode - The mouse responds with "acknowledge" then resets its movement counters and
enters Stream mode.
Status Request - The mouse responds with "acknowledge" then sends the following 3-byte status packet
(then resets its movement counters) as shown below:
Byte 1
Byte 2
Byte 3
Set Resolution - The mouse responds with acknowledge ($FA) then reads the next byte from the host
and again responds with acknowledge ($FA) then resets its movement counters. The byte read from the
host determines the resolution as follows:
Set Scaling 2:1 - The mouse responds with acknowledge ($FA) then enables 2:1 scaling mode.
Set Scaling 1:1 - The mouse responds with acknowledge ($FA) then enables 1:1 scaling (default).
If the mouse is in Stream mode, the host should disable data reporting (command $F5)
before sending any other commands. This way, the mouse won’t keep trying to send
packets back while the host is trying to communicate with the mouse.
Always 0
Bit 7
Mode Enable
Byte Read from Host
Bit 6
$00
$01
$02
$03
Bit 5
Scaling
© 2009 NURVE NETWORKS LLC “Exploring the Chameleon PIC 16-Bit”
Always 0
Bit 4
Sample Rate
Resolution
Resolution
1 count/mm
2 count/mm
4 count/mm
8 count/mm
Left Button
Bit 3
Bit 2
Middle Button
Bit 1
Right Button
Bit 0
65

Related parts for Chameleon-PIC