Introduction This design guides describes the design of a composite device (mouse & mass storage device) using the AT89C5131A Atmel microcontroller and the Avago ADNS-3030 opti- cal sensor. The firmware implementation section describes the firmware architecture to implement a composite device with the mouse and the memory functions. The Appendix contains the hardware implementation and the BOM of this reference design.
A familiarity with the AT89C5131A-M microcontroller (datasheet available on atmel web site www.atmel.com), the ADNS 3030 sensor (datasheet available on avago web site www.avagotech.com) and the USB specification (http://www.usb.org) is assumed. Key Reference 1. Offer a complete solution based on a full speed mouse with a mass storage capability.
Based on the last detected motion the optical naviga- tion engine enters various power saving modes when no new motion occurs. These power saving features are particularly beneficial for wireless. Figure 3-1. AT89RFD-11 User Guide 7648A–USB–06/06...
A HIGH state is interpreted as the button has been released or the button is not being depressed. In this reference design there are three switches: left, Z-wheel (middle), and right. AT89RFD-11 User Guide 7648A–USB–06/06...
As shown in the Figure below, rotating the wheel forward produces a unique set of state transitions, and rotating the wheel backward produces another set of unique state transitions. Figure 3-4. Optics Quadrature Signal Generation AT89RFD-11 User Guide 7648A–USB–06/06...
For example for this reference design we need 1 endpoint for control transfer, 1 endpoint for mouse and 2 endpoints for mass storage, which means that we need 4 endpoints to make this application. AT89RFD-11 User Guide 7648A–USB–06/06...
Page 10
Mass Storage Report Physical Device descriptor descriptor Mouse Device From the PC point of view, the reference design is presented as two stand-alone devices. The figure below shows how the device appears in the device manager. AT89RFD-11 User Guide 7648A–USB–06/06...
Page 11
Acknowlodge) 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. AT89RFD-11 User Guide 7648A–USB–06/06...
Page 12
(Command Status Wrapper) and sent to the USB Host controller. Because the USB bus is 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 7648A–USB–06/06...
Page 13
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 error by 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 of the ADNS-3030.
Page 14
For power savings, the LED will not be continuously on. ADNS-3030 will flash the LED only when needed. This is fully automated and managed by the ADNS-3030. As a result the ADNS-3030 consumes only about 4 mA of average current while in the active mode. AT89RFD-11 User Guide 7648A–USB–06/06...
Page 15
5. 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 AT89RFD-11 User Guide 7648A–USB–06/06...
Page 16
Figure 3-11. Device Manager AT89RFD-11 User Guide 7648A–USB–06/06...
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 7648A–USB–06/06...
Page 23
Switch SW 2 Right Switch SW 3 Scroll Switch SW 4 Optical navigation sensor Microcontroller Quadrature encoder Flash memory, 2G Voltage regulator 24 MHz Crystal LED clip not shown on schematic Lens not shown on schematic AT89RFD-11 User Guide 7648A–USB–06/06...
Page 24
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...
Need help?
Do you have a question about the AT89RFD-11 and is the answer not in the manual?
Questions and answers