Google Search

Thursday, November 10, 2011

DSP C PROGRAM to reveal the concept of circular buffering.


CIRCULAR BUFFERING

Aim: - To reveal the concept of circular buffering.

Apparatus: - TMS 320C 5416 processor

Program: -

            .include “5416_IV.asm”
            .data
            .word   1h,2h,3h,4h,5h            //  array of numbers //
            .text
            .include “intvect.asm”


Begin   STM    #1000h,AR5   //  data memory address //      
            STM    #2000h,AR6   //  output buffer //                   
STM    #4h,BK           //  loading the size of circular buffer to BK register //           
            STM    #20h,BRC
            RPTB  L1
            LD       *AR5+%,0,A
            STL     A,0,*AR6+
L1        NOP
            .end

Result: - The concept of circular buffering is observed

0 comments:

Post a Comment