background image

-20

AT89RFD-11 User Guide

7648A–USB–06/06

_EA

_EA

XTAL1

_PSEN

PLLF

XTAL2

XTAL2

XTAL1

_PSEN

UCAP

UCAP

PLLF

/RST

/RST

VCC

AVCC

AVSS

AVCC

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_2

P3_3

P3_4

P3_5

VREF

D+

D-

P3_5

P3_3

P3_2

P1_7

P1_6

P1_5

P2_1

P2_0

P0_0

P1_4

P1_3

P1_2

P1_1

P1_0

P3_7

Wheel

Smaller Swith

possible (Only

for ISP

programming)

Close to μC

Close to μC

Close to μC

C9

1μF

C9

1μF

R2

2.2 K

R2

2.2 K

C8

1μF

C8

1μF

SW1

ISP

SW1

ISP

Y1

CRYSTAL 24MHz

Y1

CRYSTAL 24MHz

C13

10nF

C13

10nF

R6

4K7

R6

4K7

R3

10K

R3

10K

R7

100

R7

100

C10

22 pF

C10

22 pF

C14

2.2 nF

C14

2.2 nF

1

2

SW4

Scroll

SW4

Scroll

C12

10nF

C12

10nF

1

2

SW3

Right

SW3

Right

R4

100

R4

100

VCC

2

QA

1

QB

3

U3

MID-95A3LH

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/SCL

62

P4.1/SDA

63

P2.3/A11/D11

2

P2.4/A12/D12

3

P2.5/A13/D13

4

XTAL2

5

XTAL1

6

P2.6/A14/D14

7

P2.7/A15/D15

8

VDD

9

AVDD

10

UCAP

11

AVSS

12

P3.0/RxD

14

PLLF

19

D-

20

D+

21

VREF

22

UVSS

23

EA

24

ALE

25

PSEN

26

P3.1/TxD

27

P3.2/INT0

28

P3.3/INT1/LED0

29

P3.4/T0

30

P3.5/T1/LED1

31

nc11

34

P3.6/WR/LED2

35

P0.7/AD7/D7

36

P0.6/AD6/D6

37

P0.5/AD5/D5

38

P3.7/RD/LED3

39

P0.4/AD4/D4

40

VSS

42

P0.3/AD3/D3

43

RST

44

P0.2/AD2/D2

45

P0.1/AD1/D1

46

nc13

47

P0.0/AD0/D0

55

P1.4/CEX1/KIN4

54

P1.3/CEX0/KIN3

53

P1.2/ECI/KIN2

52

P1.1/T2EX/KIN1/SS

51

P1.0/T2/KIN0

50

nc16

64

nc1

1

nc15

49

nc14

48

nc12

41

nc10

33

nc9

32

nc7

18

nc6

17

nc5

16

nc4

15

nc3

13

U2

AT89C5131A-M_VQFP64

U2

AT89C5131A-M_VQFP64

C11

22 pF

C11

22 pF

C7

100nF

C7

100nF

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: