AT32F425
Series Reference Manual
2022.03.30
Page 401
Ver 2.01
that channel is complete. The application must wait for the
generation of the channel disabled interrupt before treating
the channel as disabled.
Bit 29
ODDFRM
0x0
rw
Odd frame
This bit is set / cleared by the application to indicate that
the OTG host must perform a transfer in an odd frame. This
bit is applicable for periodic transfers (synchronous and
interrupt) only.
0: Even frame
1: Odd frame
Bit 28: 22 DEVADDR
0x00
rw
Device address
This field is used to select the device that can serve as the
data source or receiver.
Bit 21: 20 MC
0x0
rw
Multi count (MC)
This field indicates to the host the number of transfers that
must be performed per frame for the periodic endpoint.
00: Reserved. This field generates undefined results.
01: 1 transaction
10: 2 transactions per frame
11: 3 transactions per frame
This field must be set to at least 0x01.
Bit 19: 18 EPTYPE
0x0
rw
Endpoint type
Indicates the transfer type selected.
00: Control transfer
01: Synchronous transfer
10: Bulk transfer
11: Interrupt transfer
Bit 17
LSPDDEV
0x0
rw
Low-speed device
The application sets this bit to indicate that this channel is
communicating to a low-speed device.
Bit 16
Reserved
0x0
resd
Kept at its default value.
Bit 15
EPTDIR
0x0
rw
Endpoint direction
Indicates whether the transfer is in IN or OUT.
0: OUT
1: IN
Bit 14: 11 EPTNUM
0x0
rw
Endpoint number
Indicates the endpoint number on the device (serving as
data source or receiver)
Bit 10: 0
MPS
0x000
rw
Maximum packet size
Indicates the maximum packet size of the corresponding
port.
20.6.4.9 OTGFS host channelx interrupt register ( OTGFS_HCINTx) (x
= 0...15, where x= channel number)
This register contains the status of a channel related to USB and AHB events, as shown in
The application must read this register when the host channels interrupt bit is set in the controller
interrupt register. Before reading this register, the application must read the host all channels interrupt
register to get the exact channel number ofr the host channel-n interrupt register. The application must
clear the corresponding bit in this register to clear the corresponding bits in the OTGFS_HAIN and
OTGFS_GINTSTS registers.
Bit
Register
Reset value
Type
Description
Bit 31: 11 Reserved
0x000000
resd
Kept at its default value.
Bit 10
DTGLERR
0x0
rw1c
Data toggle error
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 9
FRMOVRUN
0x0
rw1c
Frame overrun
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 8
BBLERR
0x0
rw1c
Babble error
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 7
XACTERR
0x0
rw1c
Transaction error
Indicates one of the following errors occurred on the USB