SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 1135

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
39.6.2.11
Name:
Address:
Access:
• BYCT: Byte Count
This field is set with the byte count of the FIFO.
For IN endpoints, incremented after each byte written by the software into the endpoint and decremented after each byte
sent to the host.
For OUT endpoints, incremented after each byte received from the host and decremented after each byte read by the soft-
ware from the endpoint.
This field may be updated one clock cycle after the RWALL bit changes, so the user should not poll this field as an interrupt
bit.
• CFGOK: Configuration OK Status
This bit is updated when the UOTGHS_DEVEPTCFGx.ALLOC bit is written to one.
T h i s b i t i s s e t i f t h e e n d p o i n t x n u m b e r o f b a n k s ( U O T G H S _ D E V E P T C F G x . E P B K ) a n d s i z e
(UOTGHS_DEVEPTCFGx.EPSIZE) are correct compared to the maximal allowed number of banks and size for this end-
point and to the maximal FIFO size (i.e. the DPRAM size).
I f t h i s b i t i s c l e a r e d , t h e u s e r s h a l l r e w r i t e c o r r e c t v a l u e s t o t h e U O T G H S _ D E V E P T C F G x . E P B K a n d
UOTGHS_DEVEPTCFGx.EPSIZE fields.
• CTRLDIR: Control Direction
This bit is set after a SETUP packet to indicate that the following packet is an IN packet.
This bit is cleared after a SETUP packet to indicate that the following packet is an OUT packet.
Writing a zero or a one to this bit has no effect.
• RWALL: Read-write Allowed
This bit is set for IN endpoints when the current bank is not full, i.e., the user can write further data into the FIFO.
This bit is set for OUT endpoints when the current bank is not empty, i.e., the user can read further data from the FIFO.
This bit is never set if UOTGHS_DEVEPTIMRx.STALLRQ is one or in case of error.
This bit is cleared otherwise.
This bit shall not be used for control endpoints.
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12
SHORTPACKET
31
23
15
7
CURRBK
Device Endpoint x Status Register
UOTGHS_DEVEPTISRx [x=0..9]
0x400AC130
Read-only 0x0100
STALLEDI/
CRCERRI
30
22
14
6
BYCT
OVERFI
29
21
13
5
NBUSYBK
HBISOFLUSHI
NAKINI/
28
20
12
4
HBISOINERRI
NAKOUTI/
BYCT
27
19
11
3
ERRORTRANS
UNDERFI
RXSTPI/
CFGOK
26
18
10
2
CTRLDIR
RXOUTI
25
17
9
1
DTSEQ
SAM3X/A
SAM3X/A
RWALL
TXINI
24
16
8
0
1135
1135

Related parts for SAM3X8E