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

📄 c2xx_btx.lst

📁 jaaj
💻 LST
📖 第 1 页 / 共 2 页
字号:
     164                            SPLK    #00CCh,PLL_CNTL2        ;PLL_MF = 2.5                   =20MHz
     165                            .endif
     166            
     167                            .if (PLL_MF_30 )
     168                            SPLK    #00D2h,PLL_CNTL2        ;PLL_MF = 3.0                   =20MHz
     169                            .endif
     170            
     171                            .if (PLL_MF_40 )
     172                            SPLK    #00E3h,PLL_CNTL2        ;PLL_MF = 4.0                   =20MHz
     173                            .endif
     174            
     175                            .if (PLL_MF_45 )
     176                            SPLK    #00EDh,PLL_CNTL2        ;PLL_MF = 4.5                   =20MHz
     177                            .endif
     178            
     179                            .if (PLL_MF_50 )
     180                            SPLK    #00E4h,PLL_CNTL2        ;PLL_MF = 5.0                   =20MHz
     181                            .endif
     182            
     183                            .if (PLL_MF_90 )
     184                            SPLK    #00F5h,PLL_CNTL2        ;PLL_MF = 9.0                   =20MHz
     185                            .endif
     186            
     187                            .if (PLL_ENABLE = YES)
     188 0007 ae2b                  SPLK    #0081h,PLL_CNTL1        ;Enable PLL, SYSCLK=CLKIN/2     =CPUCLK/2,
         0008 0081  
     189                            .else
     190                            SPLK    #0041h,PLL_CNTL1        ;Disable PLL, SYSCLK=CLKIN/2    =CPUCLK/2,
     191                            .endif
     192            
     193 0009 ae29                  SPLK    #006Fh, WD_CNTL
         000a 006f  
     194 000b ae25                  SPLK    #05555h, WD_KEY
         000c 5555  
     195 000d ae25                  SPLK    #0AAAAh, WD_KEY
         000e aaaa  
     196            
     197 000f bc00+             ldp #PARMS          ; Defines data page
     198 0010 ae07+             splk    #0,PRG_status
         0011 0000  
     199 0012 ae0f              splk    #0,ERROR
         0013 0000  
     200 0014 7980              b       PRG_stop
         0015 002d+ 
     201            ; 
     202            ; F**************************************************************************
     203            ; Name: PRG_program
     204            ; 
     205            ; Description
     206            ;   Transfers a block of data from RAM to Flash/programmable memory
     207            ;   PRG2xxw will execute this after PRG_init by default. If the command
     208            ;   line does not have any options -e or -v.
     209            ;   If the option specified is -e  then the execution sequence will be:
     210            ;   PRG_init > PRG_erase > PRG_program and then PRG_stop
TMS320C1x/C2x/C2xx/C5x COFF Assembler       Version 6.60     Thu Sep 18 16:53:22 1997
Copyright (c) 1987-1995  Texas Instruments Incorporated 

C2XX_BTX.ASM                                                         PAGE    5

     211            ;   If the option specified is -v, then the execution sequence will be:
     212            ;   PRG_init > PRG_program, PRG_verify and then PRG_stop
     213            ; Inputs
     214            ;   unsigned *PRG_paddr         Pointer to first address to program
     215            ;   unsigned  PRG_page          Page to program, Program == 0, Data == 1
     216            ;   unsigned  PRG_length        Number of words to program
     217            ;   unsigned *PRG_bufaddr       Pointer to program data buffer
     218            ;
     219            ; Outputs
     220            ;   int PRG_status              Pass =0; Fail = 1;
     221            ;
     222            ; Notes:
     223            ;   The PRG_page value is setup by the host but not used in this case.
     224            ;   The assumption is that the programmable device is in program space.
     225            ; F**************************************************************************
     226             
     227 0016 bc00+ PRG_program:    ldp #PARMS              ;Point to data page 
     228                                                    ;no  calls for Flash algorithms
     229 0017 690f                  lacl  ERROR
     230 0018 ba01                  sub   #1
     231 0019 e388                  bcnd  err2,eq
         001a 001f+ 
     232            *                call  GPGMJ
     233 001b ae07+                 splk    #0,PRG_status   ;update algorithm status
         001c 0000  
     234 001d 7980                  b       PRG_stop        ;Branch to stop
         001e 002d+ 
     235                            
     236 001f ae07+ err2:           splk    #1,PRG_status   ;Error in Program stage
         0020 0001  
     237 0021 7980                  b       PRG_stop
         0022 002d+ 
     238            ; 
     239            ; F**************************************************************************
     240            ; Name: PRG_erase
     241            ; 
     242            ; Description
     243            ;   Erase a programmed device. This module will be executed if the PRG2xxw
     244            ;   command line option specified is -e.
     245            ; Inputs
     246            ;   None:
     247            ;
     248            ; Outputs
     249            ;   int PRG_status      Pass =0; Fail = 1;
     250            ;
     251            ; Notes:
     252            ;   The erase is device specific. 
     253            ; F**************************************************************************
     254             
     255 0023       PRG_erase:
     256 0023 bc00+                 ldp #PARMS
     257 0024 ae07+ err1:           splk    #1,PRG_status; Error in CLEAR or Erase
         0025 0001  
     258 0026 7980                  b       PRG_stop
         0027 002d+ 
TMS320C1x/C2x/C2xx/C5x COFF Assembler       Version 6.60     Thu Sep 18 16:53:22 1997
Copyright (c) 1987-1995  Texas Instruments Incorporated 

C2XX_BTX.ASM                                                         PAGE    6

     259            
     260            ; 
     261            ; F**************************************************************************
     262            ; Name: PRG_verify
     263            ; 
     264            ; Description
     265            ;   Verify a block of programmed data. This module will be excuted if the
     266            ;   command line option in PRG2xxw is -v.
     267            ; 
     268            ; Inputs                        Defined by host
     269            ;   unsigned *PRG_paddr         Pointer to first address to verify
     270            ;   unsigned  PRG_page          Page to verify, Program == 0, Data == 1
     271            ;   unsigned  PRG_length        Number of words to verify
     272            ;   unsigned *PRG_bufaddr       Pointer to verify data buffer
     273            ;
     274            ; Outputs
     275            ;   int PRG_status      Pass =0; Fail = 1;
     276            ;
     277            ; Notes:
     278            ;   The PRG_page value is setup by the host but not used in this case.
     279            ;   The assumption is that the programmable device is in program space.
     280            ; F**************************************************************************
     281             
     282 0028       PRG_verify:
     283 0028 bc00+                 ldp     #PARMS
     284 0029 ae07+ error:          splk    #1,PRG_status   ;
         002a 0001  
     285 002b 7980                  b       PRG_stop        ;Generate a breakpoint
         002c 002d+ 
     286            
     287            ; 
     288            ; F**************************************************************************
     289            ; Name: PRG_stop
     290            ; 
     291            ; Description
     292            ;       Exit routine for all programming functions.
     293            ; 
     294            ; Inputs
     295            ;       None
     296            ;
     297            ;
     298            ; Outputs
     299            ;       None
     300            ;
     301            ; Notes:
     302            ;       Exit point for all programming functions
     303            ;       The ESTOP opcode gets executed as a NOP when not in emulation
     304            ;       mode.  The "b $" will keep the program from running off if
     305            ;       not in emulation mode.
     306            ;
     307            ; F**************************************************************************
     308 002d       PRG_stop:
     309            
     310 002d 8b00          nop
     311 002e be90          .word   0BE90h                  ;SWI instruction
TMS320C1x/C2x/C2xx/C5x COFF Assembler       Version 6.60     Thu Sep 18 16:53:22 1997
Copyright (c) 1987-1995  Texas Instruments Incorporated 

C2XX_BTX.ASM                                                         PAGE    7

     312 002f 8b00          nop
     313 0030 7980          b $
         0031 0030+ 
     314                            .end

 No Errors,  No Warnings

⌨️ 快捷键说明

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