usb protocol
TRANSCRIPT
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 1/14
USB Protocol
PC to DSK board communication ova high speed USB link
Bharath Bhushan Lohray
Summer – II 2009
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 2/14
DSK 6713PC CY7C68013A
EMIF
Objective
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 3/14
PC
Components - USB
CY7C68013A
E M I F - F
I F O
U S B
DSK 6713 Board
EP 0
EP1 IN
EP 2
EP 4
EP 6
EP 8
Control Endpoint
EP1 OUTFull & High Speed: Up to30 endpoints
configurable as either IN
or OUT
Low Speed: 2 additional
endpoints
EP 2
EP 4
EP 6
EP 8
Corresponding Slave
FIFOs. No access to
EP0. CPU only access
to EP1
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 4/14
PC
Components - USB
CY7C68013A
E M I F - F
I F O
U S B
DSK 6713 Board
Endpoint Buffering Schemes
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 5/14
PC
Components - USB
CY7C68013A
E M I F - F
I F O
U S B
DSK 6713 Board
Bulk Mode Packets
Interrupt Mode Packets
Isochronous Mode
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 6/14
PC
Components - USB
CY7C68013A
E M I F - F
I F O
U S B
DSK 6713 Board
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 7/14
PC
Components - USB
CY7C68013A
E M I F - F
I F O
U S B
DSK 6713 Board
Start
Load Configuration
Enable InterruptsReNumerate
Got SUD?No
Service Request from Host
Yes
Endpoint
Interrupts
Service endpoint
Return
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 8/14
PC
Components - USB
CY7C68013A
E M I F - F I F O
U S
B
DSK 6713 Board
dalida.com technical Specification Sheet
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 9/14
PC
Components - USB
CY7C68013A
E M I F - F I F O
U S
B
DSK 6713 Board
C Y 7 C 6 8 0 1 3 A
48 MHz
PB0-PB7
PD0-PD7
EP2 Half Full (>=512 bytes)
EP6 Half Full (>=512 bytes)
SLRD
SLWR
SLOE
CE + ARE
CE + AW
CE + AO
Bus Powered
Ex
In
EXT5
EXT4
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 10/14
Components - PC
CY7C68013A
E M I F - F I F O
U S
B
DSK 6713 Board
NI VISA Driver Generation
BhL_CY_FX2 Bo
BhL_CY_FX2 Bo
bcdedit.exe -s
C PC
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 11/14
Waveform Generation
Components - PC
CY7C68013A
E M I F - F I F O
U S
B
DSK 6713 Board
USB Classes & VISA USB Handling
Reading & Writing to and from a VISA Resource in Lab View
Opening & Closing VISA Resource in Lab View
C t DSK
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 12/14
PC
Components - DSK
CY7C68013A
E M I F - F I F O
U S
B
DSK 6713 Board
A I C 2 3
PB0-PB7
PD0-PD7
EP2 Half Full (>=512 bytes)
EP6 Half Full (>=512 bytes)
ARE
AWE
AOE
EXT5
EXT4
CE
McBSP
EP2 Buffer
EP6 Buffer
Rx Ping
Rx Pong
Tx Ping
Tx Pong
DSP
Routine
DSP
Routine
EXT5
512 b
buffe
On co
cleare
ready
Tx Pin
sent t
C t DSK
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 13/14
PC
Components - DSK
CY7C68013A
E M I F - F I F O
U S
B
DSK 6713 Board
A I C 2 3
PB0-PB7
PD0-PD7
EP2 Half Full (>=512 bytes)
EP6 Half Full (>=512 bytes)
ARE
AWE
AOE
EXT5
EXT4
CE
McBSP
EP2 Buffer
EP6 Buffer
Rx Ping
Rx Pong
Tx Ping
Tx Pong
DSP
Routine
DSP
Routine
On co
pong
are o
buffe
that t
buffe
An EDtrans
over
Transfer Complete
Interrupt
Trigger EDMA
Reference
5/11/2018 USB Protocol - slidepdf.com
http://slidepdf.com/reader/full/usb-protocol-55a35aff1a0a5 14/14
Reference
•Cypress CY7C68013A Datasheet
•EZ-USB Technical Reference Manual
•USB Complete – Jan Axelson