at91cap7e ATMEL Corporation, at91cap7e Datasheet - Page 437

no-image

at91cap7e

Manufacturer Part Number
at91cap7e
Description
Customizable Microcontroller
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at91cap7e-NA-ZJ
Manufacturer:
Atmel
Quantity:
10 000
Figure 31-6. Data IN Transfer for Non Ping-pong Endpoint
Using Endpoints With Ping-pong Attribute
Figure 31-7. Bank Swapping Data IN Transfer for Ping-pong Endpoints
8549A–CAP–10/08
USB Bus Packets
TXPKTRDY Flag
(UDP_CSRx)
TXCOMP Flag
(UDP_CSRx)
FIFO (DPR)
Content
Set by the firmware
Data IN
PID
Microcontroller
1 st Data Payload
2 nd Data Payload
3 rd Data Payload
?Data IN 1
Prevous Data IN TX
Interrupt Pending
The use of an endpoint with ping-pong attributes is necessary during isochronous transfer. This
also allows handling the maximum bandwidth defined in the USB specification during bulk trans-
fer. To be able to guarantee a constant or the maximum bandwidth, the microcontroller must
prepare the next data payload to be sent while the current one is being sent by the USB device.
Thus two banks of memory are used. While one is available for the microcontroller, the other
one is locked by the USB device.
When using a ping-pong endpoint, the following procedures are required to perform Data IN
transactions:
Cleared by Hw
Data IN 1
DPR access by the firmware
Bank 0
Endpoint 1
Bank 1
Endpoint 1
Bank 0
Endpoint 1
ACK
PID
Load In Progress
Write
Set by the firmware
Microcontroller Load Data in FIFO
USB Device
PID
Data IN
Bank 0
Endpoint 1
Bank 1
Endpoint 1
Bank 0
Endpoint 1
Read
Read and Write at the Same Time
NAK
PID
Cleared by Firmware
PID
DPR access by the hardware
Data IN
USB Bus
Data is Sent on USB Bus
Data IN 2?
2 nd Data Payload
3 rd Data Payload
1 st Data Payload
Data IN Packet
Data IN Packet
Data IN Packet
Payload in FIFO
Data IN 2
Cleared by Hw
AT91CAP7E
?
ACK
PID
Cleared by
Firmware
Interrupt
Pending
437

Related parts for at91cap7e