4 endpoint context registers, Endpoint context registers -27, Endpoint – Freescale Semiconductor MCF5480 User Manual

Page 901

Advertising
background image

Memory Map/Register Definition

MCF548x Reference Manual, Rev. 3

Freescale Semiconductor

29-27

29.2.4

Endpoint Context Registers

The endpoint registers are used to configure each of the individual endpoints. Some of the registers come

in pairs: an IN register and an OUT register. The current direction of the endpoint determines which of the

two registers controls the attributes for the specified endpoint. For example, if endpoint one is being used

as an IN endpoint, then only the IN registers are valid.

NOTE

Endpoint 0 is always present and bi-directional. The OUT version of all EP0

registers is the valid register.

29.2.4.1

Endpoint n Attribute Control Register (EP0ACR, EPnOUTACR,
EPn
INACR)

The endpoint attribute control register specifies the USB transfer type for this endpoint. This register is

read-only for endpoint 0 and read/write for all other endpoints.
These registers should be updated by the USB application before enabling the USB device for the first time

and again following a configuration change (that is, upon the reception of a SET_CONFIGURATION or

SET_INTERFACE request).

3

BSECNT

Bitstuffing error counter overflow flag.
0 The bitstuffing error counter has not overflowed.
1 The bitstuffing error counter has overflowed.

2

CRCECNT CRC error counter overflow flag.

0 The CRC error counter has not overflowed.
1 The CRC error counter has overflowed.

1

DPCNT

Dropped packet counter overflow flag.
0 The dropped packet counter has not overflowed.
1 The dropped packet counter has overflowed.

0

PPCNT

Packet passed counter overflow flag.
0 The packet passed counter has not overflowed.
1 The packet passed counter has overflowed.

7

6

5

4

3

2

1

0

R

0

0

0

0

0

0

TTYPE

W

Reset

0

0

0

0

0

0

Uninitialized

Reg

Addr

MBAR + 0xB101(EP0ACR); 0xB131(EP1OUTACR); 0xB161(EP2OUTACR);

0xB191(EP3OUTACR); 0xB1C1(EP4OUTACR); 0xB1F1(EP5OUTACR);

0xB221(EP6OUTACR)

Figure 29-26. Endpoint n Attribute Control Register OUT (EPnOUTACR)

Table 29-25. CNTOVR Field Descriptions (Continued)

Bits

Name

Description

Advertising
This manual is related to the following products: