Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Lecture 17
Addressing Modes of TMS320c54x
Last Session
MAC unit
ALU
Barrel Shifter
CSSU
Exponent encoder
24/ 02/ 14
Todays Session
Addressing Modes
24/ 02/ 14
24/ 02/ 14
Immediate Addressing
Absolute Addressing
Accumulator Addressing
Direct Addressing
Indirect Addressing
Memory-Mapped Register Addressing
Stack Addressing
Dr.Shikha Tripathi,ASE, Bangalore
Immediate addressing
Value encoded in the instruction.
Two types of values:
Short immediate (3/5/8/9 bits)
Long immediate (16 bits)
# indicates immediate.
24/ 02/ 14
Example
24/ 02/ 14
LD
LD
LD
#80h, A
LD
; 8-bit constant
Absolute Addressing
Complete address is specified
Address is always of 16-bits
So, instruction is of 2 words
4 types:
dmad addressing
pmad addressing
PA addressing
*(lk) addressing
24/ 02/ 14
Example
MVKD SAMPLE, *AR5 ;dmad addr
MVDK *AR3, DATA1 ; dmad addr
MVPD COEFF, *AR7 ; pmad addr
PORTR FIFO, *AR5 ; PA addr
LD
24/ 02/ 14
Accumulator Addressing
Use Acc (A/B) contents as address.
Used to address program memory as data.
Two instructions:
READA Smem
WRITA Smem
24/ 02/ 14
Direct Addressing
Lower 7-bit dma is an address offset
CPL in ST1 used for selection.
Types:
DP-Referenced Direct addressing
Can access upto 128 locations (7 bits) of 512 pages(9 bits
of DP) in DMA
24/ 02/ 14
10
11
Next Session
Addressing Modes Cont..
24/ 02/ 14
12
Thank You
24/ 02/ 14
13
Thank You
24/ 02/ 14
14