AN2131-DK001 Cypress Semiconductor Corp, AN2131-DK001 Datasheet - Page 143

KIT EZ-USB DEVELOPMENT BOARD

AN2131-DK001

Manufacturer Part Number
AN2131-DK001
Description
KIT EZ-USB DEVELOPMENT BOARD
Manufacturer
Cypress Semiconductor Corp
Datasheet

Specifications of AN2131-DK001

Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
428-1333
7.3.11 Sync Frame
The Sync_Frame request is used to establish a marker in time so the host and USB device
can synchronize multi-frame transfers over isochronous endpoints.
Suppose an isochronous transmission consists of a repeating sequence of five 300 byte
packets transmitted from host to device over EP8-OUT. Both host and device maintain
sequence counters that count repeatedly from 1 to 5 to keep track of the packets inside a
transmission. To start up in sync, both host and device need to reset their counts to 1 at the
same time (in the same frame).
To get in sync, the host issues the Sync_Frame request with EP=EP-OUT (byte 4). The
8051 firmware responds by loading IN0BUF with a two-byte frame count for some future
time; for example, the current frame plus 20. This marks frame “current+20” as the sync
frame, during which both sides will initialize their sequence counters to 1. The 8051 reads
the current frame count in the USBFRAMEL and USBFRAMEH registers.
Multiple isochronous endpoints can be synchronized in this manner. The 8051 keeps sep-
arate internal sequence counts for each endpoint.
Page 7-22
About USB Frames
The USB host issues a SOF (Start Of Frame) packet once every millisecond. Every SOF
packet contains an 11-bit (mod-2048) frame number. The 8051 services all isochronous
transfers at SOF time, using a single SOF interrupt request and vector. If the EZ-USB
core detects a missing SOF packet, it uses an internal counter to generate the SOF inter-
rupt.
Byte
0
1
2
3
4
5
6
7
bmRequestType
bRequest
wValueL
wValueH
wIndexL
wIndexH
wLengthL
wLengthH
Field
Value
0x0C “Sync_Frame”
0x82
0x00
0x00
0x00
Table 7-20. Sync Frame
EP
2
0
Chapter 7. EZ-USB CPU
IN, Endpoint
Endpoint number
LenL
LenH
Meaning
Send a frame number over
IN0BUF to synchronize endpoint
EP
EP(n):
0x08-0x0F: OUT8-OUT15
0x88-0x8F: IN8-IN15
8051 Response
EZ-USB TRM v1.9

Related parts for AN2131-DK001