AT32UC3C2512C Automotive Atmel Corporation, AT32UC3C2512C Automotive Datasheet - Page 886

no-image

AT32UC3C2512C Automotive

Manufacturer Part Number
AT32UC3C2512C Automotive
Description
Manufacturer
Atmel Corporation
9166C–AVR-08/11
• Detailed description
• Multi packet mode for IN endpoints
The data is written according to this sequence:
If the endpoint uses several banks, the current one can be written while the previous one is
being read by the host. When the user clears FIFOCON, the next current bank may already be
clear and TXINI is set immediately.
An “Abort” stage can be produced when a zero-length OUT packet is received during an IN
stage of a control or isochronous IN transaction. The Kill IN Bank (KILLBK) bit in UECONn is
used to kill the last written bank. The best way to manage this abort is to apply the algorithm rep-
resented on
details about the KILLBK bit.
Figure 32-13. Abort Algorithm
In multi packet mode, the user can prepare n USB packets in the bank to be sent on a multiple
IN transaction. The packet sizes will equal UECFGn.EPSIZE unless the AUTO_ZLP option is
• When the bank is empty, TXINI and FIFOCON are set, which triggers an EPnINT interrupt if
• The user acknowledges the interrupt by clearing TXINI.
• The user reads the UESTAX.CURRBK field to see which the current bank is.
• The user writes the data to the current bank, located in RAM as described by its descriptor:
• The user should write the size of the IN packet into the USB descriptor:
• The user allows the controller to send the bank contents and switches to the next bank (if
TXINE is one.
EPn_ADDR_BK0/1.
EPn_PCKSIZE_BK0/1.BYTE_COUNT.
any) by clearing FIFOCON.
Figure 32-13 on page
TXINEC = 1
EPRSTn = 1
Abort Done
NBUSYBK
Endpoint
Abort
== 0?
Yes
No
Yes
886. See
KILLBKS = 1
KILLBK
No
== 1?
”Endpoint n Control Register” on page 935
Disable the TXINI interrupt.
Abort is based on the fact
that no bank is busy, i.e.,
that nothing has to be sent
Wait for the end of the
procedure
Kill the last written bank.
AT32UC3C
for more
886

Related parts for AT32UC3C2512C Automotive