Question: How do I copy from extended program memory to data memory ?

Answer: Some variation of the following code sequence will work:

LDX    #_address,16,A       ; loads the upper 8 bits of the 24-bits
                            ; of #_address and shifts it into the
                            ; upper part of accumulator A.
OR     #_address,A,A        ; adds in the lower 16 bits of the
                            ; 24-bit #_address
READA  *AR2                 ; reads from program memory pointed
                            ; to by A to data address contained
                            ; in AR2.

Please note that this LDX instruction is not documented.


Device: TMS320C5xx
Category: Applications / Examples
Detail: Examples
Title: Extended  Program Memory to Data Memory
Source: Case from the TMS320 Hotline
Date: 4/30/98
GenId: a2

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!