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

📄 c2xx_btx.lst

📁 DSP F2407 烧写软件
💻 LST
📖 第 1 页 / 共 2 页
字号:
     140            ;   int PRG_status              Pass =0; Fail = 1;
     141            ;
     142            ; Notes: Can be used to include device specific initialization before executing
     143            ;        Flash algorithms in PRG_erase,PRG_program, PRG_verify and PRG_stop
     144            ;
     145            ;****************************************************************************
     146             
     147 0000       PRG_init:
     148 0000 bce0          LDP     #0E0h
     149 0001 ae18          SPLK    #PLL_RATIO_CONST,7018h
         0002 0000  
     150 0003 ae19          SPLK    #000ah,7019h
         0004 000a  
     151 0005 ae29          SPLK    #6fh,7029h
         0006 006f  
     152 0007 bc00          LDP     #0
     153            
     154            
     155 0008 bc00+         ldp #PARMS              ; Defines data page
     156 0009 ae07+         splk    #0,PRG_status
         000a 0000  
     157 000b 7980          b       PRG_stop
         000c 001c+ 
TMS320C24xx COFF Assembler Version 7.02  Tue Jul 29 10:56:12 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
c2xx_btx.asm                                                         PAGE    4

     158            ; 
     159            ;****************************************************************************
     160            ; Name: PRG_program
     161            ; 
     162            ; Description
     163            ;   Transfers a block of data from RAM to Flash/programmable memory
     164            ;   PRG2xxw will execute this after PRG_init by default. If the command
     165            ;   line does not have any options -e or -v.
     166            ;   If the option specified is -e  then the execution sequence will be:
     167            ;   PRG_init > PRG_erase > PRG_program and then PRG_stop
     168            ;   If the option specified is -v, then the execution sequence will be:
     169            ;   PRG_init > PRG_program, PRG_verify and then PRG_stop
     170            ; Inputs
     171            ;   unsigned *PRG_paddr         Pointer to first address to program
     172            ;   unsigned  PRG_page          Page to program, Program == 0, Data == 1
     173            ;   unsigned  PRG_length        Number of words to program
     174            ;   unsigned *PRG_bufaddr       Pointer to program data buffer
     175            ;
     176            ; Outputs
     177            ;   int PRG_status              Pass =0; Fail = 1;
     178            ;
     179            ; Notes:
     180            ;   The PRG_page value is setup by the host but not used in this case.
     181            ;   The assumption is that the programmable device is in program space.
     182            ;****************************************************************************
     183             
     184 000d bc00+ PRG_program:    ldp #PARMS              ;Point to data page 
     185                                                    ;no  calls for Flash algorithms
     186 000e ae07+                 splk    #0,PRG_status   ;update algorithm status
         000f 0000  
     187 0010 7980                  b       PRG_stop        ;Branch to stop
         0011 001c+ 
     188            
     189            ; 
     190            ;****************************************************************************
     191            ; Name: PRG_erase
     192            ; 
     193            ; Description
     194            ;   Erase a programmed device. This module will be executed if the PRG2xxw
     195            ;   command line option specified is -e.
     196            ; Inputs
     197            ;   None:
     198            ;
     199            ; Outputs
     200            ;   int PRG_status      Pass =0; Fail = 1;
     201            ;
     202            ; Notes:
     203            ;   The erase is device specific. 
     204            ;****************************************************************************
     205             
     206 0012       PRG_erase:
     207 0012 bc00+                 ldp #PARMS
     208 0013 ae07+ err1:           splk    #1,PRG_status; Error in CLEAR or Erase
         0014 0001  
TMS320C24xx COFF Assembler Version 7.02  Tue Jul 29 10:56:12 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
c2xx_btx.asm                                                         PAGE    5

     209 0015 7980                  b       PRG_stop
         0016 001c+ 
     210            
     211            ; 
     212            ;****************************************************************************
     213            ; Name: PRG_verify
     214            ; 
     215            ; Description
     216            ;   Verify a block of programmed data. This module will be excuted if the
     217            ;   command line option in PRG2xxw is -v.
     218            ; 
     219            ; Inputs                        Defined by host
     220            ;   unsigned *PRG_paddr         Pointer to first address to verify
     221            ;   unsigned  PRG_page          Page to verify, Program == 0, Data == 1
     222            ;   unsigned  PRG_length        Number of words to verify
     223            ;   unsigned *PRG_bufaddr       Pointer to verify data buffer
     224            ;
     225            ; Outputs
     226            ;   int PRG_status      Pass =0; Fail = 1;
     227            ;
     228            ; Notes:
     229            ;   The PRG_page value is setup by the host but not used in this case.
     230            ;   The assumption is that the programmable device is in program space.
     231            ;****************************************************************************
     232             
     233 0017       PRG_verify:
     234 0017 bc00+                 ldp     #PARMS
     235 0018 ae07+ error:          splk    #1,PRG_status   ;
         0019 0001  
     236 001a 7980                  b       PRG_stop        ;Generate a breakpoint
         001b 001c+ 
     237            
     238            ; 
     239            ;****************************************************************************
     240            ; Name: PRG_stop
     241            ; 
     242            ; Description
     243            ;       Exit routine for all programming functions.
     244            ; 
     245            ; Inputs
     246            ;       None
     247            ;
     248            ;
     249            ; Outputs
     250            ;       None
     251            ;
     252            ; Notes:
     253            ;       Exit point for all programming functions
     254            ;       The ESTOP opcode gets executed as a NOP when not in emulation
     255            ;       mode.  The "b $" will keep the program from running off if
     256            ;       not in emulation mode.
     257            ;
     258            ;****************************************************************************
     259 001c       PRG_stop:
TMS320C24xx COFF Assembler Version 7.02  Tue Jul 29 10:56:12 2003
Copyright (c) 1987-2002  Texas Instruments Incorporated 
c2xx_btx.asm                                                         PAGE    6

     260            
     261 001c 8b00          nop
     262 001d be90          .word   0BE90h                  ;SWI instruction
     263 001e 8b00          nop
     264 001f 7980          b $
         0020 001f+ 
     265                            .end

 No Errors,  No Warnings

⌨️ 快捷键说明

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