Usb Control Register (Usbctrl - 0Xe009 0028); Slave Mode Data Transfer - Philips LPC214 Series User Manual

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
software can read this register to determine the number of bytes it has transferred to the
EP_RAM. After each write to the Transmit Data register the hardware will decrement the
contents of the Transmit Packet Length register. For lengths larger than the Maximum
Packet Size, the software should submit data in steps of Maximum Packet Size and the
remaining extra bytes in the last packet. For example, if the Maximum Packet Size is 64
bytes and the data buffer to be transferred is of length 130 bytes, then the software
submits 64 bytes packet twice followed by 2 bytes in the last packet. So, a total of 3
packets are sent on USB. The USBTxPLen is a write only register.
Table 202: USB Transmit Packet Length register (USBTxPLen - address 0xE009 0024) bit
Bit
9:0
31:10 -

14.8.7 USB Control register (USBCtrl - 0xE009 0028)

This register controls the data transfer operation of the USB device. The USBCtrl is a
read/write register.
Table 203: USB Control register (USBCtrl - address 0xE009 0028) bit description
Bit
0
1
5:2
31:6 -

14.8.8 Slave Mode data transfer

When the software wants to read the data from an endpoint buffer it should make the
Read Enable bit high and should program the LOG_ENDPOINT in the USB control
register. The control logic will first fetch the packet length to the receive packet length
register. The PKT_RDY bit
Also the hardware fills the receive data register with the first word of the packet.
The software can now start reading the Receive Data register
end of packet is reached the Read Enable bit (RD_EN in
control logic and RxENDPKT bit is set in the Device Interrupt Status register. The software
should issue a Clear Buffer (refer to
read 1 byte (optional))" on page
next packet.
9397 750 XXXXX
User manual
description
Symbol
Value Description
PKT_LNGTH -
The remaining amount of data in bytes to be written to the
EP_RAM.
-
Reserved, user software should not write ones to reserved
bits. The value read from a reserved bit is not defined.
Symbol
Value
RD_EN
0
1
WR_EN
0
1
LOG_ENDPOINT -
-
(Table
Rev. 01 — 15 August 2005
Chapter 14: USB Device Controller
Description
Read mode control.
Read mode is disabled.
Read mode is enabled.
Write mode control.
Write mode is disabled.
Write mode is enabled.
Logical Endpoint number.
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is not
defined.
200) in the Packet Length Register is set along with this.
Section 14.9.13 "Clear Buffer (Command: 0xF2, Data:
230) command. The endpoint is now ready to accept the
UM10139
(Section
14.8.3). When the
Table
203) will be disabled by the
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
Reset
value
0x000
NA
Reset
value
0
0
0x0
NA
212

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2148Lpc2141Lpc2142Lpc2144Lpc2146

Table of Contents