Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
USB System Architecture (USB 2.0).pdf
Скачиваний:
173
Добавлен:
03.05.2015
Размер:
7.03 Mб
Скачать

Chapter 6: LS/FS Transfer Types & Scheduling

Table 6-3: Synchronization Type and Feedback or Feed Forward Method Used

 

Source

Sink

 

 

 

 

 

 

Asynchronous

Free running source clock

Free running sink clock

 

Provides implicit feed forward.

Provides explicit feedback via a

 

The data rate is carried implic-

synchronous pipe. The endpoint

 

itly in the data stream based on

sends feedback to the host to

 

the number of samples it pro-

indicate its data rate. This feed-

 

duces in a frame.

back info is relative to the frame

 

 

(SOF) timing.

 

 

 

Synchronous

Source clock locked to USB clock

Sink clock locked to USB clock

 

Uses implicit feedback. The

Uses implicit feedback. The

 

feedback is supplied via the SOF

feedback is supplied via the SOF

 

packet. The endpoint slaves its

packet. The endpoint slaves its

 

sample clock to the SOF via a

sample clock to the SOF via a

 

PLL.

PLL.

 

 

 

Adaptive

Source clock locked to sink

Sink clock locked to data flow

 

Uses explicit feedback via an

Uses implicit feed forwarding.

 

isochronous pipe to determine

The data rate is carried implic-

 

the desired frequency of the

itly in the data stream based on

 

sink. The feedback info is rela-

the number of samples it pro-

 

tive to the frame (SOF) timing.

duces in a frame. The adaptive

 

 

endpoint synchronizes its sam-

 

 

ple clock to the data stream rate.

 

 

 

Source/Sink Combinations and Synchronization Methods

An analysis of the combinations of different source and sink types reveals who the responsible “party” is for establishing a synchronous connection. Each source/sink combination is discussed below.

129

USB System Architecture

Asynchronous Source and Asynchronous Sink. These devices have

no ability to adjust the rate at which they can deal with data. Therefore, the party responsible for managing the synchronous connection is the application software. (See Figure 6-3 on page 126.) The source provides feed forwarding information based on the number of samples delivered during each frame. This can be averaged by the application software over a 1 second interval to determine its data rate. The asynchronous sink provides feedback information to the application to specify the data rate at which it operates. Therefore, software knows the number of samples that must be delivered during each frame to accommodate the sink device’s sample clock. Software must provide sufficient buffering to manage the synchronous transfer between the two devices that may be operating at different data rates.

Asynchronous Source and Synchronous Sink. Both of these devices

operate at specific data rates. The asynchronous source data rate is calculated as in the previous example by determining the number of samples that it sends during each frame over a 1 second averaging interval. The synchronous sink operates at a sample rate that is synchronized to the frame clock. Software delivers information to the synchronous sink device at a rate that is synchronous to the 1kHz (full-speed device) or 8kHz (high-speed device) USB clock.

Asynchronous Source and Adaptive Sink. Synchronization between

these two devices can be managed by the adaptive device if the asynchronous rate is within the range supported by the adaptive device. The synchronous source delivers data at its rate and the adaptive sink adjusts its sample clock to match the incoming data stream. If the source data rate is outside the adaptive sink’s frequency range, then software will be needed to establish the synchronous connection.

Synchronous Source and Asynchronous Sink. This is the inverse

condition of that discussed in the Asynchronous Source and Synchronous Sink scenario. In this case software knows that the source is delivering data at a rate that is locked to frame timing and obtains data rate feedback from the asynchronous sink. Software then can deliver information to the sink at its required rate.

Synchronous Source and Synchronous Sink. These two devices are

both locked to the SOF timing, and thus have the ability to communicate synchronously. They both transfer data at a rate that is synchronous to the common SOF timing.

Synchronous Source and Adaptive Sink. The adaptive sink can lock

to the data rate delivered by the synchronous source.

130

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]