background image

 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 the

trademarks 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 any

intellectual 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 OF

SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY
RELATING 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 THE
USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

 Atmel makes no representations or

warranties 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 at
any 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 Operations

2325 Orchard Parkway
San Jose, CA 95131, USA
Tel: 1(408) 441-0311
Fax: 1(408) 487-2600

Regional Headquarters

Europe

Atmel Sarl
Route des Arsenaux 41
Case Postale 80
CH-1705 Fribourg
Switzerland
Tel: (41) 26-426-5555
Fax: (41) 26-426-5500

Asia

Room 1219
Chinachem Golden Plaza
77 Mody Road Tsimshatsui
East Kowloon
Hong Kong
Tel: (852) 2721-9778
Fax: (852) 2722-1369

Japan

9F, Tonetsu Shinkawa Bldg.
1-24-8 Shinkawa
Chuo-ku, Tokyo 104-0033
Japan
Tel: (81) 3-3523-3551
Fax: (81) 3-3523-7581

Memory

2325 Orchard Parkway
San Jose, CA 95131, USA
Tel: 1(408) 441-0311
Fax: 1(408) 436-4314

Microcontrollers

2325 Orchard Parkway
San Jose, CA 95131, USA
Tel: 1(408) 441-0311
Fax: 1(408) 436-4314

La Chantrerie
BP 70602
44306 Nantes Cedex 3, France
Tel: (33) 2-40-18-18-18
Fax: (33) 2-40-18-19-60

ASIC/ASSP/Smart Cards

Zone Industrielle
13106 Rousset Cedex, France
Tel: (33) 4-42-53-60-00
Fax: (33) 4-42-53-60-01

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

Scottish Enterprise Technology Park
Maxwell Building
East Kilbride G75 0QR, Scotland 
Tel: (44) 1355-803-000
Fax: (44) 1355-242-743

RF/Automotive

Theresienstrasse 2
Postfach 3535
74025 Heilbronn, Germany
Tel: (49) 71-31-67-0
Fax: (49) 71-31-67-2340

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

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

Avenue de Rochepleine
BP 123
38521 Saint-Egreve Cedex, France
Tel: (33) 4-76-58-30-00
Fax: (33) 4-76-58-34-80

Literature Requests

www.atmel.com/literature

Summary of Contents for AT89RFD-11

Page 1: ...AT89RFD 11 USB Mouse with Flash Memory Reference Design User Guide...

Page 2: ...1 1 1 2 Introduction 1 1 1 3 Key Reference Design Objectives 1 2 Section 2 Reference Design Overview 2 3 Section 3 Theory of Operation 3 5 3 1 Mouse Buttons 3 5 3 2 Z Wheel 3 5 3 4 Sensor interface 3...

Page 3: ...r 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...

Page 4: ...www 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 Hi...

Page 5: ...es with one microcontroller the AT89C5131A M The mouse is based on the ADNS 3030 Avago sensor to collect the X Y motion value An optical quadrature encoder provides the Z wheel movement Each of the bu...

Page 6: ...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 system controller to retrieve An extensive power...

Page 7: ...automatically optimizes the frame rate by examining the acquired images of the surface It also manages the integrated LED driver to coordinate with the shutter The system controller reads the motion...

Page 8: ...e fan of this pinwheel is mechanically designed to block the infrared light such that the phototransistors are turned on and off in a quadrature output pattern Every change in the phototransistor outp...

Page 9: ...device from the PC point of view In our case we declare two interfaces one to manage the mass storage device and the other to manage the HID mouse device To be able to manage two interfaces the micro...

Page 10: ...alone devices The figure below shows how the device appears in the device manager Device descriptor Configuration descriptor Interface descriptor Mass Storage Interafce descriptor HIDmouse Endpoint IN...

Page 11: ...mouse The PC asks the mouse if there is a new data available each P time polling interval time the mouse will send the data if it is available otherwise it will send a NAK No Acknowlodge to tell the...

Page 12: ...nage the file transfers The Mass Storage class allows one device to manage several memories at the same time thanks to the LUN Figure 3 8 Mass Storage Application Overview The standard enumeration pro...

Page 13: ...3 6 4 Power Management Although this is not a wireless design it is worthwhile to mention the low power feature of the ADNS 3030 The ADNS 3030 has three power saving modes Each mode has a different m...

Page 14: ...the system power saving As long as the ADNS 3030 is not sensing motion the microcontroller can enter its own sleep mode as long as it is capable of waking up from an interrupt by the Motion pin 3 6 4...

Page 15: ...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 th...

Page 16: ...AT89RFD 11 User Guide 15 7648A USB 06 06 Figure 3 11 Device Manager...

Page 17: ...e 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 u...

Page 18: ...ation 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...

Page 19: ...1_5 C2 10nF C2 10nF C4 10nF C4 10nF C3 1 F C3 1 F C1 1 F C1 1 F NCS 1 MISO 2 SCLK 3 MOSI 4 MOTION 5 XY_LED 6 LED_GND 7 NC 8 AGND 9 SHTDWN 10 NC 20 AGND 19 NC 18 NC 17 GND 16 VDD 15 AGND 14 GND 13 GND...

Page 20: ...A3LH U3 MID 95A3LH R5 4K7 R5 4K7 1 2 SW2 Left SW2 Left D2 MIE 114A1 D2 MIE 114A1 P2 0 A8 D8 56 P2 1 A9 D9 57 P2 2 A10 D10 58 P1 5 CEX2 KIN5 MISO 59 P1 6 CEX3 KIN6 SCK 60 P1 7 CEX4 KIN7 MOSI 61 P4 0 SC...

Page 21: ...P0_4 P0_5 P0_6 P0_7 P2_0 P2_1 P2_3 P3_7 P3_6 P2_4 C15 100nF C15 100nF R8 10K R8 10K C16 100nF C16 100nF 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 RDY...

Page 22: ...B_CON_D GND Vcc VREF D D 3 3V See recommendations folder 1 2 3 4 J1 Male Header Molex 53261 0571 J1 Male Header Molex 53261 0571 IN 3 GND 2 OUT 1 U5 L78L33 STM SOT89 U5 L78L33 STM SOT89 R10 27 R10 27...

Page 23: ...ion DO NOT INSTALL Not on schematic 11 4 Terminal Crimp install on Item 9 Not on schematic 12 1 Resistor 0805 10 R1 13 1 Resistor 0805 2 2 k R2 14 1 Resistor 0805 100 R4 15 2 Resistor 0805 4 7 k R5 R6...

Page 24: ...therwise 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...

Reviews: