A great way to trouble shoot, debug, and see the final result is to use an LCD screen to display the information that the mouse is sending to the PIC. Release Data Clock high and Data high will put the mouse into idle mode and if Data Reporting has been enabled, the mouse should send a Data and Clock signal to the PIC when it detects button changes or motion The connector uses six pins: This data transmission takes place based on the clock signal generated by the external device. Input Data bit into a 33 member array
|Date Added:||10 July 2006|
|File Size:||47.56 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Documentation and ordering information for the adapter can be found here: More information about this operation can be found here: Release Data Clock high and Data high will put the mouse into idle mode and if Data Reporting has been enabled, the mouse should send a Data and Clock signal to the PIC when it detects button changes or motion After a great deal of troubleshooting, we have lynd to the conclusion that our interrupt service routine algorithm or microcontroller is simply not fast enough to receive and send data in time with clock signal generated by the mouse.
YV and XV are overflow flags for the motion in Y and X directions respectively where 0 means negative motion and mouwe means positive motion.
Our code shown further down mouae to display X and Y coordinate motion of an optical mouse by doing the following: The connector uses six pins: Setting Data low and Clock high is the host requesting to send command, and this should cause the mouse to mohse generating clock signals and to wait for commands from the host 5.
This article documents an unfinished work.
In order n9 operate, the mouse needs power, so the 5v and ground are used to power the mouse. Retrieved from ” http: The clock and data lines connect directly to the clock and data lines of the breadboard adapter. Set Data low 4.
Views Page Discussion View source History. More information on the mouse interface may be found at the following links: Data is sent as bytes with bit frames 11 for device-to-host transmission and 12 for host-to-device.
These lines are specified as DATA and Clock and allow for host-to-device transmission and device-to-host transmission.
Repeat steps indefinitely. Basically, the microcontroller needs to be able to have two way communication with the mouse.
The mouse’s XY coordinates will be displayed on an LCD screen and will be updated when the mouse moves. Content may change as the project progresses. The mouse also generates its own clock signal. A great way to trouble shoot, debug, and see the final result is to use an LCD screen to display the information that the mouse is sending to the PIC.
Set Clock low 2. Personal tools Log in. Input Data bit into a 33 member array The frames are made up of: A start bit, eight data bits, a parity bit oddan end bit, and in the case of host-to-device transmission, mousse acknowledge bit. The other two pins are actually used as both inputs and outputs.
3-Button USB + PS2 Optical Scroll Mouse, iOne, Lynx-M9
Release Clock Default is high on an open collector. We also found that the buffers were unnecessary.
X0-X7 and Y0-Y7 are binary outputs of 0 towhich represent how far the mouse has moved in its respective directions since the last sample the least significant digit is on the right.
Each high and each low on the clock signal would last roughly 40 microseconds and our interrupt service routine which was supposed to trigger every time the clock went from high to low tended to miss or lyns several signals at a time.
Ione Lynx M9 – mouse Series
Normally, when a mouse first powers on, it will send its iione ID information and set default values for its sample rate, resolution and scaling. Interfacing with a mouse From Mech. Wait for clock to go low represents beginning of a clock input wave from mouse 6.
More about this can be found in the PS2 protocol section.