Datasheet
2−11
2.4.12 IEPSIZXY_n: Input Endpoint X-/Y-Buffer Size (n = 1 to 3)
76 5 43210
RSV S
6
S
5
S
4
S
3
S
2
S
1
S
0
R/O R/W R/W R/W R/W R/W R/W R/W
BIT NAME RESET FUNCTION
6−0 S[6:0] x X- and Y-buffer size:
000 0000b ³ Count = 0
000 0001b ³ Count = 1 byte
L
011 1111b ³ Count = 63 bytes
100 0000b ³ Count = 64 bytes
Any value ≥ 100 0001b produces unpredictable results.
7 RSV x Reserved = 0
2.5 Endpoint-0 Descriptor Registers
Unlike EDB-1 to EDB-3, which are defined as memory entries in SRAM, endpoint-0 is described by a set of 4 registers
(two for output and two for input). Table 2−5 defines the registers and their respective addresses used for EDB-0
description. EDB-0 has no Base-Address Register, because these addresses are hardwired to FEF8 and FEF0. Note
that the bit positions have been preserved to provide consistency with EDB-n (n = 1 to 3).
Table 2−5. Input/Output EDB-0 Registers
ADDRESS REGISTER NAME DESCRIPTION BASE ADDRESS
FF83 OEPBCNT_0 Output endpoint-0: byte-count register
FF82 OEPCNFG_0 Output endpoint-0: configuration register FEF0
FF81 IEPBCNT_0 Input endpoint-0: byte-count register
FF80 IEPCNFG_0 Input endpoint-0: configuration register FEF8
2.5.1 IEPCNFG_0: Input Endpoint-0 Configuration Register
76 5 43210
UBME
RSV TOGLE RSV STALL USBIE RSV RSV
R/W R/O R/O R/O R/W R/W R/O R/O
BIT NAME RESET FUNCTION
1−0 RSV 0 Reserved = 0
2 USBIE 0
USB interrupt enable on transaction completion. Set/clear by MCU.
2
USBIE
0
USBIE = 0 No interrupt
USBIE = 1 Interrupt on transaction completion
3 STALL 0
USB stall condition indication. Set/clear by MCU.
3
STALL
0
STALL = 0 No stall
STALL = 1 USB stall condition. If set by the MCU, a STALL handshake is initiated and the bit is cleared
automatically by the next setup transaction.
4 RSV 0 Reserved = 0
5 TOGLE 0 USB toggle bit. This bit reflects the toggle sequence bit of DATA0, DATA1.
6 RSV 0 Reserved = 0
7 UBME 0
UBM enable/disable bit. Set/clear by MCU.
7
UBME
0
UBME = 0 UBM cannot use this endpoint.
UBME = 1 UBM can use this endpoint.