AT32WB415
Series Reference Manual
2022.04.13
Page 347
Ver 2.00
Bit 5
PRTOVRCCHNG
0x0
rw1c
Port overcurrent change
The controller sets this bit when the status of the port
overcurrent active bit (bit 4) in this register changes. This
bit can only be set by the controller. The application must
write 1 to clear this bit.
Bit 4
PRTOVRCACT
0x0
ro
Port overcurrent active
Indicates the overcurrent status of the port.
0: No overcurrent
1: Overcurrent condition
Bit 3
PRTENCHNG
0x0
rw1c
Port enable/disable change
The controller sets this bit when the status of the port
enable bit 2 in this register changes. This bit can only be
set by the controller. The application must write 1 to clear
this bit.
Bit 2
PRTENA
0x0
rw1c
Port enable
A port is enabled only by the controller after a reset
sequence. This port is enabled by an overcurrent
condition, a disconnected condition ro by the application.
The application cannot set this bit by a register write
operation. It can only clear this bit to disable the port. This
bit does not trigger any interrupt.
0: Port disabled
1: Port enabled
Bit 1
PRTCONDET
0x0
rw1c
Port connect detected
On a device connection detected, the controller sets this
bit using the host port interrupt bit in the controller register.
This bit can only be set by the controller. The application
must write 1 to clear this bit.
Bit 0
PRTCONSTS
0x0
ro
Port connect status
0: No device is connected to the port
1: A device is connected to the port
20.6.4.8 OTGFS host channelx characteristics register
(OTGFS_HCCHARx) (x = 0...8, where x= channel number)
Bit
Register
Reset value
Type
Description
Bit 31
CHENA
0x0
rw1s
Channel enable
This bit is set by the application and cleared by the OTG
host.
0: Channel disabled
1: Channel enabled
Bit 30
CHDIS
0x0
rw1s
Channel disable
The application sets this bit to stop transmitting or
receiving data on a channel, even before the transfer on
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