
AT32F413
Series Reference Manual
2022.06.27
Page 323
Rev 2.00
Register
Offset
Reset value
USBFS_EPT4
0x10
0x0000
USBFS_EPT5
0x14
0x0000
USBFS_EPT6
0x18
0x0000
USBFS_EPT7
0x1C
0x0000
USBFS_CTRL
0x40
0x0003
USBFS_INTSTS
0x44
0x0000
USBFS_SOFRNUM
0x48
0x0XXX
USBFS_DEVADDR
0x4C
0x0000
USBFS_BUFTBL
0x50
0x0000
USBFS_CFG
0x60
0x0000
USBFS_TnADDR
[USB_BUFTBL] x 2 + n x 16
0xXXXX
USBFS_TnLEN
[USB_BUFTBL] x 2 + n x 16 + 4
0xXXXX
USBFS_RnADDR
[USB_BUFTBL] x 2 + n x 16 + 8
0xXXXX
USBFS_RnLEN
[USB_BTABLE] x 2 + n x 16 + 12 0xXXXX
21.5.1 USBFS endpoint n register (USBFS_EPTn), n=[0..7]
Bit
Register
Reset value
Type
Description
Bit 15
RXTC
0x0
rw0c
Rx transaction completed
This bit is set when an OUT/SETUP transaction is
completed, indicating that Rx transaction is complete.
0: Software clears this bit
1: OUT/SETUP transaction is completed.
Bit 14
RXDTS
0x0
tog
Rx Data Toggle (DAT0/DATA1) Synchronization
This is not ISO transfer. This bit indicates that the current
transaction is DATA0/DATA1.
0: DATA0
1: DATA1
Bit 13: 12 RXSTS
0x0
tog
Rx Status
This field indicates the endpoint status in response to the
OUT transaction of the host. There are four states:
DISABLE, NAK, STALL and ACK.
00: DISABLED, endpoint ignores all reception requests.
01: STALL, endpoint responds to all reception requests
with STALL packets
10: NAK, endpoint responds to all reception requests with
NAK packets
11: VALID, endpoint can be used for reception
Bit 11
SETUPTC
0x0
rog
Setup transaction completed
When the RXTC is set, this bit is used to determine
whether OUT/SETUP transaction is completed.
0: OUT transaction is completed
1: SETUP transaction is completed
Bit 10: 9
TRANS_TYPE
0x0
rw
Transfer type
This field defines four types of USB transfers: Control,
Bulk, Interrupt and ISO.
00: BULK endpoint, can work with EXF bit register
01: CTRL endpoint, can work iwth EXF bit register
10: ISO endpoint
11: INT endpoint