<< Chapter < Page Chapter >> Page >

SP is initialized for you in the core file and should not need to be modified. SP -referenced direct addressing is used by the pshd , pshm , popd , and popm instructions for stack manipulation, as well as by all subroutine calls and returns, which save program addresses onthe stack.

DP -referenced direct addressing is available wherever you see the Smem abbreviation in an assembly syntax description. The advantage of DP -referenced addressing over the *(lk) form described in the next section is that DP -referenced addressing will not add an extra instruction word (and corresponding extra machine cycle). Thedisadvantage is that it is limited to 128 words of contiguous memory, and you have to make sure that DP points to the right 128 words. DP may be changed with the ld instruction as needed.

Examples:

ld 10,A ; sets A = (contents of memory location DP + 10) add 6,B ; sets B = B + (contents of memory location DP + 6)

Make sure you understand that the numbers 10 and 6 above are interpreted as memory addresses, not data values. To get data values, you would need to use a pound sign in front of the numbers.

Absolute addressing: dmad, pmad, *(lk)/smem

This seems to be TI's term for all the forms of direct addressing which it does not call direct addressing! It isrepresented in assembly-instruction syntax-definitions using one of the above abbreviations ( *(lk) addressing is available when the syntax definition says Smem ).

Dmad

dmad (Data Memory ADdress) operands are used by mv xx data move instructions and represent 16-bit memory addresses in datamemory whose contents are used in the instruction.

Example:

f3ptr .word 0 ; reserve one word of storage; initialize to 0 . . . . mvdm f3ptr,AR4 ; set AR4 = memory address of f3ptr

Pmad

pmad (Program Memory ADdress) operands are used by the firs , macd , macp , mvdp , and mvpd instructions, as well as all subroutine calls and branching instructions. They represent 16-bit addresses in programmemory whose contents are used in the instruction, or jumped to in the case of branch instructions. Other thansubroutine calls and branches, the most common use of a pmad is for the firs instruction.

Example:

firs *AR3+,*AR4+,coefs

coefs is a label in the program section of the code, not the data section.

*(lk)

*(lk) addressing is a syntactic oddity. The asterisk symbol generally means that indirect addressing isbeing used (see below), but this is actually direct addressing with a 16-bit data memory address encoded in theinstruction's last word. The reason for the asterisk is that TI does set the "I" bit in the opcode, usually denoting indirect addressing, and this formcan only be used when an Smem is called for in the assembly syntax. Other bits in the low byte of thefirst instruction word tell the processor that the " *(lk) exception" is to be used, and to fetch the memory address in the next word (see the MOD bits onpage 5-10 of the CPU and Peripherals reference). You can easily recognize this addressing mode in .lst files because the low byte of the first instruction word always equals F8h .

Questions & Answers

anyone know any internet site where one can find nanotechnology papers?
Damian Reply
research.net
kanaga
Introduction about quantum dots in nanotechnology
Praveena Reply
what does nano mean?
Anassong Reply
nano basically means 10^(-9). nanometer is a unit to measure length.
Bharti
do you think it's worthwhile in the long term to study the effects and possibilities of nanotechnology on viral treatment?
Damian Reply
absolutely yes
Daniel
how to know photocatalytic properties of tio2 nanoparticles...what to do now
Akash Reply
it is a goid question and i want to know the answer as well
Maciej
characteristics of micro business
Abigail
for teaching engĺish at school how nano technology help us
Anassong
Do somebody tell me a best nano engineering book for beginners?
s. Reply
there is no specific books for beginners but there is book called principle of nanotechnology
NANO
what is fullerene does it is used to make bukky balls
Devang Reply
are you nano engineer ?
s.
fullerene is a bucky ball aka Carbon 60 molecule. It was name by the architect Fuller. He design the geodesic dome. it resembles a soccer ball.
Tarell
what is the actual application of fullerenes nowadays?
Damian
That is a great question Damian. best way to answer that question is to Google it. there are hundreds of applications for buck minister fullerenes, from medical to aerospace. you can also find plenty of research papers that will give you great detail on the potential applications of fullerenes.
Tarell
what is the Synthesis, properties,and applications of carbon nano chemistry
Abhijith Reply
Mostly, they use nano carbon for electronics and for materials to be strengthened.
Virgil
is Bucky paper clear?
CYNTHIA
carbon nanotubes has various application in fuel cells membrane, current research on cancer drug,and in electronics MEMS and NEMS etc
NANO
so some one know about replacing silicon atom with phosphorous in semiconductors device?
s. Reply
Yeah, it is a pain to say the least. You basically have to heat the substarte up to around 1000 degrees celcius then pass phosphene gas over top of it, which is explosive and toxic by the way, under very low pressure.
Harper
Do you know which machine is used to that process?
s.
how to fabricate graphene ink ?
SUYASH Reply
for screen printed electrodes ?
SUYASH
What is lattice structure?
s. Reply
of graphene you mean?
Ebrahim
or in general
Ebrahim
in general
s.
Graphene has a hexagonal structure
tahir
On having this app for quite a bit time, Haven't realised there's a chat room in it.
Cied
what is biological synthesis of nanoparticles
Sanket Reply
what's the easiest and fastest way to the synthesize AgNP?
Damian Reply
China
Cied
types of nano material
abeetha Reply
I start with an easy one. carbon nanotubes woven into a long filament like a string
Porter
many many of nanotubes
Porter
what is the k.e before it land
Yasmin
what is the function of carbon nanotubes?
Cesar
I'm interested in nanotube
Uday
what is nanomaterials​ and their applications of sensors.
Ramkumar Reply
how did you get the value of 2000N.What calculations are needed to arrive at it
Smarajit Reply
Privacy Information Security Software Version 1.1a
Good
Berger describes sociologists as concerned with
Mueller Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!





Source:  OpenStax, Dsp laboratory with ti tms320c54x. OpenStax CNX. Jan 22, 2004 Download for free at http://cnx.org/content/col10078/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Dsp laboratory with ti tms320c54x' conversation and receive update notifications?

Ask