background image

Mouse Transmitter Firmware

Output Buffer Format for the RF Packet

DRM050 — Rev 0

Designer Reference Manual

MOTOROLA

Mouse Transmitter Firmware

25

 

The contents of the output buffer will be received by the JB16 dongle and 
dongle can extract the mouse data and send to the host through USB.

Figure 4-3. Output Buffer Format for the Mouse Packet

Packet Size

Y-Displacement

Z-Displacement

X-Displacement

Button Status

Packet Size

Reserved for Sequence

Node ID

Network ID byte4

Network ID byte3

Network ID byte2

Network ID byte1

Packet Size

Y-Displacement

Z-Displacement

X-Displacement

Button Status

Packet Size

Reserved for Sequence

Node ID

Network ID byte4

Network ID byte3

Network ID byte2

Network ID byte1

Output Buffer Structure 

Output Buffer Structure 

Output Buffer Structure 

Output Buffer Structure 

For for Mouse RF Packet

For for Mouse RF Packet

For for Mouse RF Packet

For for Mouse RF Packet

 

   

  

F

re

e

sc

a

le

 S

e

m

ic

o

n

d

u

c

to

r,

 I

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

  

 

Freescale Semiconductor, Inc.

For More Information On This Product,

   Go to: www.freescale.com

n

c

.

..

Summary of Contents for DRM050

Page 1: ...ontrollers DRM050 D Rev 0 09 2003 2 4 GHz Wireless Designer Reference Optical Mouse and Manual Multimedia Keyboard Solution Freescale Semiconductor I Freescale Semiconductor Inc For More Information O...

Page 2: ...Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 3: ...ineering Microcontroller Division Hong Kong To provide the most up to date information the revision of our documents on the World Wide Web will be the most current Your printed copy may be an earlier...

Page 4: ...DRM050 Rev 0 4 Revision History MOTOROLA Revision History Section Page Description of Change Throughout NA Initial Release Freescale Semiconductor I Freescale Semiconductor Inc For More Information O...

Page 5: ...RFW D100 14 2 5 Antenna and PCB Specification 15 Section 3 Optical Mouse Transmitter 3 1 Introduction 17 3 2 System Overview 17 3 2 1 Microcontroller JB8 18 3 2 2 Optical Mouse Sensor 18 3 2 3 RF Tra...

Page 6: ...r JB16 36 7 2 2 RF Transmission 36 7 2 3 Voltage Regulator 37 Section 8 Receiver Firmware 8 1 Receiver Firmware Structure 39 8 2 USB Report 41 8 2 1 Input Report Example 43 8 3 Remote Wakeup 44 Sectio...

Page 7: ...ensed Industrial Scientific and Medical ISM band of 2400 2483 MHz All hardware schematic diagrams and firmware source codes are available as reference materials 1 2 Features High speed RF link in 2 4...

Page 8: ...ilar and consist of a RF transceiver module for half duplex transmission in 2 4 GHz frequency band a baseband IC for link layer access control and protocol handling The overall system operation I O in...

Page 9: ...detected by MCU and sent to the baseband IC in a parallel format All kinds of media access link layout control and data conversion in serial format are handled by the baseband IC The final data in ser...

Page 10: ...System Overview Designer Reference Manual DRM050 Rev 0 10 System Overview MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 11: ...RF transceiver consists of an RF transceiver module RFW102 and a link interface IC RFW D100 The RFW D100 links the MCU and the transceiver module When data is being transmitted from the mouse or keyb...

Page 12: ...uence Spread Spectrum DSSS pulse pipe The modulation scheme is 100 MCU GPIOs JB8 LJ24 3 3V DC DC Battery Keyboard Mouse RFW 102 Module Antenna RFW D100 Serial toparallel interface Parallel Add Databus...

Page 13: ...ully digital serial I O interface providing a simple 3 line interface Tx Rx is for controlling of the transceiver work in transmit or receive mode Act is used for switching the transceiver between wor...

Page 14: ...so it buffers the input through a 16 byte FIFO giving the MCU access the RFW D100 efficiently Instead of reading one byte per interrupt the MCU can read up to 16 bytes in each interrupt Below are the...

Page 15: ...e using The reference antenna of the RFWaves transceiver module RFW102 M used here is a special design printed circuit board differential loop antenna The purpose of this design is aimed at low cost s...

Page 16: ...RF Front End Designer Reference Manual DRM050 Rev 0 16 RF Front End MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 17: ...or this 2 4 GHz Wireless Optical Mouse application The main features of the reference design include 2 4 GHz RF Link 1 Mbps data rate 800 DPI Resolution Smart Power Management 3 2 System Overview The...

Page 18: ...sign for wireless optical mouse The communication between the sensor and the JB8 is through Serial Peripheral Interface with clock input at the SCLK pin and bidirection data interface at SDIO pin The...

Page 19: ...al will be further up converted into 2 4 GHz ISM band for final transmission 3 2 4 DC DC Converter The power supply for a handheld device should be able to keep the DC voltage output at a constant lev...

Page 20: ...use Transmitter Designer Reference Manual DRM050 Rev 0 20 Optical Mouse Transmitter MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freesc...

Page 21: ...e keyboard and the dongle through the baseband RFW D100 IC The MAC layer implements two interrupt functions from each of the MCUs The IRQ and one Timer Channel are used by the MAC Interface functions...

Page 22: ...imize the performance Figure 4 1 Firmware Structure MAIN PROGRAM INIT MAC TO TRANSMIT DATA POWER MANAGEMENT INITIATE SENSOR AND RF HARDWARE GET XY DISPLACEMENT GET Z DISPLACEMENT FROM SENSOR CHECK BUT...

Page 23: ...ion IRQ serves as the periodical wakeup signal when JB8 is in sleep mode The JB8 must check whether there is any new movement or if the buttons status changed IRQ ISR firmware will determine what appr...

Page 24: ...XY movement is continually monitored The Z movement and buttons activities are still monitored for every ms If no XY movement happens in 5 seconds it then enters Power Saving Stage Except for the 1 ms...

Page 25: ...tus Packet Size Reserved for Sequence Node ID Network ID byte4 Network ID byte3 Network ID byte2 Network ID byte1 Packet Size Y Displacement Z Displacement X Displacement Button Status Packet Size Res...

Page 26: ...mitter Firmware Designer Reference Manual DRM050 Rev 0 26 Mouse Transmitter Firmware MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www frees...

Page 27: ...V It contains enough I O pins for key matrix scanning The main features of the keyboard include 2 4 GHz RF Link 1 Mbps data rate Power management keys power wake and sleep support Multimedia keys supp...

Page 28: ...error checking The encoded data will be passed to the RF module for ASK modulation in IF band and frequency spreading with DSSS scheme The modulated signal will be further up converted into the 2 4 GH...

Page 29: ...andheld device should be able to keep the DC voltage output at a constant level even though the input battery voltage is continuously dropping down so a 3 3 V DC DC converter is designed for the whole...

Page 30: ...ard Transmitter Designer Reference Manual DRM050 Rev 0 30 Multimedia Keyboard Transmitter MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www...

Page 31: ...ction 4 1 MAC Layer Protocol for a description of this layer Figure 6 1 shows the flow of the main program The main tasks are to detect any key being pressed or released and then send the key code by...

Page 32: ...Break Make byte indicates whether the packet represents a Make key CONVERT SCAN KEY NO KEY ACTIVITY FOR 10 SECOND INITIALIZATION INITIALIZATION YES SCAN KEY MATRIX CONVERT SCAN KEY NO YES ENTER POWER...

Page 33: ...quence Node ID Network ID byte4 Network ID byte3 Network ID byte2 Network ID byte1 Packet Size Scan Code Break Make Byte Packet Size Reserved for Sequence Node ID Network ID byte4 Network ID byte3 Net...

Page 34: ...mitter Firmware Designer Reference Manual DRM050 Rev 0 34 Keyboard Transmitter Firmware MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www fr...

Page 35: ...Interface Devices HID applications such a mouse and keyboard The main features of the receiver include 2 4 GHz RF Link 1 Mbps data rate Fully USB specification 2 0 low speed compliant Windows 98 2000...

Page 36: ...signal will be down converted into IF band for de spreading with DSSS scheme and ASK demodulation The demodulated data in serial packet format will be converted back to parallel data and sent to the M...

Page 37: ...from USB interface is 5 V so a 3 3 V regulator is added to provide a correct voltage 3 3 V for baseband IC and RF module The JB16 is specially design for USB application so external regulated supply i...

Page 38: ...USB Receiver Designer Reference Manual DRM050 Rev 0 38 USB Receiver MOTOROLA Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 39: ...C908JB8 for more detail The main routine continually checks if there is any valid mouse or keyboard data from the MAC layer If so the data will be converted to USB report format and sent to the host v...

Page 40: ...X EP2 IN REPORT YES RF PACKET RESUME FROM HOST NO NO NO YES NO NEW RECEIVED DATA IN MAC LAYER DETECTED OR CONVERT ANY MOUSE IRQ ISR DETERMINE AND SERVE NO IRQ DRIVEN BY YES RECEIVED MOUSE NEW DISABLE...

Page 41: ...finition for Human Interface Device HID version 1 1 This interface also allows the host system to send the CAP NUM SCROLL lock status to JB16 as specified by the 1 byte output report see Table 8 2 It...

Page 42: ...able 8 5 Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 Scroll Lock Caps Lock Num Lock Table 8 2 Interface 0 Output Report Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 Report ID 1 1...

Page 43: ...it equals 1 since Wake key is defined as the bit 2 of the second byte Hot keys are reported through interface 1 with reported ID 2 For example if the hot key 0 and the hot key 17 are pressed the first...

Page 44: ...to be considered The first is the small wakeup duration at each IRQ wakeup For example if the receiver is sleeping while a packet arrives the transmitter will send out a second packet because there i...

Page 45: ...tter The DC DC converters regulators used in this reference design are for reference only customers can choose any converters regulators they prefer The LEDs for the sensor can be connected to the DC...

Page 46: ...er to RFWaves website for details and recommendations on RF circuitry customization http www rfwaves com 9 2 2 Firmware 9 2 2 1 Mouse Transmitter Set the timing parameters for power management 9 2 2 2...

Page 47: ...Freescale Semiconductor I Freescale Semiconductor Inc For More Information On This Product Go to www freescale com nc...

Page 48: ...rent applications and actual performance may vary over time All operating parameters including Typicals must be validated for each customer application by customer s technical experts Motorola does no...

Reviews: