9397 750 XXXXX
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 01 — 15 August 2005
210
Philips Semiconductors
UM10139
Volume 1
Chapter 14: USB Device Controller
read or write accesses, the DMA logic can do 32-byte burst access. The CPU and DMA
engine operates at a higher clock frequency as compared to the SIE engine. The CPU
cycles are valuable and so the CPU is given the highest priority. The CPU clock frequency
is higher than the SIE operating frequency (12 MHz). The SIE will take 32 clock cycles for
a word transfer. In general, this time translates to more than 32 clock cycles of the CPU in
which it can do easily several accesses to the memory.
14.8.1 USB Endpoint Index register (USBEpIn - 0xE009 0048)
Each endpoint has a register carrying the Maxpacket size value for that endpoint.This is in
fact a register array. Hence before writing, this register has to be ‘addressed’ through the
Endpoint Index register. The USBEpIn is a write only register.
The Endpoint Index register will hold the physical endpoint number. Writing into the
Maxpacket size register will set the array element pointed by the Endpoint Index register.
14.8.2 USB MaxPacketSize register (USBMaxPSize - 0xE009 004C)
At power on control endpoint is assigned the Maxpacketsize of 8 bytes. Other endpoints
are assigned 0. Modifying MaxPacketSize register content will cause the buffer address of
the internal RAM to be recalculated. This is essentially a multi-cycle process. At the end of
it, the EP_RLZED bit will be set in the Device Interrupt Status register (
The USB MaxPacket register array indexing is shown in
. The USBMaxPSize is
a read/write register.
Table 197: USB Endpoint Index register (USBEpIn - address 0xE009 0048) bit description
Bit
Symbol
Description
Reset value
4:0
Phy_endpoint
Physical endpoint number (0-31)
0
31:5
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
NA
Table 198: USB MaxPacketSize register (USBMaxPSize - address 0xE009 004C) bit
description
Bit
Symbol
Description
Reset value
9:0
MaxPacketSize The maximum packet size value.
0x008
31:10
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
NA
Fig 51. USB MaxPacket register array indexing
Endpoint index
MPS*_EP0
* MPS - Maximum Packet Size
MPS*_EP31