
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
795 of 808
continued >>
NXP Semiconductors
UM10360
Chapter 35: LPC17xx Supplementary information
Transferring the data . . . . . . . . . . . . . . . . . . 232
Optimizing descriptor fetch . . . . . . . . . . . . . . 232
Ending the packet transfer . . . . . . . . . . . . . . 232
No_Packet DD . . . . . . . . . . . . . . . . . . . . . . . 233
Isochronous endpoint operation . . . . . . . . . . 233
Setting up DMA transfers . . . . . . . . . . . . . . . 233
Finding the DMA Descriptor . . . . . . . . . . . . . 233
Transferring the Data . . . . . . . . . . . . . . . . . . 233
DMA descriptor completion. . . . . . . . . . . . . . 234
Isochronous OUT Endpoint Operation Example. .
234
Setting up the DMA transfer. . . . . . . . . . . . . 237
Finding the DMA Descriptor . . . . . . . . . . . . . 237
Transferring the Data . . . . . . . . . . . . . . . . . . 237
Ending the packet transfer . . . . . . . . . . . . . . 238
Double buffered endpoint operation . . . . . . 238
Bulk endpoints . . . . . . . . . . . . . . . . . . . . . . . 238
Isochronous endpoints . . . . . . . . . . . . . . . . . 240
Chapter 12: LPC17xx USB Host controller
How to read this chapter . . . . . . . . . . . . . . . . 241
Basic configuration . . . . . . . . . . . . . . . . . . . . 241
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 241
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . 242
Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
Pin description . . . . . . . . . . . . . . . . . . . . . . . 243
USB host usage note . . . . . . . . . . . . . . . . . . 243
Software interface . . . . . . . . . . . . . . . . . . . . 243
Register map . . . . . . . . . . . . . . . . . . . . . . . . 243
USB Host Register Definitions . . . . . . . . . . . 244
Chapter 13: LPC17xx USB OTG controller
How to read this chapter . . . . . . . . . . . . . . . . 245
Basic configuration . . . . . . . . . . . . . . . . . . . . 245
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 245
Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Modes of operation . . . . . . . . . . . . . . . . . . . . 246
Pin configuration . . . . . . . . . . . . . . . . . . . . . . 246
Connecting USB as a host . . . . . . . . . . . . . . 248
Connecting USB as device . . . . . . . . . . . . . . 248
Register description . . . . . . . . . . . . . . . . . . . 248
OTG Timer Register (OTGTmr - 0x5000 C114) . .
252
OTG Clock Status Register (OTGClkSt -
0x5000 CFF8) . . . . . . . . . . . . . . . . . . . . . . . 253
I2C Receive Register (I2C_RX - 0x5000 C300) .
253
I2C Transmit Register (I2C_TX - 0x5000 C300) .
254
I2C Status Register (I2C_STS - 0x5000 C304) . .
254
I2C Control Register (I2C_CTL - 0x5000 C308) .
256
I2C Clock High Register (I2C_CLKHI -
0x5000 C30C) . . . . . . . . . . . . . . . . . . . . . . . 257
I2C Clock Low Register (I2C_CLKLO -
0x5000 C310) . . . . . . . . . . . . . . . . . . . . . . . 257
Interrupt handling . . . . . . . . . . . . . . . . . . . . . 257
HNP support . . . . . . . . . . . . . . . . . . . . . . . . . 258
B-device: peripheral to host switching . . . . . 259
A-device: host to peripheral HNP switching. 262
Clocking and power management . . . . . . . . 266
Device clock request signals . . . . . . . . . . . . 267
Host clock request signals . . . . . . . . . . . . . . 268