background image

AT89RFD-11: USB Mouse with Flash 
Memory Reference Design

..............................................................................................

User Guide

Содержание AT89RFD-11

Страница 1: ...AT89RFD 11 USB Mouse with Flash Memory Reference Design User Guide...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 16: ...AT89RFD 11 User Guide 15 7648A USB 06 06 Figure 3 11 Device Manager...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: