📄 impulse.lst
字号:
dspa -q -l -s -i../../../rtmon -i../../../sys/bldc3_2/asm -i..\..\..\rtmon -i..\..\..\sys\bldc3_2\asm -v2xx -iC:/ti/c2400/cgtools/include -g impulse.asm impulse.obj
TMS320C24xx COFF Assembler Version 7.02 Sun Apr 27 20:34:09 2003
Copyright (c) 1987-2002 Texas Instruments Incorporated
impulse.asm PAGE 1
1 ;===========================================================================
2 ; File Name: impulse.asm
3 ;
4 ; Module Name: IMPULSE
5 ;
6 ; Initialization Routine: IMPULSE_INIT
7 ;
8 ; Originator: Digital Control Systems Group
9 ; Texas Instruments
10 ;
11 ; Description: This module implements a periodic impulse function. The
12 ; output variable ig_out is set to 7FFF for 1 sampling period.
13 ; The period of the output signal ig_out is specified by the
14 ; input ig_period.
15 ;
16 ; |~~~~~~~~~~~~~~~|
17 ; | |
18 ; ig_period o------>| IMPULSE |----->o ig_out
19 ; | |
20 ; |_______________|
21 ;
22 ;
23 ;
24 ;=====================================================================================
25 ; History:
26 ;-------------------------------------------------------------------------------------
27 ; 9-15-2000 Release Rev 1.0
28 ;=============================================================================
29 ;(To use this Module, copy this section to main system file)
30 ; .ref IMPULSE, IMPULSE_INIT ;function call
31 ; .ref ig_period, ig_out ;Input/output
32 ;=============================================================================
33 ;Module definitions for external reference.
34 .def IMPULSE, IMPULSE_INIT ;function call
35 .def ig_period, ig_out ;Input/output
36
37 ;=============================================================================
38 .include x24x_app.h
39 ;=============================================================================
40 ;Variable Definitions for impulse module
41 ;-----------------------------------------------------------------------------
42
43 0000 ig_skp_cnt .usect "impulse",1 ;
44 0001 ig_period .usect "impulse",1 ;Time period for ig_out
45 0002 ig_out .usect "impulse",1 ;Impulse output ig_out
46
47 ;=============================================================================
48 0000 IMPULSE_INIT:
49 ;=============================================================================
50 0000 bc00- LDP #ig_out
51 0001 ae00- SPLK #0h, ig_skp_cnt
0002 0000
52 0003 ae01- SPLK #1000h, ig_period ;default value
0004 1000
TMS320C24xx COFF Assembler Version 7.02 Sun Apr 27 20:34:09 2003
Copyright (c) 1987-2002 Texas Instruments Incorporated
impulse.asm PAGE 2
53 0005 ef00 RET
54
55 ;=============================================================================
56 0006 IMPULSE:
57 ;=============================================================================
58 0006 bc00- LDP #ig_out
59 0007 ae02- SPLK #0h, ig_out ;always clear Impulse output on entry
0008 0000
60 0009 1000- LACC ig_skp_cnt ;check skip counter
61 000a b801 ADD #1 ;increment & store
62 000b 9000- SACL ig_skp_cnt
63 000c 3001- SUB ig_period
64 000d e344 BCND IG_END, LT ;Skip setting Impulse high.
000e 0013'
65 000f ae02- SPLK #7FFFh, ig_out
0010 7fff
66 0011 ae00- SPLK #0, ig_skp_cnt ;reset skip counter.
0012 0000
67 0013 IG_END
68 0013 ef00 RET
69
70
71
No Errors, No Warnings
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -