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

📄 ecp_resets.lst

📁 TI EVMDM355 开发板的测试程序,包括BOOT,DDR2,NAND,SD,UART,GPIO等芯片外设的测试驱动.
💻 LST
字号:
###############################################################################
#                                                                             #
#     IAR Systems MSP430 Assembler V3.42A/W32  29/Jun/2007  14:46:00          #
#     Copyright 1996-2006 IAR Systems. All rights reserved.                   #
#                                                                             #
#           Target option =  MSP430                                           #
#           Source file   =  C:\Data\DM350MSP430\VA3\ecp_resets.s43           #
#           List file     =  C:\Data\DM350MSP430\VA3\Debug\List\ecp_resets.lst#
#           Object file   =  C:\Data\DM350MSP430\VA3\Debug\Obj\ecp_resets.r43 #
#           Command line  =  C:\Data\DM350MSP430\VA3\ecp_resets.s43           #
#                            -OC:\Data\DM350MSP430\VA3\Debug\Obj\ -s+ -M<>    #
#                            -w+ -LC:\Data\DM350MSP430\VA3\Debug\List\ -t8    #
#                            -r -D__MSP430F155__                              #
#                            -IC:\Program Files\IAR Systems\Embedded Workbench 4.0\430\INC\ #
#                                                                             #
###############################################################################

      1    000000              #include  <msp430x15x.h>
      2    000000              #include "ECP.h"
      3    000000              EXTERN SWDelay5300ns
      4    000000              EXTERN SWDelay500ms
      5    000000              
      6    000000              
      7    000000              
      8    000000                                RSEG RESET_CODE
      9    000000              
     10    000000              ; **********************************************
                               ******************************
     11    000000              ; Function: PutDSPInResetDrive
     12    000000              ;
     13    000000              ; Purpose:  Asserts the DSP Reset and ensures
                                the reset output is driven
     14    000000              ;
     15    000000              ; Inputs:   None
     16    000000              ;
     17    000000              ; Returns:  The DM350 is left in reset
     18    000000              ; **********************************************
                               ******************************
     19    000000              PUBLIC PutDSPInResetDrive
     20    000000              PutDSPInResetDrive
     21    000000 F2C040002900                   bic.b #DM350_RST_OUTz, &P2OUT 
       ; Drive DSP reset low
     22    000006 F2D040002A00                   bis.b #DM350_RST_OUTz, &P2DIR 
       ; Ensure Drive
     23    00000C 3041                           ret 
     24    00000E              
     25    00000E              ; **********************************************
                               ******************************
     26    00000E              ; Function: PutDSPInReset
     27    00000E              ;
     28    00000E              ; Purpose:  Asserts the DSP Reset 
     29    00000E              ;
     30    00000E              ; Inputs:   None
     31    00000E              ;
     32    00000E              ; Returns:  The DM350 is left in reset
     33    00000E              ; **********************************************
                               ******************************
     34    000000              PUBLIC PutDSPInReset
     35    00000E F2C040002900 PutDSPInReset     bic.b #DM350_RST_OUTz, &P2OUT 
       ; Drive DSP reset low
     36    000014 3041                           ret
     37    000016                                
     38    000016              ; **********************************************
                               ******************************
     39    000016              ; Function: PutDSPInRun
     40    000016              ;
     41    000016              ; Purpose:  Takes the DSP out of reset.
     42    000016              ;
     43    000016              ; Inputs:   None
     44    000016              ;
     45    000016              ; Returns:  The DM350 is left out of reset
     46    000016              ; **********************************************
                               ******************************
     47    000000              PUBLIC PutDSPInRun
     48    000016 F2D040002900 PutDSPInRun       bis.b #DM350_RST_OUTz, &P2OUT 
       ; Drive DSP reset high
     49    00001C 3041                           ret                 
                                                                       
     50    00001E              
     51    00001E              ; **********************************************
                               ******************************
     52    00001E              ; Function: DSPSoftReset
     53    00001E              ;
     54    00001E              ; Purpose:  Applies a reset to the EVM
                                dsp
     55    00001E              ;
     56    00001E              ; Inputs:   None
     57    00001E              ;
     58    00001E              ; Returns:  DM350 has reset pulse applied.  At
                                return device is out of reset
     59    00001E              ; **********************************************
                               ******************************
     60    000000              PUBLIC DSPSoftReset
     61    00001E B012....     DSPSoftReset      call  #PutDSPInReset          
       ; Put DSP in reset
     62    000022 B012....                       call  #SWDelay5300ns          
       ; Wait 5.3 us
     63    000026 B012....                       call  #PutDSPInRun            
       ; Take DSP out of reset
     64    00002A 3041                           ret  
     65    00002C              
     66    00002C              ; **********************************************
                               ******************************
     67    00002C              ; Function: TakePeriphsOutOfReset
     68    00002C              ;
     69    00002C              ; Purpose:  Drives all the peripheral resets
                                high (out of reset)
     70    00002C              ;
     71    00002C              ; Inputs:   None
     72    00002C              ;
     73    00002C              ; Returns:  All peripheral resets are raised
                                high
     74    00002C              ; **********************************************
                               ******************************
     75    000000              PUBLIC TakePeriphsOutOfReset
     76    00002C              TakePeriphsOutOfReset
     77    00002C 0412                           push  R4                      
       ; Save Regs
     78    00002E 0512                           push  R5
     79    000030 0612                           push  R6
     80    000032 54422000                       mov.b &P1IN,R4                
                                                                   ; Read in
                                                              Port 1
     81    000036 74D03000                       bis.b #ETHERNET_RSTz+SYSTEM_RS
 Tz,R4 ; Set reset bits port 1
     82    00003A 55422800                       mov.b &P2IN,R5                
                                                                   ; Read in
                                                              Port 2
     83    00003E 75D08000                       bis.b #AIC33_RSTz,R5          
       ; Set reset bits port 2
     84    000042 56421800                       mov.b &P3IN,R6                
                                                                   ; Read in
                                                              Port 3
     85    000046 76D00500                       bis.b #DC5_RSTz+TV_RSTz,R6    
       ; Set reset bits port 3
     86    00004A 76D02000                       bis.b #IMAGER_RSTz,R6         
       ; Set reset bits port 3
     87    00004E 76D01000                       bis.b #NOR_FLASH_RSTz,R6      
       ; Set reset bits port 3
     88    000052 76D04000                       bis.b #CPLD_RSTz,R6           
       ; Set reset bits port 3
     89    000056 C2442100                       mov.b R4,&P1OUT               
                                                                ; Write Port
                                                           1
     90    00005A C2452900                       mov.b R5,&P2OUT               
                                                                ; Write Port
                                                           2
     91    00005E C2461900                       mov.b R6,&P3OUT               
                                                                ; Write Port
                                                           3
     92    000062 3641                           pop   R6                      
       ; Restore Regs
     93    000064 3541                           pop   R5
     94    000066 3441                           pop   R4
     95    000068 3041                           ret
     96    00006A              
     97    00006A                                END                 
                                
##############################
#          CRC:869D          #
#        Errors:   0         #
#        Warnings: 0         #
#         Bytes: 106         #
##############################





⌨️ 快捷键说明

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