Google Search

Thursday, November 10, 2011

OFFLINE PROCESSING EXAMPLES DSP USING C PROGRAM


OFFLINE PROCESSING EXAMPLES

The term offline processing indicates that the programs which you are designing are like simulation i.e. you are not using the real time inputs and outputs also you are seeing in the processor registers or memory only.


1. ADDITION

Aim: - To perform addition operation on two numbers residing in memory.

Apparatus: - TMS 320C 5416 processor

Program: -

            .include “5416_IV.asm”
            .data
            .word   0003h, 0004h  //  input numbers //
            .text
            .include “intvect.asm”


Begin   STM    #1000h,AR1   // memory location of first number //
            STM    #1001h,AR2   // memory location of second number //
            STM    #1500h,AR3   // memory location of result //
            LD       *AR1,A
            LD       *AR2,B
            ADD   A,0,B
            STL     B,*AR3
            .end

Result: - The result of addition operation can be recorded from the memory location.


0 comments:

Post a Comment