⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 delayus.lst

📁 2812 开发库
💻 LST
字号:
TMS320C2000 COFF Assembler PC Version 3.09 Tue Dec 28 21:02:59 2004

Tools Copyright (c) 1996-2002 Texas Instruments Incorporated
DelayUs.asm                                                          PAGE    1

       1              ***********************************************************************
       2              * File: DelayUs.asm
       3              * Devices: TMS320F2812, TMS320F2811, TMS320F2810
       4              * Author: David M. Alter, Texas Instruments Inc.
       5              * History:
       6              *   09/08/03 - original (D. Alter)
       7              ***********************************************************************
       8              
       9              
      10              **********************************************************************
      11              * Function: DelayUs()                                                *
      12              * Description: Implements a time delay.                              *
      13              * DSP: TMS320F2812, TMS320F2811, TMS320F2810                         *
      14              * Last Modified: 08/12/03                                            *
      15              * Include files: none                                                *
      16              * Function Prototype: void DelayUs(unsigned int)                     *
      17              * Useage: DelayUs(Usec);                                             *
      18              * Input Parameters: unsigned int Usec = time delay in microseconds   *
      19              * Return Value: none                                                 *
      20              * Notes: The execution time of this routine is based upon a 150 MHz  *
      21              *        CPUCLK.  It is assumes that the function executes out of    *
      22              *        internal RAM.  If executing out of internal flash, the      *
      23              *        execution speed will be slightly slower.  However, the      *
      24              *        inner loop of this function is essentially invariant to the *
      25              *        memory it is running in.  Therefore, even when running in   *
      26              *        flash memory, the basic loop time will be only slightly     *
      27              *        longer than 1 us.                                           *   
      28              **********************************************************************
      29                     .def _DelayUs
      30 00000000              .text
      31              
      32 00000000       _DelayUs:
      33              
      34 00000000 F68F          RPT #143                      ;inner loop
      35 00000001 7700       || NOP
      36              
      37 00000002 1901          SUBB ACC,#1                   ;decrement outer loop counter
      38 00000003 56C2          BF _DelayUs, GT               ;branch for outer loop
         00000004 FFFD 
      39              
      40 00000005 0006          LRETR                         ;return
      41              
      42              ; end of function DelayUs() ******************************************
      43              
      44              
      45              ;end of file DelayUs.asm
      46                     .end

No Assembly Errors, No Assembly Warnings

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -