EasyManuals Logo

Texas Instruments C2000 Workshop Guide And Lab Manual

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #224 background imageLoading...
Page #224 background image
Direct Memory Access (DMA)
9 - 6 C2000 Microcontroller Workshop - Direct Memory Access Controller
DMA Examples
0x44440x0000
0x000040030x000040020x000040010x000040000x00000000
0x0000F0030x0000F0020x0000F0010x0000F0000x00000000
0x33330x0000
0x22220x0000
0x0000F000
0x11110x0000
Simple Example
Read/Write Data
Add Burst Step
to Address
Pointer
End Transfer
Add Transfer
Step to Address
Pointer
Moved
“Burst Size”
Words?
Moved
“Transfer Size”
Bursts?
Y
Y
N
N
Wait for event
to start/continue
transfer
SRC_ADDR_SHADOW
SRC_ADDR
SRC_BURST_STEP
SRC_TRANSFER_STEP
BURST_SIZE*
TRANSFER_SIZE*
Addr Value
0x11110xF000
0x22220xF001
0x33330xF002
0x44440xF003
Source Registers
0x0001
0x0001
0x0001
0x0001
DST_ADDR_SHADOW
DST_ADDR
DST_BURST_STEP
DST_TRANSFER_STEP
Addr Value
0x4000
0x4001
0x4002
0x4003
Destination Registers
0x00004000
0x0001
0x0001
2 words/burst
2 bursts/transfer
* Size registers are N-1
Objective: Move 4 words from memory location 0xF000 to
memory location 0x4000 and interrupt CPU at end of transfer
Start Transfer
Note: This example could also have been done using 1 word/burst and 4 bursts/transfer, or 4 words/burst
and 1 burst/transfer. This would affect Round-Robin progression, but not interrupts.
Interrupt to PIE
Data Binning Example
ADC Results
L7 SARAM
CH0
CH1
CH2
CH3
CH4
0x0B00
CH0
CH1
CH2
CH3
CH4
CH0
CH1
CH2
CH3
CH4
1
st
Conversion Sequence
0xF000
0xF003
0xF006
0xF009
0xF00C
0x0B01
0x0B02
0x0B03
0x0B04
0xF001
0xF004
0xF007
0xF00A
0xF00D
0xF002
0xF005
0xF008
0xF00B
0xF00E
2
nd
Conversion Sequence3
rd
Conversion Sequence
CH0
CH1
CH2
CH3
CH4
Objective: Bin 3 samples of 5 ADC channels, then interrupt the CPU

Table of Contents

Other manuals for Texas Instruments C2000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments C2000 and is the answer not in the manual?

Texas Instruments C2000 Specifications

General IconGeneral
BrandTexas Instruments
ModelC2000
CategoryMicrocontrollers
LanguageEnglish

Related product manuals