STUDY OF ADDRESSING MODES USING TMS320C54 KIT
EX.NO:11
DATE:
AIM:
To study about direct, indirect and immediate addressing modes in TMS320C54 debugger
APPARATUS REQUIRED:
1. System with TMS 320C54 debugger software
2. TMS 320C54 Kit.
3. RS232 cable.
PROGRAM LOGIC:
IMMEDIATE ADDRESSING MODE:
1. Initialize data pointer with 100H data.
2. Load the accumulator with first data.
3. Add the second data with accumulator content.
DIRECT ADDRESSING MODE:
1. Initialize data pointer with 100H data.
2. Load the accumulator with first data, whose address is specified in the Instruction.
3. Add the accumulator content with second data, whose address is specified in the instruction.
4. Store the accumulator content in specified address location
IN-DIRECT ADDRESSING MODE:
1. Load the auxiliary register with address location of first data.
2. The auxiliary register (AR0) is modified indirectly as # symbol.
3. Load the second data into accumulator and perform addition operation.
4. Store the result
Program for immediate addressing mode:
.MMREGS
.TEXT
START:
LDP #100H
LACC #1241H
ADD #1200H
SACL 2H
HTL: END
Program for direct addressing mode:
.MMREGS
.TEXT
START:
LDP #100H
LACC 0H
ADD 1H
SACL 2H
HTL: END
Program for adding two numbers with indirect addressing mode
.MMREGS
.TEXT
START:
LAR AR0,#8000H
MAR *,AR0
LACC *+,0 ;WITH ZERO SHIFT
ADD *+ SACL *+
HTL: END
RESULT:
Thus, the arithmetic operations using TMS320c5416x kit was performed successfully.
SAMPLING OF INPUT SIGNAL AND DISPLAY USING TMS320C5X
EX NO: 12
DATE:
AIM:
To write a program to convert analog signals into digital signals using TMS320C54 debugger
APPARATUS REQUIRED:
1. System with VI debugger software
2. TMS 320C54 Kit.
3. CR0
4. Function Generator
PROGRAM LOGIC:
1. Initialize data pointer with 100H data
2. Give the analog signal as input
3. Introduce the time delay as per required
4. Observe the discrete signal as output
PROGRAM:
MMREGS
.TEXT LDP #100H
IN 0,06H
NOP
IN 0,04H
RPT #4FFH
NOP
OUT 0,04H
RPT #4FFH
NOP
B START
RESULT:
Thus the sampling process is verified and executed using TMS320C54X.