Atmel Evaluation Kit AT91SAM9M10-G45-EK AT91SAM9M10-G45-EK データシート

製品コード
AT91SAM9M10-G45-EK
ページ / 1361
 835
SAM9M10 [DATASHEET]
6355F–ATARM–12-Mar-13
 
38.6.14
UDPHS  Endpoint  Control  Register
Name:
   UDPHS_EPTCTLx 
[x=0..6]
Addresses:
0xFFF7810C [0], 0xFFF7812C [1], 0xFFF7814C [2], 0xFFF7816C [3], 0xFFF7818C [4],       
0xFFF781AC [5], 0xFFF781CC [6]
Access:
 Read-only 
• EPT_ENABL:  Endpoint  Enable
0 = If cleared, the endpoint is disabled according to the device configuration. Endpoint 0 should always be enabled after a
hardware or UDPHS bus reset and participate in the device configuration.
1 = If set, the endpoint is enabled according to the device configuration.
• AUTO_VALID:  Packet  Auto-Valid  Enabled  (Not  for  CONTROL  Endpoints)
Set this bit to automatically validate the current packet and switch to the next bank for both IN and OUT endpoints.
For  IN  Transfer:
 
If this bit is set, then the UDPHS_EPTSTAx register TX_PK_RDY bit is set automatically when the current bank is full
and at the end of DMA buffer if the UDPHS_DMACONTROLx register END_B_EN bit is set.
The user may still set the UDPHS_EPTSTAx register TX_PK_RDY bit if the current bank is not full, unless the user
wants to send a Zero Length Packet by software.
For  OUT  Transfer:
 
If this bit is set, then the UDPHS_EPTSTAx register RX_BK_RDY bit is automatically reset for the current bank when
the last packet byte has been read from the bank FIFO or at the end of DMA buffer if the UDPHS_DMACONTROLx
register END_B_EN bit is set. For example, to truncate a padded data packet when the actual data transfer size is
reached.
The user may still clear the UDPHS_EPTSTAx register RX_BK_RDY bit, for example, after completing a DMA buffer
by software if UDPHS_DMACONTROLx register END_B_EN bit was disabled or in order to cancel the read of the
remaining data bank(s).
• INTDIS_DMA:  Interrupt  Disables  DMA
If set, when an enabled endpoint-originated interrupt is triggered, the DMA request is disabled regardless of the
UDPHS_IEN register EPT_x bit for this endpoint. Then, the firmware will have to clear or disable the interrupt source or
clear this bit if transfer completion is needed.
If the exception raised is associated with the new system bank packet, then the previous DMA packet transfer is normally
completed, but the new DMA packet transfer is not started (not requested).
31
30
29
28
27
26
25
24
SHRT_PCKT
23
22
21
20
19
18
17
16
BUSY_BANK
15
14
13
12
11
10
9
8
NAK_OUT
NAK_IN/ 
ERR_FLUSH
STALL_SNT/ 
ERR_CRISO/ 
ERR_NBTRA
RX_SETUP/ 
ERR_FL_ISO
TX_PK_RDY/ 
ERR_TRANS
TX_COMPLT
RX_BK_RDY
ERR_OVFLW
7
6
5
4
3
2
1
0
MDATA_RX
DATAX_RX
NYET_DIS
INTDIS_DMA
AUTO_VALID
EPT_ENABL