📄 init.lst
字号:
dspa -l -s -v2xx -iC:/ti/c2400/cgtools/include -g init.asm C:/WINDOWS/Desktop/Core\init.obj
TMS320C24xx COFF Assembler Version 7.02 Tue Jul 31 13:34:26 2007
Copyright (c) 1987-2002 Texas Instruments Incorporated
init.asm PAGE 1
2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3 ;
4 ; Module : init.asm
5 ;
6 ; Purpose : initialize miscellaneous on-chip (TMS320F240) hardware.
7 ;
8 ; Language : TMS320C1x/C2x/C2xx/C5x COFF Assembler Version 6.60
9 ; Copyright (c) 1987-1995 Texas Instruments Incorporated
10 ;
11 ; Written : 7/20/98
12 ;
13 ; Modified : Kirby W. Cartwright, The Vanner Power Group, 07/20/98
14 ;
15 ; Project : Vanner Power Group Modular Controller Project PX-2.
16 ;
17 ; Copyright : Copyright (c) 1988-1995 Texas Instruments Inc.
18 ; Copyright (c) 1998 by Vanner, Inc. All Rights Reserved.
19 ;
20 ; Notes : Watchdog set for ~1.05S. "Real-time" interrupt rate for
21 ; ~61 Hz on TI '240 EVM board.
22 ;
23 ; Unit Tested: 7/27/98, KWC
24 ;
25 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
26 .include f2407regs.h
27 0000 .text
TMS320C24xx COFF Assembler Version 7.02 Tue Jul 31 13:34:26 2007
Copyright (c) 1987-2002 Texas Instruments Incorporated
init.asm PAGE 2
29 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
30 ;
31 ; Routine : void KickDog(void)
32 ;
33 ; Purpose : Reset the good little watchdog timer.
34 ;
35 ; Inputs : None.
36 ;
37 ; Destroys : DP.
38 ;
39 ; Speed/Size:
40 ;
41 ; Note(s) : see "KICK_DOG" macro in TI's f240regs.h file.
42 ; skipping 'C' compatible entry and exits.
43 ;
44 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
45 0000 _KickDog:
46 .global _KickDog
47 0000 KICK_DOG
1 0000 bce0 LDP #00E0h ;DP→7000h~707Fh
1 0001 ae25 SPLK #05555h, WDKEY ;WDCNTR由下一步复位被使能
0002 5555
1 0003 ae25 SPLK #0AAAAh, WDKEY ;WDCNTR 被复位
0004 aaaa
48 0005 ef00 ret
TMS320C24xx COFF Assembler Version 7.02 Tue Jul 31 13:34:26 2007
Copyright (c) 1987-2002 Texas Instruments Incorporated
init.asm PAGE 3
50 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
51 ;
52 ; Routine : void ConfigureWatchDog(void)
53 ;
54 ; Purpose : Setup the watchdog for 1.05S, real-time interrupt for 61 Hz.
55 ;
56 ; Inputs : None.
57 ;
58 ; Destroys : DP, IMR.
59 ;
60 ; Speed/Size:
61 ;
62 ; Note(s) : see "KICK_DOG" macro in TI's f240regs.h file.
63 ;
64 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
65 0006 _ConfigureWatchDog
66 .global _ConfigureWatchDog
67 0006 KICK_DOG
1 0006 bce0 LDP #00E0h ;DP→7000h~707Fh
1 0007 ae25 SPLK #05555h, WDKEY ;WDCNTR由下一步复位被使能
0008 5555
1 0009 ae25 SPLK #0AAAAh, WDKEY ;WDCNTR 被复位
000a aaaa
68 000b bce0 ldp #00e0h
69 000c ae29 splk #00e8h,WDCR ; enable watchdog for 1.05 S.
000d 00e8
70 000e ae18 splk #082feh,SCSR1
000f 82fe
71 ;splk #0044h,RTICR ; configure the real-time interrupt for 61.04 HZ.
72 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
73 ; 2407
74 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
75
76 0010 bce8 ldp #DP_EVA
77 0011 ae2c splk #080h,EVAIMRA ;通用定时器1 周期中断使能
0012 0080
78 0013 ae2f splk #0ffffh,EVAIFRA
0014 ffff
79 0015 ae00 splk #0,GPTCONA
0016 0000
80 0017 ae03 splk #0EA6h,T1PR ; 定时器计数使能 ,内部时钟
0018 0ea6
81 0019 ae01 splk #0,T1CNT
001a 0000
82 001b ae04 splk #080Ch,T1CON ;TMODE=10连续增/减计数模式
001c 080c
83 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
84 ; 2407
85 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
86 001d bc00 ldp #0000h
87
88 001e SBIT1 IMR, B1_MSK ; enable the real time interrupt,
1 001e 1004 LACC IMR
1 001f bfc0 OR #(B1_MSK)
TMS320C24xx COFF Assembler Version 7.02 Tue Jul 31 13:34:26 2007
Copyright (c) 1987-2002 Texas Instruments Incorporated
init.asm PAGE 4
0020 0002
1 0021 9004 SACL IMR
89 ; assuming interrupts are off.
90
91 0022 ef00 ret
92
93 .end
No Errors, No Warnings
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -