beautypg.com

Splk – Texas Instruments TMS320C2XX User Manual

Page 318

background image

Store Long-Immediate Value to Data Memory

SPLK

7-165

Assembly Language Instructions

Syntax

SPLK #

lk, dma

Direct addressing

SPLK #

lk, ind [, ARn]

Indirect addressing

Operands

dma:

7 LSBs of the data-memory address

n:

Value from 0 to 7 designating the next auxiliary register

lk:

16-bit long immediate value

ind:

Select one of the following seven options:
* *+ *– *0+ *0– *BR0+ *BR0–

SPLK

#lk, dma

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

1

0

1

0

1

1

1

0

0

dma

lk

SPLK

#lk, ind [, ARn]

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

1

0

1

0

1

1

1

0

1

ARU

N

NAR

lk

Note:

ARU, N, and NAR are defined in Section 6.3,

Indirect Addressing Mode (page 6-9).

Execution

Increment PC, then ...
lk

data-memory address

Status Bits

None

Description

The SPLK instruction allows a full 16-bit pattern to be written into any data
memory location.

Words

2

Cycles for a Single SPLK Instruction

Program

Operand

ROM

DARAM

SARAM

External

DARAM

2

2

2

2+2p

SARAM

2

2

2, 3

2+2p

External

3+d

3+d

3+d

5+d+2p

† If the operand and the code are in the same SARAM block

Example 1

SPLK

#7FFFh,DAT3

;(DP = 6)

Before Instruction

After Instruction

Data Memory

Data Memory

303h

FE07h

303h

7FFFh

Opcode

Cycles