at89rfd-11: usb mouse with flash memory reference design

24
AT89RFD-11: USB Mouse with Flash Memory Reference Design .............................................................................................. User Guide

Upload: others

Post on 11-Feb-2022

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AT89RFD-11: USB Mouse with Flash Memory Reference Design

AT89RFD-11: USB Mouse with Flash Memory Reference Design..............................................................................................

User Guide

Page 2: AT89RFD-11: USB Mouse with Flash Memory Reference Design

AT89RFD-11 User Guide 1

7648A–USB–06/06

Section 1Introduction ........................................................................................... 1-1

1.1 Features....................................................................................................1-11.2 Introduction ...............................................................................................1-11.3 Key Reference Design Objectives ............................................................1-2

Section 2Reference Design Overview ................................................................. 2-3

Section 3Theory of Operation.............................................................................. 3-5

3.1 Mouse Buttons ..........................................................................................3-53.2 Z-Wheel ....................................................................................................3-53.4 Sensor interface........................................................................................3-73.5 USB...........................................................................................................3-8

Section 4Firmware Architecture......................................................................... 4-15

Section 5Schematic & BOM .............................................................................. 5-17

Page 3: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Section 1Introduction

1.1 Features • One MCU = 2 devices (mouse and mass storage controllers) and one USB hub• No hub required• USB 2.0 Full Speed compliance• 1 ms minimum Polling Interval • Low Power bus-powered device• Supported by all Microsoft O/S from Windows® 2000 and later• 256 MB Nand Flash memory supported (driver supports memories up to 1GB)• High speed motion detection up to 20 ips (inches per second) and 8 G• Up to 800 CPI resolution• No mechanical moving parts• ISP (In System Programming) to upgrade the firmware• 2K E2PROM to store parameters• Project sources availble with royalty free licence agreement

1.2 Introduction This design guides describes the design of a composite device (mouse & mass storagedevice) using the AT89C5131A Atmel microcontroller and the Avago ADNS-3030 opti-cal sensor. The firmware implementation section describes the firmware architecture toimplement a composite device with the mouse and the memory functions. The Appendixcontains the hardware implementation and the BOM of this reference design.

AT89RFD-11 User Guide -1

7648A–USB–06/06

Page 4: AT89RFD-11: USB Mouse with Flash Memory Reference Design

A familiarity with the AT89C5131A-M microcontroller (datasheet available on atmel website www.atmel.com), the ADNS 3030 sensor (datasheet available on avago web sitewww.avagotech.com) and the USB specification (http://www.usb.org) is assumed.

1.3 Key Reference Design Objectives

1. Offer a complete solution based on a full speed mouse with a mass storage capability.

2. Highlight the AT89C5131A benifits to manage two devices simultaneously.3. Highlight the low power benifit of the ADNS 3030.4. Flash based development platform to facilitate customization and firmware

upgrade.

+ =

-2 AT89RFD-11 User Guide

7648A–USB–06/06

Page 5: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Section 2Reference Design Overview

The reference design offers a full speed mouse with a mass storage capability to allowthe user to save and exchange files using his mouse. This solution is based on a doubleenumeration (composite device) process to allow the management of both devices withone microcontroller the AT89C5131A-M. The mouse is based on the ADNS-3030 Avagosensor to collect the X, Y motion value. An optical quadrature encoder provides the Z-wheel movement. Each of the button switches is pulled up normally and provides aGround when depressed.

Figure 2-1. .Reference Design Overview

AT89C5131A-MATMEL

microcontroller

AVAGOADNS-3030

Optical MouseSensor

MOSIMISO

SCLK

STDW

NCS

Z OpticsWheel

Quadraturesignals

Left Button

Middle Button

Right Button

Nand FlashMemory

I/Os

Control&

command

MOTION

AT89RFD-11 User Guide -3

7648A–USB–06/06

Page 6: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Section 3Theory of Operation

3.1 Navigation Technology

The heart of the optical navigation sensor is a CMOS image array. An LED and an opti-cal system illuminate the surface that the sensor is navigating on. The texture of thesurface casts bright and dark spots forming distinct images as the sensor is movedacross the surface. A Digital Signal Processing (DSP) engine and its built-in algorithmevaluate these images and determine the magnitude and direction of the movement.The motion data is made available in the delta_X and delta_Y registers for the systemcontroller to retrieve. An extensive power saving topology is implemented within theADNS-3030 navigation engine. A Motion pin (output) is available to act as the systeminterrupt. As long as there is no motion the system can remain in Sleep mode allowingmaximum battery power saving. Based on the last detected motion the optical naviga-tion engine enters various power saving modes when no new motion occurs. Thesepower saving features are particularly beneficial for wireless.

Figure 3-1.

AT89RFD-11 User Guide -5

7648A–USB–06/06

Page 7: AT89RFD-11: USB Mouse with Flash Memory Reference Design

3.2 Sensor This reference design features the ADNS-3030 optical navigation engine. It contains anImage Acquisition System (IAS), a Digital Signal Processor (DSP), and a three-wireSerial Peripheral Interface consists of the serial clock (SCLK), the master-in/slave-out(MISO) and the master-out/slave-in (MOSI). In addition two signals, Motion, is an outputintended to act as an interrupt to the microcontroller whenever the ADNS-3030 sensesmotion, and SHTDWN, is an input pin to set the sensor in shutdown mode. When themouse is moved the ADNS-3030 alerts the system controller by activating the Motionsignal. At the same time the ADNS-3030 accumulates the horizontal and vertical dis-placements (count per inch, or cpi) in its Delta_X and Delta_Y registers respectively.The ADNS-3030 deactivates the Motion signal as soon as movement stops. The mousemotion can be also detected by checking if the MOT bit (bit 7 in Motion register) is set.The SmartSpeed technology automatically optimizes the frame rate by examining theacquired images of the surface. It also manages the integrated LED driver to coordinatewith the shutter. The system controller reads the motion information and reports it to thePC to update the cursor position. The advantages of using ADNS-3030 optical sensorare the efficient power management, high tracking accuracy, and efficient communica-tions with the optical sensor via the full duplex SPI port. To learn more about sensor’stechnical information, please visit the Avago web site at http://www.avagotech.com

Figure 3-2. Sensor interface

3.3 Mouse Buttons Mouse buttons are connected as standard switches. These switches are pulled up bythe pull up resistors inside the microcontroller. When the user depresses a button, theswitch will be closed and the pin will be pulled LOW to GND. A LOW state at the pin isinterpreted as the button being depressed. A HIGH state is interpreted as the button hasbeen released or the button is not being depressed. In this reference design there arethree switches: left, Z-wheel (middle), and right.

AT89C5131A-MATMEL

microcontroller

AVAGOADNS-3030

Optical MouseSensor

MOSIMISO

SCLK

STDW

NCS

MOTION

-6 AT89RFD-11 User Guide

7648A–USB–06/06

Page 8: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Figure 3-3. Mouse Buttons

3.4 Z-Wheel The motion of Z-wheel is detected using the quadrature signal generated by optical sen-sors. Two phototransistors are connected in a source-follower configuration formingChannel A and Channel B. An infrared LED shines, causing the phototransistors to turnon. In between the phototransistors and LED is a pinwheel that turns on the mouse ballrollers. The fan of this pinwheel is mechanically designed to block the infrared light suchthat the phototransistors are turned on and off in a quadrature output pattern. Everychange in the phototransistor outputs represents a count of mouse movement. Compar-ing the last state of the optics to the current state derives directional information. Asshown in the Figure below, rotating the wheel forward produces a unique set of statetransitions, and rotating the wheel backward produces another set of unique statetransitions.

Figure 3-4. Optics Quadrature Signal Generation

Left Button

Middle Button

Right Button

AT89C5131A-MP1_0

P1_2

P1_1

AT89RFD-11 User Guide -7

7648A–USB–06/06

Page 9: AT89RFD-11: USB Mouse with Flash Memory Reference Design

3.5 Memory The target memory used with this reference design is a Nand Flash memory (MicronM29F2G08AAB) of 256 MBytes. This memory allow the user to save and exchange dataand files with any PC.

The Nand Flash memory is connected to the AT89C5131A-M as below. P0 and P2 portsare mandatory in order to access the Nand Flash using MOVX instructions.

Figure 3-5. Nand Flash memory interface

3.6 USB

3.6.1 Multiple Enumeration (composite device)

Thanks to its seven endpoints, the AT89C5131A-M can manage several USB devicessimultanuously using the multiple enumerations functionality (composite device). Thisfunctionnality allows the user to declare one device with several interfaces. Each inter-face is seen and managed as a stand-alone device from the PC point of view. In ourcase we declare two interfaces: one to manage the mass storage device and the otherto manage the HID mouse device.

To be able to manage two interfaces, the microcontroller should have at the least a con-trol endpoint and the sum of the endpoints required by both interfaces. For example forthis reference design we need 1 endpoint for control transfer, 1 endpoint for mouse and2 endpoints for mass storage, which means that we need 4 endpoints to make thisapplication.

P0.0

P0.1

P0.2

P0.3

P0.4

P0.5

P0.6

P0.7

AVs s Vss

Xtal2

Xtal124

MHz

2 2p F

2 2p F

100

27

27

1.5k

D-

D+

Vref

PLLF1 0n F 2 .2 nF

I /O .0

I /O.1

I /O.2

I /O.3

I /O.4

I /O.5

I /O.6

I /O.7

M iC R ONM 29F 2G08A A BA T 89C 5131A -M

Vs s

P2.0P2.1

CLEALE

US B c onnec tor

3.3Vregulator

D-

D+

Vbus

GND

2.2k

Vcc

Vcc

R/B

1 0µFTan ta l.

P3.7

P2.3

P2.4

VDD AVD D

1µF

10 0n F

Vc c

P3.3

Vcc

EA

100k

P3.0

W ri teP rotec tion

2.2k

WE

CE

RE

P3.6

PSEN

ISP

2.2k

optional

10 µFTan ta l.

10k

Vcc

WP

U c ap

-8 AT89RFD-11 User Guide

7648A–USB–06/06

Page 10: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Figure 3-6. Multiple Enumeration

From the PC point of view, the reference design is presented as two stand-alonedevices. The figure below shows how the device appears in the device manager.

Devicedescriptor

Configurationdescriptor

Interfacedescriptor

Mass Storage

InterafcedescriptorHID mouse

Endpoint INdescriptor

HIDdescriptorEndpoint OUT

descriptorEndpoint INdescriptor

Reportdescriptor

Physicaldescriptor

Mass StorageDevice

Mouse Device

AT89RFD-11 User Guide -9

7648A–USB–06/06

Page 11: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Figure 3-7. Device Manager Multiple Enumeration

3.6.2 HID Mouse Overview The USB mouse application is a simple data exchange between the PC and the mouse.

The PC asks the mouse if there is a new data available each P time (polling intervaltime), the mouse will send the data if it is available, otherwise it will send a NAK (NoAcknowlodge) to tell the PC that there is no data available now.

The data sent to the PC is called report. This report has the structure below :

Figure 1. USB report structure

The X, Y are collected thanks to the sensor.

-10 AT89RFD-11 User Guide

7648A–USB–06/06

Page 12: AT89RFD-11: USB Mouse with Flash Memory Reference Design

The button values are updated following the button switches state (1 if depressed, 0 ifreleased).

The scroll wheel value is updated using the motion of Z-Wheel as explained in section4.2

3.6.3 Mass Storage Overview

The Mass Storage application is simply file transfer between the PC and the device.

The USB data exchange for this application is based on the SCSI (Small Computer Sys-tem Interface) commands which use two bulk endpoints (one IN and one OUT) toperform the status and data transfer. The endpoint 0 (control endpoint) is used only toperform the enumeration process, the errors management and to determine the LUN(Logical Unit Number) value.

In other words, the Mass Storage application is a set of SCSI commands send by thehost to manage the file transfers.

The Mass Storage class allows one device to manage several memories at the sametime thanks to the LUN.

Figure 3-8. Mass Storage Application Overview

The standard enumeration process (USB chapter 9 support) is performed through thedefault control endpoint. This process consists of a set of parameters sent by the deviceto the host to identify the device class and load the appropriate drivers. This parametersare called the descriptors.

The SCSI command are performed through both endpoints (IN or OUT). Each SCSIcommand is decoded and transmitted to the appropriate memory through a commandset (Read, Write, is memory present, is memory write protected,...).

The memory answers are converted in SCSI status before being wrapped in USB CSW(Command Status Wrapper) and sent to the USB Host controller. Because the USB busis a single master bus (the USB Host), each data transfer is initiated by the USB Host,following a specific Command-Data-Status flow (see figure below)

AT89RFD-11 User Guide -11

7648A–USB–06/06

Page 13: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Figure 3-9. Command/Data/Status Flow

The CBW (Command Block Wrapper) contains some USB information such as the LUNaddressed, the length of the SCSI command, and of course, it also contains the SCSIcommand for the memory.

The CSW (Command Status Wrapper) contains the SCSI status. If the status is GOOD,the Host will send the next following command. If the status is different from GOOD(FAILED, PHASE ERROR,...), the host will ask for more information regarding the errorby sending a REQUEST SENSE command.Note: Please refer to Mass Storage Application Note (available on www.atmel.com) for more

details

3.6.4 Power Management Although this is not a wireless design it is worthwhile to mention the low-power feature ofthe ADNS-3030.

The ADNS-3030 has three power-saving modes. Each mode has a different motiondetection period, affecting response time to mouse motion (Response Time). The sen-sor automatically changes to the appropriate mode, depending on the time since the lastreported motion (Downshift Time). The parameters of each mode are shown in the fol-lowing table. Mode Response Time (nominal) Downshift Time (nominal)

Each rest mode successively decreases in power consumption. The ADNS-3030 con-sumes typically 32 µA in Rest 3 mode. Parameter Symbol Minimum Typical MaximumUnits Notes DC Supply Current In various modes.

Mode Response Time (nominal) Downshit Time (nominal)

Rest1 16.5 ms 237 ms

Rest 2 82 ms 8.39 s

Rest 3 410 ms 504 s

-12 AT89RFD-11 User Guide

7648A–USB–06/06

Page 14: AT89RFD-11: USB Mouse with Flash Memory Reference Design

3.6.4.1 Motion Pin Timing The motion pin is a level-sensitive output that signals the microcontroller when motionhas occurred. The Motion pin is lowered whenever the Motion bit is set; in other words,whenever there is data in the Delta_X or Delta_Y registers. Clearing the Motion bit (byreading Delta_Y and Delta_X, or writing to the Motion register) will set the Motion pinhigh. This feature further contributes to the system power saving. As long as the ADNS-3030 is not sensing motion the microcontroller can enter its own sleep mode as long asit is capable of waking up from an interrupt by the Motion pin.

3.6.4.2 LED Mode For power savings, the LED will not be continuously on. ADNS-3030 will flash the LEDonly when needed. This is fully automated and managed by the ADNS-3030. As a resultthe ADNS-3030 consumes only about 4 mA of average current while in the active mode.

Parameter Symbol Minumum Typical Maximum Units Notes

DC Supply IDD 3.9 13

mA

Average current,including LED current.No load on MISO, MOTION.

Current In 0.63 2.3

Various 0.13 0.5

Modes 0.032 0.15

AT89RFD-11 User Guide -13

7648A–USB–06/06

Page 15: AT89RFD-11: USB Mouse with Flash Memory Reference Design

3.6.5 ISP The ISP (In System Programming) allows the user to upgrade the firmware using theUSB port . To use this feature the user needs Fl ip software (avai lable onwww.atmel.com).

Please follow the below instruction to put the reference design in ISP mode:1. Unplug the reference design from the PC.2. Push the button located on the bottom of the reference desgin (see the figure

below)

Figure 3-10. ISP Button

3. Plug the reference design to the PC4. Release the button5. Check the Device Manager, and you should see the same icon (Jungo® icon) as

shown in the figure below. If not, start again from the step1 6. Launch Flip software and start upgrading your firmware

ISP Button

-14 AT89RFD-11 User Guide

7648A–USB–06/06

Page 16: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Figure 3-11. Device Manager

AT89RFD-11 User Guide -15

7648A–USB–06/06

Page 17: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Section 4Firmware Architecture

The firmware of this reference design is written in C language. The main files areexplained below:

• usb_task.c: This file manages the USB enumeration, the SCSI command, the USB mouse motion (X,Y motion, buttons click, scroll wheel motion) and the USB events (suspend, resume, reset...)

• usb_enum.c: This file contains the USB endpoint 0 management routines corresponding to the standard enumeration process (refer to chapter 9 of the USB specification). This file calls routines of the usb_user_enum.c file for non-standard request management. The enumeration parameters (descriptor tables) are contained in the usb_user_configuration.c file.

• usb_user_enum.c: This file contains the non-standard USB requests.• usb_user_configuration.c: This file contains the enumeration parameters (USB

descriptors)• sensor.c: This file contains the functions to initialize the sensor and the wheel,

manage the sensor access (read, write) and the wheel motion detection.• ctrl_access.c: This file manages the interface between the USB and the target

memory using the LUN (Logical Unit Number).• nf.c: This file contains the high level NF with 2Kb page routines• nf_mem.c: This file contains the interface routines of Nand Flash memory• The figure hereunder shows the firmware architecture implementation

AT89RFD-11 User Guide -17

7648A–USB–06/06

Page 18: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Figure 4-1. Firmware Architecture Implementation

USB enumeration management(usb_user_enum.c, usb_enum.c,

usb_user_configuration.c,scsi_decoder.c)

usb driver (usb_drv.c)MCU driver (mcu_drv.c)

SPI driver (spi_lib.c)Nand Flash driver (nf_drv.c)

appl

icat

ion

API

Driv

ers

Har

dwar

e

MCU/Mouse/Memoryhardware

sensor & wheelmanagement

(sensor.c)

tasks management(usb_task.c)

-enumeration process

-Mass Storage SCSI command management

-USB mouse report management

usb_task()-polling call

Is_usb_mouse_event()-interrupt call each SOF (1ms)

-Check if mouse motion OK-check if button pressed or released-check if wheel motion OK-Fill the USB mouse report out

-Enumeration process management-SCSI command management

-USB requests management-USB descriptors declaration-SCSI commands decoder

-sensor and wheel initialization-read and write sensor functions-wheel interrupt management

memory management(ctrl_access.c, nf.c,

nf_mem.c)-manage the access to the memory-manage the NF memory state,read, write...

-18 AT89RFD-11 User Guide

7648A–USB–06/06

Page 19: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Section 5Schematic & BOM

Vcc

Vcc

Vcc

P1

_4

P1

_3

P3

_4

P1

_6

P1

_7

P1

_5

C2

10

nF

C2

10

nF

C4

10

nF

C4

10

nF

C3

FC

31

μF

C1 1μ

F

C1 1μ

F

NC

S1

MIS

O2

SC

LK

3

MO

SI

4

MO

TIO

N5

XY

_LE

D6

LE

D_G

ND

7

NC

8

AG

ND

9

SH

TD

WN

10

NC

20

AG

ND

19

NC

18

NC

17

GN

D16

VD

D15

AG

ND

14

GN

D13

GN

D12

AV

DD

11

U1 AD

NS

30

30

U1 AD

NS

30

30

R1

10

R1

10

C6

10

nF

C6

10

nF

C5 1μ

F

C5 1μ

F

D1

HL

MP

_E

D8

0

D1

HL

MP

_E

D8

0

AT89RFD-11 User Guide -19

7648A–USB–06/06

Page 20: AT89RFD-11: USB Mouse with Flash Memory Reference Design

_E

A

_EA

XT

AL

1

_PSEN

PLLF

XT

AL

2

XT

AL

2

XT

AL

1

_P

SE

N

UC

AP

UC

AP

PL

LF

/RS

T

/RS

T

VC

CA

VC

C

AV

SS

AV

CC

Vcc

Vcc

Vcc

Vcc

Vcc

P3

_6

P0

_7

P0

_6

P0

_5

P0

_4

P0

_3

P0

_2

P0

_1

P2

_3

P2

_4

P3

_0

P1

_0

P1

_1

P1

_2

P3_2P3_3P3_4P3_5

VREFD+D-

P3

_5

P3

_3

P3

_2

P1_7P1_6P1_5

P2_1P2_0P0_0P1_4P1_3P1_2P1_1P1_0

P3

_7

Wheel

Smaller Swith

possible (Only

for ISP

programming)

Close to μC

Close to μC

Close to μC

C9

F

C9

F

R2

2.2

KR

22

.2 K

C8

F

C8

F

SW

1

ISP

SW

1

ISP

Y1

CR

YS

TA

L 2

4M

Hz

Y1

CR

YS

TA

L 2

4M

Hz

C1

31

0n

FC

13

10

nF

R6

4K

7R

64

K7

R3

10

KR3

10

K

R7

10

0

R7

10

0

C1

0

22

pF

C1

0

22

pF

C1

4

2.2

nF

C1

4

2.2

nF

12

SW

4

Scro

ll

SW

4

Scro

ll

C1

21

0n

FC

12

10

nF

12

SW

3

Rig

ht

SW

3

Rig

ht

R4

10

0R

41

00

VC

C2

QA

1

QB

3

U3

MID

-95

A3

LH

U3

MID

-95

A3

LH

R5 4

K7

R5 4

K7

12

SW

2

Le

ft

SW

2

Le

ft

D2

MIE

-11

4A

1

D2

MIE

-11

4A

1

P2.0/A8/D856

P2.1/A9/D957

P2.2/A10/D1058

P1.5/CEX2/KIN5/MISO59

P1.6/CEX3/KIN6/SCK60

P1.7/CEX4/KIN7/MOSI61

P4.0/SCL62

P4.1/SDA63

P2.3

/A11/D

11

2

P2.4

/A12/D

12

3

P2.5

/A13/D

13

4

XT

AL2

5

XT

AL1

6

P2.6

/A14/D

14

7

P2.7

/A15/D

15

8

VD

D9

AV

DD

10

UC

AP

11

AV

SS

12

P3.0

/RxD

14

PLLF19

D-20

D+21

VREF22

UVSS23

EA24

ALE25

PSEN26

P3.1/TxD27

P3.2/INT028

P3.3/INT1/LED029

P3.4/T030

P3.5/T1/LED131

nc11

34

P3.6

/WR

/LE

D2

35

P0.7

/AD

7/D

736

P0.6

/AD

6/D

637

P0.5

/AD

5/D

538

P3.7

/RD

/LE

D3

39

P0.4

/AD

4/D

440

VS

S42

P0.3

/AD

3/D

343

RS

T44

P0.2

/AD

2/D

245

P0.1

/AD

1/D

146

nc13

47

P0.0/AD0/D055

P1.4/CEX1/KIN454

P1.3/CEX0/KIN353

P1.2/ECI/KIN252

P1.1/T2EX/KIN1/SS51

P1.0/T2/KIN050

nc1664

nc1

1

nc1549

nc14

48

nc12

41

nc10

33

nc932

nc718

nc617

nc5

16

nc4

15

nc3

13

U2

AT

89

C5

13

1A

-M_

VQ

FP

64

U2

AT

89

C5

13

1A

-M_

VQ

FP

64

C1

1

22

pF

C1

1

22

pF

C7

10

0n

F

C7

10

0n

F

-20 AT89RFD-11 User Guide

7648A–USB–06/06

Page 21: AT89RFD-11: USB Mouse with Flash Memory Reference Design

54

32

Vcc

Vcc

P0

_0

P0

_1

P0

_2

P0

_3

P0

_4

P0

_5

P0

_6

P0

_7

P2

_0

P2

_1

P2

_3

P3

_7

P3

_6

P2

_4

C1

51

00

nF

C1

51

00

nF

R8

10

K

R8

10

K

C1

61

00

nF

C1

61

00

nF

/CE

9

/RE

8

/WE

18

/WP

19

ALE

17

CLE

16

IO7

44

IO6

43

IO5

42

IO4

41

IO3

32

IO2

31

IO1

30

IO0

29

RD

Y/B

7

VCC37

VCC12

VSS36

VSS13

U4 M2

9F

2G

08

AA

B /

MIC

RO

N

U4 M2

9F

2G

08

AA

B /

MIC

RO

N

AT89RFD-11 User Guide -21

7648A–USB–06/06

Page 22: AT89RFD-11: USB Mouse with Flash Memory Reference Design

D+

D-

VR

EF

Vb

us

US

B_

CO

N_

D-

US

B_

CO

N_

D+

GN

D

Vcc V

RE

F

D+

D-3.3V

See recommendations folder

1 2 3 4

J1

Ma

le H

ea

de

r :

Mo

lex 5

32

61

-05

71

J1

Ma

le H

ea

de

r :

Mo

lex 5

32

61

-05

71

IN3

GND2

OU

T1

U5

L7

8L

33

ST

M S

OT

89

U5

L7

8L

33

ST

M S

OT

89

R1

02

7R

10

27

R1

12

7R

11

27

C1

81

00

nF

C1

81

00

nF

R9

1.5

KR

91

.5 K

C1

7

F

C1

7

F

-22 AT89RFD-11 User Guide

7648A–USB–06/06

Page 23: AT89RFD-11: USB Mouse with Flash Memory Reference Design

5.1 Bill Of Materials

Item QTY Description Value Designators1 6 Capacitor 1 µF, 10%, Tantalum, 16V C1, C3, C5, C8, C9, C172 2 Capacitor 22 pF C10, C113 5 Capacitor 10 nF, 10% C2, C4, C6, C12, C134 4 Capacitor 100 nF C7, C15, C16,C185 1 Capacitor 2.2 nF, 10% C146 1 LED Navigation D1 7 1 LED IR, Scroll wheel D2 8 1 Connector 4-pin Male Header J19 Cable assembly USB, Type A to pigtail, Not on schematic

10 1 Connector Housing 4 position, DO NOT INSTALL Not on schematic11 4 Terminal Crimp, install on Item 9 Not on schematic12 1 Resistor (0805) 10 R113 1 Resistor (0805) 2.2 k R214 1 Resistor (0805) 100 R415 2 Resistor (0805) 4.7 k R5, R616 2 Resistor (0805) 10 k R3, R817 1 Resistor (0805) 100, 10% R718 1 Resistor (0805) 1.5 k R919 2 Resistor (0805) 27, 1% R10, R1120 1 Switch PUSH-BUTTON SW121 1 Switch Left SW222 1 Switch Right SW323 1 Switch Scroll SW424 1 IC Optical navigation sensor U125 1 IC Microcontroller U226 1 IC Quadrature encoder U327 1 IC Flash memory, 2G U428 1 IC Voltage regulator U529 1 Crystal 24 MHz Y130 1 LED clip not shown on schematic31 1 Lens not shown on schematic

AT89RFD-11 User Guide -23

7648A–USB–06/06

Page 24: AT89RFD-11: USB Mouse with Flash Memory Reference Design

Printed on recycled paper.

7648A–USB–06/06

© Atmel Corporation 2006. All rights reserved. Atmel®, logo and combinations thereof, are registered trademarks, and Everywhere You Are® are thetrademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others.

Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to anyintellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDITIONS OFSALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTYRELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAM-AGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THEUSE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations orwarranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions atany time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically providedotherwise, Atmel products are not suit-able for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to sup-port or sustain life.

Atmel Corporation Atmel Operations2325 Orchard ParkwaySan Jose, CA 95131, USATel: 1(408) 441-0311Fax: 1(408) 487-2600

Regional HeadquartersEurope

Atmel SarlRoute des Arsenaux 41Case Postale 80CH-1705 FribourgSwitzerlandTel: (41) 26-426-5555Fax: (41) 26-426-5500

AsiaRoom 1219Chinachem Golden Plaza77 Mody Road TsimshatsuiEast KowloonHong KongTel: (852) 2721-9778Fax: (852) 2722-1369

Japan9F, Tonetsu Shinkawa Bldg.1-24-8 ShinkawaChuo-ku, Tokyo 104-0033JapanTel: (81) 3-3523-3551Fax: (81) 3-3523-7581

Memory2325 Orchard ParkwaySan Jose, CA 95131, USATel: 1(408) 441-0311Fax: 1(408) 436-4314

Microcontrollers2325 Orchard ParkwaySan Jose, CA 95131, USATel: 1(408) 441-0311Fax: 1(408) 436-4314

La ChantrerieBP 7060244306 Nantes Cedex 3, FranceTel: (33) 2-40-18-18-18Fax: (33) 2-40-18-19-60

ASIC/ASSP/Smart CardsZone Industrielle13106 Rousset Cedex, FranceTel: (33) 4-42-53-60-00Fax: (33) 4-42-53-60-01

1150 East Cheyenne Mtn. Blvd.Colorado Springs, CO 80906, USATel: 1(719) 576-3300Fax: 1(719) 540-1759

Scottish Enterprise Technology ParkMaxwell BuildingEast Kilbride G75 0QR, Scotland Tel: (44) 1355-803-000Fax: (44) 1355-242-743

RF/AutomotiveTheresienstrasse 2Postfach 353574025 Heilbronn, GermanyTel: (49) 71-31-67-0Fax: (49) 71-31-67-2340

1150 East Cheyenne Mtn. Blvd.Colorado Springs, CO 80906, USATel: 1(719) 576-3300Fax: 1(719) 540-1759

Biometrics/Imaging/Hi-Rel MPU/High Speed Converters/RF Data-com

Avenue de RochepleineBP 12338521 Saint-Egreve Cedex, FranceTel: (33) 4-76-58-30-00Fax: (33) 4-76-58-34-80

Literature Requestswww.atmel.com/literature