Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Need Sample Delay Program in Assembly language for TMS320C6745

$
0
0

Hi,

   am using tms320c6745 kit, now i started writing the assembly coding for this processor in code composer studio. am doing led interfacing assembly code. toggling the led i have done through some instruction and i have checked the code by single step executing, led was blinking correctly. to run continuously i need 1 milli second delay program in assembly coding. i tried . but it not returning from the delay program.

Main Program:

Start    MVKL    0x0FFF0000,A2    
            MVKH    0x0FFF0000,A2
            STW        A2,*A1
            CALL    DELAY
            
            MVKL    0x00000000,A2    
            MVKH    0x00000000,A2
            STW        A2,*A1
            CALL    DELAY

Delay Program:

DELAY        MVKL    0x00007FFF,A3
                    MVKH    0x00007FFF,A3

Loop           SUB        A3,1,A3
                    NOP        3
                    B        Loop   

    My question is , once the code entered in delay it's not returning to main program . ( in 8051 we have RET instruction ) is their any other special instruction to return to main function. ?

Many Thanks,

Thiyagarajan.S


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>