background image

114

EZ-USB Development Kit User Guide, Doc. # 001-66390 Rev. *D

A.3

Schematic

The only difference between the CY3674 and CY3684 kits is the Cypress EZ-USB part. While the
development board of the CY3674 kit includes FX1 (128-pin package), the CY3684 kit has FX2LP.
All other components and layout are similar to the CY3684 kit board.

5

5

4

4

3

3

2

2

1

1

D

D

C

C

B

B

A

A

128K x 8 SRAM

PLACE ONE CAP PER EACH VCC PIN ON U1

RED

Bridge SP1-SP3 for 

Atapi use.

RED

8-PIN DIP 

SOCKET

SMALL EE

PROM

LARGE EE

PROM

NO EEPR

O

M

EEPRO

M

8-PIN DIP 

SOCKET

GREE

N

PCA: 121-08600

PCB: PDC-9086

CY7C68013A-128AXC (CY3684 FX2LP DVK)      or  CY7C64713-128AXC (CY3674 FX1 DVK)

REF-11637

*B

CY3684 USB 2.0 DEVELOPMENT BOARD

C

11

Tuesday, September 20, 2005

Title

S

iz

e

Document Number

Rev

Date:

Sheet

of

CYPRESS SEMICONDUCTOR  © 2003

RDY0

CTL

4

PA6

PA4

PA2

PA0

PSEN#

PD6

PD4

PD2

PD0

PB6

PB4

PB2

PB0

WR#

RDY4

RDY2

RESET#

PC4

PC2

PC0

CLKOUT

OE#

D4

D2

D0

RD#

INT4

T1

WAKEUP#

SCL

PE6

PE4

PE2

PE0

PE7

PE5

PE3

SDA

INT5#

D5

D1

5V

D3

CS#

PB7

PB5

PB1

PD3

PB3

PD1

PD7

PD5

PA7

PA5

PA1

CTL

3

PA3

CTL

1

RDY1

PC7

PC1

BKPT

RDY5

RDY3

b

c

d

e

f

g

dec

a

f

e

b

g

c

dec

d

D0

D1

D2

D3

D4

D5

D6

D7

RAMCE#

RAMOE#

A0

A1

A2

A3

A4

A5

A6

A7

A8

A9

A10

A11

A12

A13

A14

A15

a

VBUS

EA

CLKOUT

WAKEUP#

RESET#

A7

A14

A8

A5

A1

A11

A6

A10

A0

A13

A12

A3

A9

A15

A4

A2

INT4

INT5#

CS#

PSEN#

OE#

A2

A7

A0

A4

A6

A3

A1

A5

A10

A15

A8

A12

A14

A11

A9

A13

D2

D7

D0

D4

D6

D3

D1

D5

TXD

0

T2

RXD0

RD#

T1

TXD

1

RXD1

T0

WR#

DM

DP

SCL

CTL

0

CTL

2

PC3

PC5

CTL

5

PC6

D6

PF0

PF1

PF2

PF3

PE1

T2

T0

5V

IFCLK

PB6

PB5

PB4

PB3

PB0

PB7

PB2

PB1

PD0

PD1

PD2

PD4

PD6

PD3

PD5

PD7

RDY1

CTL

0

CTL

1

RDY0

CTL

2

PA2

PA1

PA4

PA5

PA3

PA0

PA7

RXD1

TXD

1

RXD0

TXD

0

SDA

SCL

SDA

SCL

SDA

WR#

A14

OE#

A11

EA

PSEN#

PF0

PF2

PF1

A15

A13

RAMOE#

IFCLK

CS#

RAMCE#

RD#

A12

PF3

PA5

PE3

PB4

PD3

PC1

CTL1

PD2

PB1

CTL5

RDY4

PA4

PE6

RDY2

PB3

PD6

CTL0

PC0

PC7

PB0

CTL4

PA2

PE4

PB2

PB7

RDY5

PA3

PC6

PE5

CTL3

PD4

PE0

PD5

PA1

PC3

PA7

PB6

RDY1

PC5

PE1

PD0

PE7

PD1

PA0

PC2

PA6

PC4

RDY3

PB5

CTL2

RDY0

PD7

PE2

SCL

WP

SCL

SDA

D7

RAMA16

WAKEUP#

BKPT

WP

5V

PA7

WP

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

5V

5V

3.3V

3.3V

3.3V

3.3V

3.3V

5V

3.3V

5V

3.3V

3.3V

5V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3VC

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3V

3.3VC

5V

5V

0805

R39

390

0805

C3

0.1 uFd

0805

C18

0.1 uFd

P9

SIO-0

5

9

4

8

3

7

2

6

1

10

11

0805

R47

10K

J1

USB B RA

1

2

3

4

5

6

VBUS

DM

DP

GND

S1

S2

U1

C

Y7C

68013A

-128AXC

33

101

83

36

48

37

84

43

85

64

89

90

10

91

58

92

65

44

125

3

116

13

12

11

82

45

46

47

54

55

56

57

72

73

74

75

76

77

78

79

18

19

94

95

96

97

117

118

119

120

126

127

128

21

22

23

24

25

59

60

61

62

63

86

87

88

35

1

39

80

34

99

100

2

68

107

49

4

5

6

69

70

71

32

108

109

110

111

112

113

114

115

102

103

104

105

121

122

123

124

7

8

9

14

15

38

42

40

41

16

29

30

31

28

106

51

50

53

52

66

67

98

26

81

27

93

20

17

RESER

VED

WAKEUP#

PA1/INT1#

SCL

VCC5

SDA

PA2/SLOE

VCC4

PA3/WU2

VCC6

PA4/FIFOADR0

PA5/FIFOADR1

AVCC1

PA6/PKTEND

GND5

PA7/FLAGD

GND6

PB0/FD0

GND9

GND3

GND8

AG

ND1

XTALIN

XTALOU

T

PA0/INT0#

PB1/FD1

PB2/FD2

PB3/FD3

PB4/FD4

PB5/FD5

PB6/FD6

PB7/FD7

PC0/GPIFADR0

PC1/GPIFADR1

PC2/GPIFADR2

PC3/GPIFADR3

PC4/GPIFADR4

PC5/GPIFADR5

PC6/GPIFADR6

PC7/GPIFADR7

DPLUS

DMINUS

A0

A1

A2

A3

A4

A5

A6

A7

A8

A9

A10

A11

A12

A13

A14

A15

D0

D1

D2

D3

D4

D5

D6

D7

EA

CLKOUT

PSEN#

GND7

BKPT

RESET#

VCC8

VCC3

VCC7

VCC9

GND4

RDY0/SLRD

RDY1/SLWR

RDY2

CTL0/FLAGA

CTL1/FLAGB

CTL2/FLAGC

IFCLK

PE0/T0OUT

PE1/T1OUT

PE2/T2OUT

PE3/RXD0OUT

PE4/RXD1OUT

PE5/INT6

PE6/T2EX

PE7/GPIFADR8

PD0/FD8

PD1/FD9

PD2/FD10

PD3/FD11

PD4/FD12

PD5/FD13

PD6/FD14

PD7/FD15

RDY3

RDY4

RDY5

NC1

NC2

OE#

CS#

RD#

WR#

NC3

T0

T1

T2

INT4

INT5#

RXD0

TXD0

RXD1

TXD1

CTL3

CTL4

CTL5

VCC1

VCC2

GND1

GND2

AG

ND2

AVCC2

0805

R77

4.7K

U2

GAL22LV10C-7LJ

17

18

19

20

21

23

24

25

26

27

22

2

15

3

4

5

6

7

9

10

11

12

13

16

28

14

1

8

F0

F1

F2

F3

F4

F5

F6

F7

F8

F9

NC4

I0/clk

NC3

I1

I2

I3

I4

I5

I6

I7

I8

I9

I10

I11

Vcc

Vss

NC1

NC2

0805

R1

100K

0805

R23

2.2K

0805

R15

10K

0805

R34

390

JP1

AVCC

1

2

0805

C29

0.1 uFd

0805

R78

10K

TP5

GND

0805

C6

0.1 uFd

0805

R74

390

0805

C40

0.1 uFd

0805

R16

22

0805

R28

100

K

a

b

f

g

e

d

c

U9

HDSP-E101

1

2

3

9

10

6

7

8

11

13

14

a

f

an1

dec

c

nc

ed

g

b

an2

0805

C20

0.1 uFd

+

3216

C25

10 uFd 16v

0805

R25

390

0805

R24

22

P5

LOGIC ANALYZER HDR

1

3

5

7

9

2

4

6

8

10

11

12

13

14

15

16

17

18

19

20

+5V

CLK1

D14

D12

D10

CLK2

D15

D13

D11

D9

D8

D7

D6

D5

D4

D3

D2

D1

D0

GND

0805

R27

10K

TV5

PF2

0805

R35

390

0805

R3

560

0805

R4

390

Y1

24 MHz

FRAME

S1

RESET#

1A

2A

1B

2B

3

0805

C15

0.1 uFd

U5

24LC128-I/P

1

2

3

4

5

6

7

8

A0

A1

A2

Vss

SDA

SCL

WP

Vcc

0805

C14

12 pFd

0805

R80

100

K

+

3216

C43

2.2 uFd 10v

0805

R40

390

0805

C34

0.1 uFd

0805

C4

0.1 uFd

0805

C12

0.1 uFd

P10

SIO-1

5

9

4

8

3

7

2

6

1

10

11

FRAME

S3

f2

1A

2A

1B

2B

3

0805

R20

22

0805

R14

22K

0805

R29

10K

JP5

3.3V IN

1

2

0805

C7

0.1 uFd

0805

C41

0.1 uFd

0805

R45

4.7K

+

3216

C23

10 uFd 16v

TP6

GND

JP9

i2c compatible

1

2

3

4

1206

D8

DRIVE RDY

1206

D2

LED Red

0805

C36

0.1 uFd

1206

D7

BKPT/MONITOR

0805

R36

390

TP1

GND

1206

D1

BUS PWR

TV6

PF1

0805

R17

22

+

3216

C17

2.2 uFd 10v

0805

R5

390

0805

R10

10K

T

V

1

SPARE3

T

V

9

SPARE4

P2

LOGIC ANALYZER HDR

1

3

5

7

9

2

4

6

8

10

11

12

13

14

15

16

17

18

19

20

+5V

CLK1

D14

D12

D10

CLK2

D15

D13

D11

D9

D8

D7

D6

D5

D4

D3

D2

D1

D0

GND

0805

R13

10K

0805

C19

0.1 uFd

P6

LOGIC ANALYZER HDR

1

3

5

7

9

2

4

6

8

10

11

12

13

14

15

16

17

18

19

20

+5V

CLK1

D14

D12

D10

CLK2

D15

D13

D11

D9

D8

D7

D6

D5

D4

D3

D2

D1

D0

GND

U3

CY7C1019BV33-12VC

15

3

16

4

17

13

18

2

19

6

20

14

21

29

30

1

7

10

11

22

23

26

27

5

28

12

8

9

31

32

25

24

A6

A2

A7

A3

A8

A4

A9

A1

A10

D0

A11

A5

A12

A13

A14

A0

D1

D2

D3

D4

D5

D6

D7

CE

OE

WE

VDD

Vss

A15

A16

Vss

VD

D

SO16

U8

PCF8574T

15

14

16

1

2

3

8

13

4

5

6

7

9

10

11

12

SDA

SCL

VCC

A0

A1

A2

GND

INT

P0

P1

P2

P3

P4

P5

P6

P7

0805

R18

22

FRAM

E

S6

WAKEUP#

1A

2A

1B

2B

3

0805

R41

390

1206

D6

PWR 3.3V

0805

R30

ze

ro

JP11

EEPROM WP JUMPER

1

2

3

JP8

WU2

1

2

0805

R26

22K

SW1

EEPROM SELECT

2

1

3

0805

R9

390

0805

C8

0.1 uFd

7163

C21

4700 pFd 250v

TP2

GND

0805

C42

0.1 uFd

T

V

2

SPARE2

JP3

LED SELECT

1

3

5

7

2

4

6

8

1206

D3

LED Red

0805

C31

0.1 uFd

0805

R37

390

0805

R46

ze

ro

+

3216

C16

1 uFd 16v

JP7

MM1


2

0805

C1

0.1 uFd

TV7

PF0

0805

R6

390

0805

R11

10K

FRAME

S2

f1

1A

2A

1B

2B

3

0805

C38

0.1 uFd

0805

C22

0.1 uFd

FRAME

S4

f3

1A

2A

1B

2B

3

0805

C9

0.1 uFd

P3

LOGIC ANALYZER HDR

1

3

5

7

9

2

4

6

8

10

11

12

13

14

15

16

17

18

19

20

+5V

CLK1

D14

D12

D10

CLK2

D15

D13

D11

D9

D8

D7

D6

D5

D4

D3

D2

D1

D0

GND

P1

LOGIC ANALYZER HDR

1

3

5

7

9

2

4

6

8

10

11

12

13

14

15

16

17

18

19

20

+5V

CLK1

D14

D12

D10

CLK2

D15

D13

D11

D9

D8

D7

D6

D5

D4

D3

D2

D1

D0

GND

0805

R69

1K

U7

LTC1386CS

1

2

3

4

5

6

7

8

16

15

14

13

12

11

10

9

C1+

V+

C1-

C2+

C2-

V-

TR2OUT

RX2IN

VCC

GND

TR1OUT

RX1IN

RX1OUT

TR1IN

TR2IN

RX2OUT

0805

C39

0.1 uFd

TP3

GND

SOT23

D9

1N4148

2

1

TV3

SPARE1

0805

R42

100

K

JP10

3.3V

1

2

0805

C28

0.1 uFd

TP8

VBUS

0805

R79

10K

0805

R22

22

P8

ATA CONNECTOR

1

2

17

15

13

11

9

7

5

3

4

6

8

10

12

14

16

18

20

19

21

23

25

29

31

27

33

35

37

39

24

22

26

28

30

32

34

36

38

40

RESET#

GND

DD0

DD1

DD2

DD3

DD4

DD5

DD6

DD7

DD8

DD9

DD10

DD11

DD12

DD13

DD14

DD15

KEYPIN

GND

DMARQ

DIOW#

DIOR#

DMACK#

INTRQ

IORDY

DA1

DA0

CS0#

DASP#

GND

GND

GND

CSEL

GND

IOCS16

PDIAG#

DA2

CS1#

GND

0805

R12

100

K

0805

R2

ze

ro

SW2

EEPROM ENABLE

2

1

3

0805

C24

0.01 uFd

JP2

BUS PWR

1

2

0805

R33

33

P4

LOGIC ANALYZER HDR

1

3

5

7

9

2

4

6

8

10

11

12

13

14

15

16

17

18

19

20

+5V

CLK1

D14

D12

D10

CLK2

D15

D13

D11

D9

D8

D7

D6

D5

D4

D3

D2

D1

D0

GND

1206

D4

LED Red

0805

R31

NO LOAD

0805

R38

390

0805

R19

22

0805

C2

0.1 uFd

0805

R44

4.7K

0805

R32

NO LOAD

0805

R8

390

0805

R21

2.2K

0805

C26

0.1 uFd

SO16

U10

PCF8574T

15

14

16

1

2

3

8

13

4

5

6

7

9

10

11

12

SDA

SCL

VCC

A0

A1

A2

GND

INT

P0

P1

P2

P3

P4

P5

P6

P7

0805

C5

0.1 uFd

JP6

MM0


2

0805

C10

0.1 uFd

0805

C37

0.1 uFd

U4

LT1763CS8-3.3

1

2

3

4

5

6

7

8

OUTPUT

SENSE

GND

BYP

nSHDN

GND

GND

IN

TP4

GND

0805

R7

1M

TP7

3.3V

TV4

PF3

TV8

WAKEUP#

SP3

SOLDER PAD

0805

R43

22

0805

C27

0.1 uFd

SP1

SOLDER PAD

U6

24LC00/P

1

2

3

4

5

6

7

8

A0

A1

A2

Vss

SDA

SCL

WP

Vcc

0805

C11

0.1 uFd

SP2

SOLDER PAD

FRAME

S5

f4

1A

2A

1B

2B

3

0805

C13

12 pFd

+

3216

C32

10 uFd 16v

0805

C35

0.1 uFd

1206

D5

LED Red

Summary of Contents for CY3674

Page 1: ...CY3674 CY3684 EZ USB Development Kit User Guide Doc 001 66390 Rev D Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 www cypress com...

Page 2: ...ansferable license to copy use modify create derivative works of and compile the Cypress Source Code and derivative works for the sole purpose of creating custom soft ware and or firmware in support o...

Page 3: ...1 Introduction 19 3 2 Schematic Summary 19 3 3 Jumpers 20 3 4 EEPROM Select and Enable Switches SW1 and SW2 20 3 5 Interface Connectors 22 3 6 ATA Connector P8 25 3 7 U2 22v10 Gate Array Logic GAL 25...

Page 4: ...5 EZUSB_Resume 42 5 4 2 6 I2C Routines 42 6 Cypress USB Drivers for EZ USB Kits 43 6 1 Cypress USB Signed Driver Package for EZ USB Devices 43 6 2 Drivers for Firmware Examples and Default EZ USB Conf...

Page 5: ...nload Firmware Image to EZ USB Internal RAM and External EEPROM76 8 4 4 Binding Cypress USB Driver for the Downloaded Firmware Image 76 8 4 5 Testing the pingnak Firmware Functionality 76 8 5 Bulkloop...

Page 6: ...89 8 10 LEDcycle Firmware Example 89 8 11 Dev_IO Firmware Example 89 8 12 extr_intr Firmware Example 90 8 12 1 Testing the Example 91 8 13 Vend_ax Example 91 8 13 1 Testing the vend_ax Example 92 8 14...

Page 7: ...nction is required both chips are generically referred to as EZ USB throughout this document 1 2 Kit Contents The following list shows the components supplied in the EZ USB DVK They represent most of...

Page 8: ...ction 2 2 Schematic Summary B 06 06 2012 NMMA The document has to be updated with the OOB review comments C 06 29 2012 NMMA Minor text edits Updated correct path Start All programs Cypress Cypress Sui...

Page 9: ...t installer ISO file for CY3684 and CY3674 Create an installer CD DVD or extract the ISO using WinRar and install the executables 2 Click Install CY3684 EZ USB FX2LP DVK to start the installation as s...

Page 10: ...select the installation type that best suits your requirement The drop down menu has three options Typical Complete and Custom as shown in Figure 2 3 In the current installer all three installation t...

Page 11: ...wnloaded and installed as shown in Figure 2 4 Wait until all the packages are downloaded and installed successfully Figure 2 4 Installation Page 6 The Keil uVision2 trial version IDE triggers at this...

Page 12: ...user name and company name credentials as shown in Figure 2 6 to proceed with the installation Figure 2 6 Keil User Information lnput Window 8 The Keil software proceeds with the installation and cop...

Page 13: ...is used to create State machine waveforms to communicate between the EZ USB device and devices such as FPGA image sensors FIFO and so on If the software is already installed in the PC then the instal...

Page 14: ...USB 3 4 7 package install shield is triggered after the GPIF designer software installa tion If the software is already installed in the PC then the installer will not trigger the installation If the...

Page 15: ...ext The default directory of the SuiteUSB is C Cypress Cypress Suite USB 3 4 7 The default directory can be changed at this stage Click Next after selecting the directory Click the Install button in t...

Page 16: ...e Doc 001 66390 Rev D Getting Started Figure 2 12 SuiteUSB User Login Window 13 The CY3684 EZ USB FX2LP development Kit Finish window appears after installing the kit con tent Keil software GPIF Desig...

Page 17: ...ser Guide Doc 001 66390 Rev D 17 Getting Started Figure 2 13 CY3684 Finish Window Note The procedure to install the CY3674 installer is similar to CY3684 2 2 Install Hardware No hardware installation...

Page 18: ...18 EZ USB Development Kit User Guide Doc 001 66390 Rev D Getting Started...

Page 19: ...14 and are available in PDF format in the DVK hardware directory With the exception of the EZ USB chip the development boards in the FX2LP and FX1 DVKs are identical and are referred to generically as...

Page 20: ...n in Table 3 2 Jumper Function Default Notes JP1 JP10 Connects 3 3 V power to the EZ USB chip IN 1 2 JP2 Powers the on board 3 3 V regulator from USB Vbus pin IN 1 2 To operate the board in self power...

Page 21: ...ff down position This electrically disconnects any EEPROMs that occupy the EEPROM sockets U5 and U6 The OFF mode is useful to start up EZ USB in a manner using internal VID PID that binds the developm...

Page 22: ...scilloscopes Table 3 3 shows the logic analyzer pod pin designations The EZ USB signals on P1 P6 are arranged to fulfill the following requirements High speed EZ USB strobe signals PSEN WR CLKOUT IFCL...

Page 23: ...PB4 15 16 PB3 FD 3 FD 2 PB2 17 18 PB1 FD 1 FD 0 PB0 19 20 GND Alternate Default P2 Default Alternate NC 1 2 3 3V NC 3 4 RDY1 SLWR SLRD RDY0 5 6 CTL5 CTL4 7 8 CTL3 FLAGC CTL2 9 10 CTL1 FLAGB FLAGA CTL...

Page 24: ...2 9 10 PLD1 N C 11 12 D7 D6 13 14 D5 D4 15 16 D3 D2 17 18 D1 D0 19 20 GND Alternate Default P5 Default Alternate NC 1 2 3 3 V IFCLK 3 4 A15 A14 5 6 A13 A12 7 8 A11 A10 9 10 A9 A8 11 12 A7 A6 13 14 A5...

Page 25: ...2v10 GAL provides a general purpose glue logic on the board It provides the AND gate required to combine the PSEN and READ signals adds memory map support debug LEDs and provides three spare outputs f...

Page 26: ...ing a standard 64 KB RAM without requiring external decoding to inhibit access to the bottom 16 Kb The second column 24K gap enables the external RAM only for access to its upper 32 KB This configurat...

Page 27: ...the data byte U10 uses its I O pins as inputs connected to S2 S5 according to the following table U9 has the group address 0100 and is strapped to unit address 000 Therefore to read the switch values...

Page 28: ...he bot tom pin of the connector and the GAL I O pin is the top pin Figure 3 3 Indicator LED Positions The low address byte is don t care This means you can efficiently add software test points using t...

Page 29: ...674 kit is C Cypress USB CY3674_EZ USB_FX1_DVK and for the CY3684 kit it is C Cypress USB CY3684_EZ USB_FX2LP_DVK In further sections the default installation directory is referred to as Installed_dir...

Page 30: ...a For EZ USB FX1 Product FamilY pdf Errata for EZ USB FX1 IC EZ USB FX1 Datasheet pdf Datasheet for EZ USB FX1 IC 2 FX2LP CY3684 Migrating From EZ USB FX2 To EZ USB FX2LP AN4078_C pdf Application note...

Page 31: ...irmware using the script file CyLoad spt For more details about this driver go to Chapter 6 Table 4 3 List of Firmware Example in EZ USB Development Kits S No Firmware Example Description 1 hid_kb Exa...

Page 32: ...implement different vendor commands Table 4 4 List of Hardware Files in EZ USB Development Kits S No Files Description 1 CY3684_Board_Layout brd CY3674_Board_Layout brd This file is EZ USB developmen...

Page 33: ...tory S No Sub directory File Description 1 FW Lp Fw c periph c dscr a51 fw uv2 This directory contains basic framework project source files used to develop the firmware examples in the EZ USB devel op...

Page 34: ...34 EZ USB Development Kit User Guide Doc 001 66390 Rev D Development Kit Contents...

Page 35: ...t peripheral device By linking a minimal descriptor table it is possible to build a fully compliant Device Framework USB Specification Chapter 9 At startup the frameworks initialize all its internal s...

Page 36: ...36 EZ USB Development Kit User Guide Doc 001 66390 Rev D EZ USB Firmware Frameworks Figure 5 1 Firmware Frameworks Flowchart...

Page 37: ...ain files in the frameworks Table 5 1 Files in Firmware Frameworks File Name Description FW C This is the main frameworks source file It contains main the task dispatcher and the SETUP command handler...

Page 38: ...rom responding to device requests and USB suspend events If a large amount of processing time is required it must be split up to execute in multiple calls to TD_Poll 5 3 1 3 TD_Suspend BOOL TD_Suspend...

Page 39: ...rameworks implement the Set Configuration device request The register array SETUPDAT contains the current eight byte setup command By default the frame works parses the descriptor table to determine t...

Page 40: ...peed and every 125 uS at high speed The only action for this interrupt in the default frameworks code is to clear the interrupt 5 3 3 3 ISR_Ures void ISR_Ures void interrupt 0 This function is called...

Page 41: ...d bat also assembles the usbjmptb a51 file to create usbjmptb obj This file contains the jump table for the USB INT2 and GPIF INT4 auto vectored interrupts See the EZ USB Technical Ref erence Manual T...

Page 42: ...ce remote wake up This function should be called following a USB suspend It automatically determines if the wake up is result of a USB resume or a remote wake up and generates the K state accordingly...

Page 43: ...SB 2 0 device 6 1 Cypress USB Signed Driver Package for EZ USB Devices The EZ USB FX1 FX2LP kits contain Microsoft certified signed driver packages for different pur poses Following is the snapshot of...

Page 44: ...conditions are stringent in Windows Vista and Windows 7 64 bit configurations To temporar ily avoid driver loading problems with the edited INF file press F8 during the Windows machine re boot and se...

Page 45: ...ware wizard window pops up allowing you to update the corresponding driver path as shown in Figure 6 4 Table 6 1 List of VID PID used in EZ USB Kits S No VID PID Functional Description 1 0x04B4 0x8613...

Page 46: ...dware wizard Window options differ in Windows Vista and Windows 7 OS platforms If the hardware wizard window does not pop up then type devmgmt msc directly in the vacant box in Windows Start Locate th...

Page 47: ...ad spt Cyload cat CyLoad inf and cyusb sys These are basic files required to automate the process of firmware download using script files and INF files For more details refer to Firmware Download usin...

Page 48: ...Cypress Cypress Suite USB 3 4 7 CyConsole Alternately the tool can be accessed at Windows Start All Programs Cypress Cypress SuiteUSB 3 4 7 Follow these steps to generate and play the script Figure 6...

Page 49: ...n Options 1 Connect a USB A to B cable between the Windows PC USB Host port and the EZ USB FX1 FX2LP board J1 connector The board should have SW2 switched to the side marked as NO EEPROM 2 The EZ USB...

Page 50: ...numerates with this VID PID and script file is automatically triggered by Windows OS 5 CyLoad spt The script file which automates firmware downloading to a EZ USB device Following is the snapshot of C...

Page 51: ...adFW Files AddReg CyLoad AddReg CyLoad HW AddReg CyLoad AddReg Guid CYLoad Services Addservice CyLoad 2 CyLoad AddService CyLoad NT CopyFiles CyLoadFW Files AddReg CyLoad AddReg CyLoad NT HW AddReg Cy...

Page 52: ...so copied in a similar manner to Windows OS System folders defined under DestinationDirs section The VID PID 0x04B4 0x0084 which is part of the INF file is linked to Cyload spt The windows OS automati...

Page 53: ...evice 3 4 5 000 This string confirms that auto firmware download using CyLoad spt was successful Note The EEPROM image can also be downloaded using CyControlCenter 6 3 3 Keil Debug Monitor Download us...

Page 54: ...54 EZ USB Development Kit User Guide Doc 001 66390 Rev D Cypress USB Drivers for EZ USB Kits...

Page 55: ...he section Script File Genera tion using the Cyscript Tool on page 47 2 hex2bix exe The utlity is used to convert the RAM image hex files to the equivalent EEPROM images iic For detailed options of he...

Page 56: ...reamer Streamer Both these applications continuously stream Bulk and Iso chronous data in the OUT and IN directions The OUT and IN endpoints act as sink and source of data that is the received data on...

Page 57: ...ess including the firmware binary embedded inside it After firmware download is complete click the Stop Recording button to save the entire download into a script file xxx spt To verify the script loa...

Page 58: ...USB kits to help you debug the firmware through the UART port After the kit software installation the Keil monitor programs are located at Installed_directory Version Target Monitor Load Mon This but...

Page 59: ...yConsole chm and CyConsole pdf at C Cypress Cypress Suite USB 3 4 7 CyConsole A sample demon stration of this utility while using firmware examples is provided in the section EZ USB Develop ment Kit F...

Page 60: ...49 Data transfers Using the tool the USB packet data can be transferred over an endpoint The procedure is explained in the CyControlCenter pdf file located at C Cypress Cypress Suite USB 3 4 7 CyUSB...

Page 61: ...Bulk or Isochronous In OUT endpoint Vary the Packets per Xfer and Xfers to Queue parameters and verify the throughput for different Bulk and Isochronous endpoints across dif ferent alternate interfac...

Page 62: ...Queue parameters and verify the throughput for different Bulk and Isochronous endpoints across different alternate interfaces Note The maximum data allowed per transfer is 64 KB for Bulk and Isochron...

Page 63: ...then detects the board and the relevant buttons on the exe are enabled To program small EEPROM images such as FX1_C0 iic FX2LP_CO iic and CyLoad iic select the SW2 EEPROM and SW1 SMALL EEPROM setting...

Page 64: ...64 EZ USB Development Kit User Guide Doc 001 66390 Rev D USB PC Host Utilities and SuiteUSB Applications...

Page 65: ...copied from the OUT endpoint buffer to external RAM and then to the IN endpoint buffer It loops back EP2OUT to EP6IN and EP4OUT to EP8IN 4 Bulksrc Contains bulk endpoint endless source sink firmware...

Page 66: ...ect snapshot in the IDE Figure 8 1 hid_kb Project View in keil uVision2 IDE The firmware example detects if any of the four push buttons are pressed on the development board and sends the relevant fi...

Page 67: ...0x0F if oldbuttons buttons 0 Change in button state if buttons 1 Shift EP1INBUF 0 0 else EP1INBUF 0 2 if buttons 2 a EP1INBUF 2 0 else EP1INBUF 2 4 if buttons 4 b EP1INBUF 3 0 else EP1INBUF 3 5 if bu...

Page 68: ...patible firmware image the Keil IDE invokes the hex2bix exe utility to convert the output file hid_kb hex into hid_kb iic Right click on Target1 in the Project Window and select Options for Target Tar...

Page 69: ...board to a Windows PC USB Host controller port The EZ USB device enu merates with the default VID PID 2 Before programming the EEPROM image file iic select SW2 EEPROM and SW1 LARGE EEPROM as switch s...

Page 70: ...b project contains firmware for a HID class keyboard device Interface class HID 03 and subclass 00 and uses the Microsoft native HID driver instead of Cypress generic USB driver 8 2 5 Testing the hid_...

Page 71: ...s the list of registers that need this delay function when writing to them The OUT endpoints after they are configured need to be armed to accept packets from the host Because the endpoints are double...

Page 72: ...ommit EP6IN by specifying the number of bytes the host can read from EP6 SYNCDELAY EP2BCL 0x80 re arm EP2OUT The EP6 In Bulk NAK Flag bit in the IbnFlag variable is cleared The EP6 In Bulk NAK interru...

Page 73: ...console CyControlCenter After download the firmware re enumerates with the PC using its internal VID PID 0x04B4 0x1004 8 3 4 Binding Cypress USB Driver for the Downloaded Firmware Image The IBN projec...

Page 74: ...ne by the following statements EP2CFG 0xA2 SYNCDELAY EP4CFG 0xA0 SYNCDELAY EP6CFG 0xE2 SYNCDELAY EP8CFG 0xE0 The key characteristics of each endpoint are as follows Endpoint 2 OUT Bulk double buffered...

Page 75: ...ese two registers give the byte count of the data transferred to the FIFO in an OUT transaction as long as the data is not committed to the peripheral side This data pointer initial ization and loadin...

Page 76: ...nd EEPROM Click on Build Target button at the top right corner of the IDE The total code bytes of the pingnak firmware example is less than the 4 k code limit Keil Vision2 IDE provided along with the...

Page 77: ...n continuously transmit data to EP2 and EP4 and the transfer always succeeds The data present in the buffers of EP2 and EP4 at any point of time will be the latest two packets of data sent from the ho...

Page 78: ...o pointer is initialized to the first byte of the endpoint 2 FIFO buffer The second auto pointer is initialized to the first byte of the endpoint 6 FIFO buffer The number of bytes to be transferred is...

Page 79: ...Z USB RAM memory The output of the Build Target is bulkloop hex relevant for downloading to EZ USB RAM memory Firmware output for external EEPROM To generate EEPROM compatible firmware Image the Keil...

Page 80: ...e 45 to manually bind the driver using Windows Hardware Wizard If the binding process is performed for anyone of the previous firmware examples the process can be skipped for this example 8 5 5 Testin...

Page 81: ...a transfer length of 64 Bytes 8 5 5 2 Test using Cybulk Application The Bulkloop firmware can be tested using this C application For 32 bit Windows OS the CyBulk can be accessed at C Cypress Cypress S...

Page 82: ...kloop C NET Application The Bulkloop firmware can be tested using the Bulkloop C NET application which is located at Start All Programs Cypress Cypress SuiteUSB 3 4 7 Bulkloop Select the Bulkloop OUT...

Page 83: ...2 SYNCDELAY EP4CFG 0xA0 SYNCDELAY EP6CFG 0xE2 SYNCDELAY EP8CFG 0xE0 After configuration the OUT endpoints are armed to accept data from the host An OUT endpoint is said to be armed if it is ready to a...

Page 84: ...UF APTR1L LSB EP4FIFOBUF AUTOPTRH2 MSB myBuffer AUTOPTRL2 LSB myBuffer myBufferCount EP4BCH 8 EP4BCL for i 0x0000 i myBufferCount i EXTAUTODAT2 EXTAUTODAT1 SYNCDELAY EP4BCL 0x80 re arm EP4OUT If the E...

Page 85: ...004 8 6 4 Binding Cypress USB Driver for the Downloaded Firmware Image The Bulksrc firmware uses vendor class 0xFF with VID PID 0x04B4 1004 This example should bind with the Cypress generic USB driver...

Page 86: ...Project window The only difference between the Bulkloop and Bulkext examples is the source and destination buffer memory address of the Bulk endpoint pairs EP2 EP6 and EP4 EP8 In Bulk loop the endpoin...

Page 87: ...nstead of 512 bytes 8 7 2 Building Bulkext fIrmware Example Code for EZ USB RAM Memory and EEPROM Click on the Build Target button at the top right corner of the IDE The total code bytes of the Bulkex...

Page 88: ...12 byte Bulk OUT ISR_Ep6inout EP8 512 byte Bulk OUT ISR_Ep8inout 8 8 2 Building EP_Interrupts Firmware Example Code for EZ USB RAM and EEPROM Click on Build Target button at the top right corner of th...

Page 89: ...rmware Example This example is used to test the connectivity between EZ USB IC and general purpose LED D2 D5 Ensure all four jumpers on JP3 are shorted to observe the LED glowing ON and OFF before dow...

Page 90: ...alling edge triggered and active high interrupts are rising edge trig gered In the example the following register configurations are done in extr_int c for setting up the interrupts INT0 and INT1 PORT...

Page 91: ...Method to Download Firmware Image to External I2C EEPROM on page 69 8 12 1 Testing the Example The function generator can be set to generate a square wave of a known frequency use a low fre quency fo...

Page 92: ...for reading the data on the control endpoint Click on Vend Req The following figure summarizes the entire operation Figure 8 10 A2 Vendor Command Read Operation using Cyconsole Observe the contents re...

Page 93: ...rol endpoint Click on Transfer Data button Figure 8 12 summarizes the entire operation Figure 8 12 A2 Vendor Command Read Operation using CyControlCenter To write the contents to small EEPROM select D...

Page 94: ...utton and observe the RAM memory getting programmed Figure 8 14 summarizes the entire operation Figure 8 14 A3 Vendor Command Read Operation using CyControlCenter To read the contents from RAM memory...

Page 95: ...ummarizes the command trigger using CyControlCenter Figure 8 17 A8 Vendor Command Operation using CyControlCenter 5 0xA9 command Read Write Large EEPROM To read write the contents of Large EEPROM U5 s...

Page 96: ...18 A9 Vendor Command Operation using CyControlCenter 6 0xAA 0xAB Setting I2C interface frequency Using this command the I2C interface frequency can be set to 100 kHz or 400 kHz Figure 8 19 summarizes...

Page 97: ...for the relevant Windows OS can be cho sen with respect to this path as follows a Windows2000 w2k x86 b Windows XP 32 bit wxp x86 c Windows XP 64 bit wxp x64 d Windows Vista 32 bit wlh vista x86 e Wi...

Page 98: ...onitor script file 8 Open Keil Vision2 IDE by selecting Start Programs Keil Vision2 Open the dev_io project file at Installed_directory Version Firmware dev_io as shown in Figure 8 20 and Figure 8 21...

Page 99: ...Firmware Examples Figure 8 22 Serial Ports List in Device Manager Window 10 Click on Project Options for Target Target1 in Keil Vision2 IDE and select the Debug Tab in the new pop up window as shown...

Page 100: ...er and select the relevant COM port for the UART cable connected to SIO 1 port as shown in Figure 8 25 and Figure 8 26 Figure 8 25 Settings Button for Keil Debug Monitor Figure 8 26 UART Settings for...

Page 101: ...f dev_io c file in Keil uVision2 IDE 15 Use the Step Over button to step through the code by selecting View Debug Toolbar Figure 8 29 Enabling Debug Toolbar View in Keil 16 View the output window to v...

Page 102: ...Debug Toolbar View in Keil 18 Set a breakpoint by selecting the first line in the case KEY_F2 section which is in file dev_io c To set or remove a breakpoint double click the line or right click on t...

Page 103: ...sion2 IDE Figure 8 33 Run button in Keil 20 Now press F3 on the development board the KEY_F2 label equates to the F3 button Program execution halts in the Keil IDE and the LED does not increment 21 Pr...

Page 104: ...104 EZ USB Development Kit User Guide Doc 001 66390 Rev D EZ USB Development Kit Firmware Examples...

Page 105: ...for EZ USB development boards CY3674_Board_Layout brd CY3684_Board_Layout brd This is an editable layout file for EZ USB development boards The file can be viewed using the Allegro PCB software Proto...

Page 106: ...ce high speed USB printed circuit boards to comply with the USB specification This note is applicable to all Cypress high speed USB solutions Some Cypress high speed USB chips have separate applicatio...

Page 107: ...ng with pitfalls to consider and avoid while using the FX2 FX2LP for designing high bandwidth applications AN67442 SPI Implementation Using Serial Mode 0 of EZ USB FX2LP This application note describe...

Page 108: ...ow to build an application on Visual C to send bulk data out and receive it back over a bulk endpoint of FX2LP which is developed using Cypress SuiteUSB C library CyUSB dll for creating Windows applic...

Page 109: ...ch tasks unique to an applica tion are accomplished This application note demonstrates how you can quickly design USB ven dor commands to perform specific features of products In addition using the Cy...

Page 110: ...110 EZ USB Development Kit User Guide Doc 001 66390 Rev D Resources...

Page 111: ...tches addr A15 A14 A13 A12 A11 nRD high nibble of the address bus RD equations The 3681 board turns PF0 on at 0x80xx reads and off at 0x81xx reads This board turns PF0 on at 0x8xxx reads and off at 0x...

Page 112: ...mem selects and strobes OFF 0 1 0 1 1 1 1 0 01 top of mem for rd or psen 0 1 1 1 0 0 0 0 PSEN only 0 1 1 0 1 0 0 0 RD only 0 1 1 1 1 0 1 0 Neither RD or PSEN 1 1 0 1 0 0 0 0 11 top and bot mem for rd...

Page 113: ...EZ USB Development Kit User Guide Doc 001 66390 Rev D 113 A 2 Board Layout...

Page 114: ...uFd 0805 R78 10K TP5 GND 0805 C6 0 1 uFd 0805 R74 390 0805 C40 0 1 uFd 0805 R16 22 0805 R28 100K a b f g e d c U9 HDSP E101 1 2 3 9 10 6 7 8 11 13 14 a f an1 dec c nc e d g b an2 0805 C20 0 1 uFd 3216...

Page 115: ...ted in quickly Q5 Where is the EZ USB data sheet A5 See Installed_directory Version Documentation EZ USB FX1 Data sheet pdf for the CY3674 and Installed_directory Version Documentation EZ USB R FX2LP...

Page 116: ...ariables which can be done by run ning the batch file Installed_directory Version Bin setenv bat before typing build Again if the kit software or Keil tools are installed to a non default location you...

Page 117: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Cypress Semiconductor CY3674...

Reviews: