background image

7

Figure 6. Reference Design Mouse Software Architecture

CPU Main Processing Loop

(1) Process MOTION data

(2) Process BINDING packet

(3) Process BUTTON data

(4) Update SCROLL WHEEL

QEP state machine

(5) Send out WHEEL position

(if changed since last check)

(6) If 10 mins inactivity, go into

DEEP SLEEP mode, else

repeat loop

Sensor

MOTION

Port 2

Interrupt

Transmitter Module

(1) Build raw data packet

(2) Submit packet to Tx queue

(3) Turn RF transmitter ON

(3) Shift data out serially according to Miller

encoding scheme

(4) Turn RF transmitter OFF

LEFT Button

Port 1 Interrupt

PORT 1 Interrupt

Service Routine

WHEEL Button

Port 1 Interrupt

 RIGHT Button

Port 1 Interrupt

Scroll Wheel Module

(1) Turn Wheel LED ON

(2) Read scroll wheel position

(3) Turn Wheel LED OFF

(4) Update QEP state machine

CONNECT Button

Port 2 Interrupt

PORT 2 Interrupt

Service Routine

 Periodic

TIMER_A1

Interrupt

(every 2 msec)

TIMER_A0 Interval Interrupt

WatchDog Interval Interrupt

(every 250 milliseconds)

WDT Interrupt Service Routine

(1) Trigger WHEEL position check

(2) Decrement Timeout counter

Firmware Implementation

The firmware for this reference design is written in the C language. 
The following files are required to compile the mouse firmware.

  MSP430_AVAGO_ADNS-3040.c 

– main mouse firmware

  CRC-8.c 

– Routines for CRC-8 generation

  wm430_buttons.c 

– used to store button state data for tx message

  wm430_system.c

  wm430_transmitter.c 

– mplements the RF transmitter protocol

  wm430_wheel.c 

– Implements the logic to detect scroll wheel movement

  _FSKDATAPLUSENCODING 

– used to enable MSP430 to shift data out via FSK scheme by toggling the 

RF_DATA line at specific bit periods

The user should insert the receiver dongle into an available USB port at the computer. Install two AA alkaline batteries 

into the battery compartment. Pay special attention to the polarities of the two batteries. The reference design mouse 

is designed to work with two AA batteries in parallel or just one AA battery. Press the connect button on the receiver 

dongle and while the LEDs are flashing press the connect button at the underside of the mouse. When the mouse is 

properly “connected” to the dongle every time it receives a transmission from the mouse the green LED lights up.

Summary of Contents for ADNK-3043-ND24

Page 1: ...tech com USB controller data sheet can be found on the Cypress web site www cypress com The Nordic transmitter and receiver data sheets are available on www nordicsemi no Key reference design objectiv...

Page 2: ...ature encoder provides the Z wheel movement Each of the button switches is pulled up normally and provides a Ground when pressed The MAX1722 boost regulator maintains the 2 7 V operating voltage for t...

Page 3: ...the microcontroller whenever the ADNS 3040 senses motion When the mouse is moved the ADNS 3040 alerts the system controller by activating the Motion signal triggering an interrupt service routine At t...

Page 4: ...des a dedicated hardware based Serial Peripheral Interface SPI The three wire interface supports byte serial communication in either Master or Slave mode In this reference design the MSP430F1222 alway...

Page 5: ...ing Mode The receiver dongle is hot pluggable into the USB port The PC does not need to be powered off when plugging or unplugging the receiver dongle for the evaluation mouse Figure 4 Exploded view o...

Page 6: ...ode for added features Programming support and programmer adaptors for the MSP430 can be found through TI or through other 3rd party programming tool companies For further informa tion on this product...

Page 7: ...L position check 2 Decrement Timeout counter Firmware Implementation The firmware for this reference design is written in the C language The following files are required to compile the mouse firmware...

Page 8: ...T XIN P3 7 P3 5 P3 4 P2 5 U102 P3 0 P2 2 P1 3 P1 2 P1 1 P1 0 P2 4 P2 3 P2 1 P2 0 P3 3 P3 1 P3 2 P3 6 R104 100k C101 0 01uF 0 1uF C102 GND VBATT Vdd T101 Battery spring Battery spring Battery spring T1...

Page 9: ...SCLK NCS GND Vdd 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 Vss_PA ANT1 ANT2 Vdd_PA Vdd IREF Vss PWR_UP CE CS CLK DIN Vdd XC1 XC2 Vss R202 22K C211 2 2nF C212 22pF 22nH L203 3 6nH L201 1pF C202 1pF C201...

Page 10: ...0 8 P2 1 9 P2 2 10 Vcc 11 D 12 D 13 P1 1 14 P0 7 15 P0 6 16 P0 5 17 P0 4 18 U100 CY7C63231A USB5V D101 Green DOUT2 5V CLK2 5V DR2 5V CE 5V CS 5V DR1 5V CLK1 5V DATA 5V LED C110 10nF C109 4 7 uF R110 1...

Page 11: ...R124 Resistor 0805 240 1 R125 Resistor 0805 27K 2 R107 R108 Resistor 0805 1 1 M 1 R109 Resistor 0805 1 0 M 1 R110 Resistor 0805 10 1 R111 Resistor 0805 0 1 R106 Resistor 0805 No Load 1 R122 Ceremic ca...

Page 12: ...PO 0402 1pF 2 C201 C202 Ceramic Capacitor 50v NPO 0402 22pF 3 C208 C207 C212 Ceramic Capacitor 50v X7R 0402 2 2 nF 1 C211 Ceramic Capacitor 50V X7R 0402 10uF 1 C210 Inductor 3 6 nH 1 L201 Inductor 22...

Page 13: ...nF 2 C301 C302 LED 1206 Green 1 D101 ACON USB Plug Freber FCMP04208 CON4 1 J101 Panasonic ELJRE3N3ZF2 3 3nH 1 L1 Panasonic ELJRE10NJF2 10nH 1 L2 Panasonic ELJRE5N6JF2 5 6nH 1 L3 Panasonic ELJRE5N6JF2...

Page 14: ...e Feature Figure C1 Illustration of base plate mounting features ADNS DIMENSIONS 31 5 x 17 0 mm ADNS 3120 001 LEN RECESS DIMENSIONS 31 5 x 17 0 mm KEY PYRAMID FEATURE 2 50mm HEIGHT MAX KEY PYRAMID FEA...

Page 15: ...dic Semiconductor The following Nordic applica tion note details the hardware design and firmware implementation The application note can be downloaded from www nordicsemi no Universal low cost USB Du...

Page 16: ...A RF Transceiver Datasheet h Nordic Semiconductor nRF2402 RF Transmitter Datasheet Hardware Support Files a ADNK 3043 ND24 BOM List b ADNK 3043 ND24 Schematic c ADNK 3043 ND24 Gerber File d IGES Base...

Reviews: