
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
805 of 808
continued >>
NXP Semiconductors
UM10360
Chapter 35: LPC17xx Supplementary information
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561
Functional description . . . . . . . . . . . . . . . . . 562
DMA controller functional description . . . . . . 562
AHB slave interface . . . . . . . . . . . . . . . . . . . 563
Control logic and register bank . . . . . . . . . . . 563
DMA request and response interface . . . . . . 563
Channel logic and channel register bank . . . 563
Interrupt request . . . . . . . . . . . . . . . . . . . . . . 563
AHB master interface . . . . . . . . . . . . . . . . . . 563
Channel hardware . . . . . . . . . . . . . . . . . . . . 566
DMA request priority . . . . . . . . . . . . . . . . . . . 566
Interrupt generation . . . . . . . . . . . . . . . . . . . 566
DMA system connections . . . . . . . . . . . . . . . 566
DMA request signals . . . . . . . . . . . . . . . . . . 566
DMA response signals . . . . . . . . . . . . . . . . . 566
DMA request connections . . . . . . . . . . . . . . 567
Register description . . . . . . . . . . . . . . . . . . . 567
DMA Interrupt Terminal Count Request Status
register (DMACIntTCStat - 0x5000 4004). . . 569
DMA Interrupt Terminal Count Request Clear
register (DMACIntTCClear - 0x5000 4008) . 570
DMA Interrupt Error Status register
(DMACIntErrStat - 0x5000 400C) . . . . . . . . . 570
DMA Interrupt Error Clear register
(DMACIntErrClr - 0x5000 4010) . . . . . . . . . . 570
DMA Raw Interrupt Terminal Count Status register
(DMACRawIntTCStat - 0x5000 4014). . . . . . 571
DMA Raw Error Interrupt Status register
(DMACRawIntErrStat - 0x5000 4018). . . . . . 571
DMA Enabled Channel register
(DMACEnbldChns - 0x5000 401C). . . . . . . . 571
DMA Software Burst Request register
(DMACSoftBReq - 0x5000 4020) . . . . . . . . . 572
DMA Software Single Request register
(DMACSoftSReq - 0x5000 4024) . . . . . . . . . 572
DMA Software Last Burst Request register
(DMACSoftLBReq - 0x5000 4028) . . . . . . . . 573
DMA Software Last Single Request register
(DMACSoftLSReq - 0x5000 402C). . . . . . . . 573
DMA Channel registers . . . . . . . . . . . . . . . . 575
DMA Channel Source Address registers
(DMACCxSrcAddr - 0x5000 41x0) . . . . . . . . 575
DMA Channel Destination Address registers
(DMACCxDestAddr - 0x5000 41x4) . . . . . . . 576
DMA Channel Linked List Item registers
(DMACCxLLI - 0x5000 41x8) . . . . . . . . . . . . 576
Protection and access information. . . . . . . . 577
DMA Channel Configuration registers
(DMACCxConfig - 0x5000 41x0) . . . . . . . . . 578
Lock control . . . . . . . . . . . . . . . . . . . . . . . . . 580
Transfer type . . . . . . . . . . . . . . . . . . . . . . . . 580
Using the DMA controller . . . . . . . . . . . . . . . 580
Programming the DMA controller. . . . . . . . . 580
Enabling the DMA controller . . . . . . . . . . . . 580
Disabling the DMA controller . . . . . . . . . . . . 580
Enabling a DMA channel . . . . . . . . . . . . . . . 580
Disabling a DMA channel. . . . . . . . . . . . . . . 580
Setting up a new DMA transfer . . . . . . . . . . 581
Halting a DMA channel . . . . . . . . . . . . . . . . 581
Programming a DMA channel . . . . . . . . . . . 581
Flow control . . . . . . . . . . . . . . . . . . . . . . . . . 582
Peripheral-to-peripheral DMA flow. . . . . . . . 583
Memory-to-memory DMA flow . . . . . . . . . . . 583
Interrupt requests . . . . . . . . . . . . . . . . . . . . . 584
Hardware interrupt sequence flow . . . . . . . . 584
Address generation . . . . . . . . . . . . . . . . . . . 584
Word-aligned transfers across a boundary . 585
Scatter/gather . . . . . . . . . . . . . . . . . . . . . . . 585
Linked list items . . . . . . . . . . . . . . . . . . . . . . 585
Chapter 32: LPC17xx Flash memory interface and programming
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Memory map after any reset. . . . . . . . . . . . . 588
Criterion for Valid User Code . . . . . . . . . . . . 589
Communication protocol . . . . . . . . . . . . . . . . 590
ISP command format . . . . . . . . . . . . . . . . . . 590
ISP response format . . . . . . . . . . . . . . . . . . 590
ISP data format . . . . . . . . . . . . . . . . . . . . . . 590
ISP flow control . . . . . . . . . . . . . . . . . . . . . . 590
ISP command abort . . . . . . . . . . . . . . . . . . . 590
Interrupts during IAP . . . . . . . . . . . . . . . . . . 591