Page 1
Freescale Semiconductor, Inc. High Data Rate Wireless USB Optical Mouse Solution Using the MC68HC908QY4 and MC68HC908JB12 Designer Reference Manual M68HC08 Microcontrollers DRM055/D Rev. 0 1/2004 MOTOROLA.COM/SEMICONDUCTORS For More Information On This Product, Go to: www.freescale.com...
Page 2
Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
Page 3
To verify you have the latest information available, refer to: http://motorola.com/semiconductors Motorola and the Stylized M Logo are registered trademarks of Motorola, Inc. DigitalDNA is a trademark of Motorola, Inc. This product incorporates SuperFlash® technology licensed from SST.
Page 4
Freescale Semiconductor, Inc. Revision History Revision History Revision Page Date Description Level Number(s) January, Initial release 2004 DRM055 High Data Rate Wireless USB Optical Mouse Solution Revision History MOTOROLA For More Information On This Product, Go to: www.freescale.com...
X-Y Displacements Packet ......25 DRM055 High Data Rate W ireless USB Optical Mouse Solution MOTOROLA Table of Contents For More Information On This Product,...
Page 6
Receiver ......... . . 42 DRM055 High Data Rate Wireless USB Optical Mouse Solution Table of Contents MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Page 7
Loop Antenna Impedance ....... 41 High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA List of Figures and Tables For More Information On This Product,...
Page 8
Rx Matching Examples........41 DRM055 High Data Rate Wireless USB Optical Mouse Solution List of Figures and Tables MOTOROLA For More Information On This Product, Go to: www.freescale.com...
PC host from the peripheral device. From the end users point of view, the overall movement of the mouse can be fully cached up and reflected on the computer screen without any noticeable delay in cursor response. The following reference materials are available at: http://motorola.com/semiconductors • Schematic diagram •...
A block diagram of the system is shown in Figure 1-1. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. DRM055 High Data Rate Wireless USB Optical Mouse Solution System Overview MOTOROLA For More Information On This Product, Go to: www.freescale.com...
The final data is sent to the host through the USB interface. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA System Overview For More Information On This Product, Go to: www.freescale.com...
Page 12
Freescale Semiconductor, Inc. System Overview DRM055 High Data Rate Wireless USB Optical Mouse Solution System Overview MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Higher data rates require more bandwidth / frequency deviation. The frequency deviation for this 4.8-kbps data High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA RF Front End For More Information On This Product, Go to: www.freescale.com...
• The RF receiver uses a loop antenna formed by using a PCB trace line. DRM055 High Data Rate Wireless USB Optical Mouse Solution RF Front End MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Suspend and resume operations with remote wakeup support • USB-generated interrupts • STALL, NAK, and ACK handshake generation High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Universal Serial Bus (USB) Overview For More Information On This Product, Go to: www.freescale.com...
The MCU program controls and monitors the USB operation and data transfer status through the corresponding USB registers. Please refer to the MC68HC908JB16 Technical Data (Motorola document order number MC68HC908JB16/D) and to it’s Addendum (Motorola document order number HC908JB16AD/D) for a more detailed description of each block.
High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Universal Serial Bus (USB) Overview For More Information On This Product, Go to: www.freescale.com...
0–8 BYTES Handshake Packet: SYNC STALL Figure 3-3. USB Packet Types Please refer to the MC68HC908JB16 Technical Data (Motorola document order number MC68HC908JB16/D) for a detailed description of each packet format. DRM055 High Data Rate Wireless USB Optical Mouse Solution...
NOTE: RF data is transmitted by means of setting and clearing the RF_Data and the RF_Off pin. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Optical Mouse Transmitter For More Information On This Product, Go to: www.freescale.com...
SDIO pin. The power down (PD) pin is used to power down the sensor when not in use. DRM055 High Data Rate Wireless USB Optical Mouse Solution Optical Mouse Transmitter MOTOROLA For More Information On This Product, Go to: www.freescale.com...
For every millisecond timer tick, it checks the Z movement and the buttons status. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Mouse Transmitter Firmware For More Information On This Product, Go to: www.freescale.com...
If no activity happens for 90 seconds, it enters sleep stage. In this stage, the QY4 is put in stop mode and will wake up every 200 milliseconds to monitor any DRM055 High Data Rate Wireless USB Optical Mouse Solution Mouse Transmitter Firmware MOTOROLA For More Information On This Product, Go to: www.freescale.com...
X-Y displacement packet as a Z and button status packet or vice versa. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Mouse Transmitter Firmware For More Information On This Product, Go to: www.freescale.com...
Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 STOP Figure 5-8. Checksum Byte DRM055 High Data Rate Wireless USB Optical Mouse Solution Mouse Transmitter Firmware MOTOROLA For More Information On This Product, Go to: www.freescale.com...
The X or Y displacement is represented in 2's complement and the checksum byte is the sum of the X displacement, the Y displacement, and the stored ID byte. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Mouse Transmitter Firmware For More Information On This Product, Go to: www.freescale.com...
Page 26
Freescale Semiconductor, Inc. Mouse Transmitter Firmware DRM055 High Data Rate Wireless USB Optical Mouse Solution Mouse Transmitter Firmware MOTOROLA For More Information On This Product, Go to: www.freescale.com...
10 nF 10 M OSC1 12 MHz PTA7–PTA5 30 pF 30 pF (SO20) Figure 6-1. USB Receiver High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Universal Serial Bus (USB) Receiver For More Information On This Product, Go to: www.freescale.com...
The ICP interface is connected at port A. The ICP is used for future firmware updating through the Cyclone Programming Tools. DRM055 High Data Rate Wireless USB Optical Mouse Solution Universal Serial Bus (USB) Receiver MOTOROLA For More Information On This Product, Go to: www.freescale.com...
The firmware first distinguishes the kind of control transfer and then does the corresponding preparation for the next stage. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Receiver Firmware For More Information On This Product, Go to: www.freescale.com...
EMPTY? RF PACKET USB IDLE FOR DETECTED OR RESUME SUSPEND DEVICE 3 ms? FROM HOST? Figure 7-1. Firmware Flow DRM055 High Data Rate Wireless USB Optical Mouse Solution Receiver Firmware MOTOROLA For More Information On This Product, Go to: www.freescale.com...
AND CLEAR EP2 TX FLAG RESUME FROM CLEAR RESUME FLAG HOST? RETURN FROM INTERRUPT Figure 7-2. USB Interrupt Routine High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Receiver Firmware For More Information On This Product, Go to: www.freescale.com...
1. COPY DATA TO BUFFER VALID DATA 2. PROCESS OUT DATA RETURN STALL RETURN Figure 7-4. OUT EP0 Handler DRM055 High Data Rate Wireless USB Optical Mouse Solution Receiver Firmware MOTOROLA For More Information On This Product, Go to: www.freescale.com...
For more detailed information, refer to 7.3.1 Wakeup Detection Mechanism. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Receiver Firmware For More Information On This Product, Go to: www.freescale.com...
TO WAKE UP HOST RESET RECEIVER STATUS EXIT AND WAIT FOR NEXT TIMER INTERRUPT Figure 7-6. Timer Capture Interrupt For Receiver DRM055 High Data Rate Wireless USB Optical Mouse Solution Receiver Firmware MOTOROLA For More Information On This Product, Go to: www.freescale.com...
USB Wireless Optical Mouse and Multimedia Keyboard Solution (Motorola document order number, DRM042/D). 7.3 Remote Wakeup The JB12 receiver supports remote wakeup functions that can wake up the host computer during USB suspend.
If one complete RF packet is received, the MCU will wake up the host. Figure 7-8. Detection of Valid Wakeup Packets DRM055 High Data Rate Wireless USB Optical Mouse Solution Receiver Firmware MOTOROLA For More Information On This Product, Go to: www.freescale.com...
3. Release the “PTA0” button in the receiver Once these steps are complete, the new mouse ID will be updated in the receiver. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Receiver Firmware For More Information On This Product, Go to: www.freescale.com...
Page 38
Freescale Semiconductor, Inc. Receiver Firmware DRM055 High Data Rate Wireless USB Optical Mouse Solution Receiver Firmware MOTOROLA For More Information On This Product, Go to: www.freescale.com...
The advantage of connecting to the batteries output is the lower power consumption but the system will not work properly if battery voltage is below 2.5 V. High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Testing and Customization For More Information On This Product, Go to: www.freescale.com...
1.867 µs 00000001 0x96 0x01 00003.7326 7119 Figure 8-1. USB Report for JB12 to Host for the Test Setup DRM055 High Data Rate Wireless USB Optical Mouse Solution Testing and Customization MOTOROLA For More Information On This Product, Go to: www.freescale.com...
430 pF (–13.7j) = (330 + 100) pF Larger inductance 300 nH (51j) 238.6 pF (–24.7j) ~ (200 + 39) pF High Data Rate Wireless USB Optical Mouse Solution DRM055 MOTOROLA Testing and Customization For More Information On This Product, Go to: www.freescale.com...
Change vendor ID, product ID, and product revision number in the device descriptor table in "KBD-MSE.H" • Change the report descriptor in "KBD-MSE.H" if necessary DRM055 High Data Rate Wireless USB Optical Mouse Solution Testing and Customization MOTOROLA For More Information On This Product, Go to: www.freescale.com...
Page 43
Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com...
Page 44
Motorola product could create a situation where personal injury or death may occur.
Need help?
Do you have a question about the M68HC08 and is the answer not in the manual?
Questions and answers