SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 242
Version 1.1
from host.
20.9.8 USB Endpoint n Control Register (USB_EPnCTL, n = 1 ~ 6)
Address Offset: 0x1C, 0x20, 0x24, 0x28, 0x2C, 0x30
Reset value: 0x0000 0000
Bit
Name
Description
Attribute
Reset
31
ENDP_EN
EPn function enable bit
0: Disable EPn function. No handshake to EPn IN/OUT token.
1: Enable EPn function.
R/W
0
30:29
ENDP_STATE[1:0]
Endpoint Handshake State
00: NAK
For IN direction usage, device will handshake NAK to IN token.
For OUT direction usage, device will handshake NAK to OUT token.
01: ACK:
For IN direction usage, device will handshake data0/1 to IN token.
For OUT direction usage, device will handshake ACK to OUT token
and the following data0/1.
After IN/OUT ACK transaction completes, the ENDP_STATE will
automatically return to NAK state.
10/11: STALL
For IN direction usage, device will handshake STALL to IN token.
For OUT direction usage, device will handshake STALL to OUT token
and the following data0/1.
R/W
0
28:7
Reserved
-
-
0
6:0
ENDP_CNT[6:0]
Endpoint Byte Count
For IN direction usage, the ENDP_CNT indicates the byte count to be
uploaded to host.
For OUT direction usage, the ENDP_CNT indicates the byte count
received from host.
R/W
0
20.9.9 USB Endpoint Data Toggle Register (USB_EPTOGGLE)
Address Offset: 0x3C
Reset value: 0x0000 003F
Bit
Name
Description
Attribute
Reset
31:6
Reserved
R
0
5
EP6_DATA01
0: Clear EP6
‘s toggle bit to DATA0.
1: HW sets toggle bit automatically.
R/W
1
4
EP5_DATA01
0: Clear EP5
‘s toggle bit to DATA0.
1: HW sets toggle bit automatically.
R/W
1
3
EP4_DATA01
0:
Clear EP4‘s toggle bit to DATA0.
1: HW sets toggle bit automatically.
R/W
1
2
EP3_DATA01
0:
Clear EP3‘s toggle bit to DATA0.
1: HW sets toggle bit automatically.
R/W
1
1
EP2_DATA01
0:
Clear EP2‘s toggle bit to DATA0.
1: HW sets toggle bit automatically.
R/W
1
0
EP1_DATA01
0:
Clear EP1‘s toggle bit to DATA0.
1: HW sets toggle bit automatically.
R/W
1
20.9.10 USB Endpoint n Buffer Offset Register (USB_EPnBUFOS, n = 1 ~ 6)
Address Offset: 0x48, 0x4C, 0x50, 0x54, 0x58, 0x5C
Reset value: 0x0000 0000
Содержание SN32F280 Series
Страница 222: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 222 Version 1 1 A1D16...
Страница 263: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 263 Version 1 1 26 2 LQFP 64 PIN...
Страница 264: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 264 Version 1 1 26 3 LQFP 48 PIN...