Motorola M68HC08 Designer Reference Manual
Hide thumbs Also See for M68HC08:
Table of Contents

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading

Summary of Contents for Motorola M68HC08

  • 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...
  • Page 5: Table Of Contents

    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...
  • Page 9: Section 1. System Overview

    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 •...
  • Page 10: Features

    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...
  • Page 11: Transmitter And Receiver

    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...
  • Page 13: Section 2. Rf Front End

    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...
  • Page 14: Rf Receiver

    • 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...
  • Page 15: Section 3. Universal Serial Bus (Usb) Overview

    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...
  • Page 16: Usb Module Description

    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.
  • Page 17: Usb Connection

    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...
  • Page 18: Usb Packet Types

    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...
  • Page 19: Section 4. Optical Mouse Transmitter

    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...
  • Page 20: Qy4 Microcontroller

    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...
  • Page 21: Section 5. Mouse Transmitter Firmware

    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...
  • Page 22: Power Management

    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...
  • Page 23: Data Packet Format

    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...
  • Page 24: Button Status And Z Displacement Packet

    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...
  • Page 25: X-Y Displacements Packet

    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...
  • Page 27: Section 6. Universal Serial Bus (Usb) Receiver

    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...
  • Page 28: System Overview

    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...
  • Page 29: Section 7. Receiver Firmware

    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...
  • Page 30: Firmware Flow

    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...
  • Page 31: Usb Interrupt Routine

    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...
  • Page 32: Setup Routine

    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...
  • Page 33: In Ep0 Handler

    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...
  • Page 34: Timer Capture Interrupt For Receiver

    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...
  • Page 35: Usb Report

    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.
  • Page 36: Timing Parameters For Packet Detection

    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...
  • Page 37: Power Consideration

    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...
  • Page 39: Section 8. Testing And Customization

    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...
  • Page 40: Usb Report For Jb12 To Host For The Test Setup

    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...
  • Page 41: Rf Circuitry

    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...
  • Page 42: Firmware Customization

    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.

Table of Contents