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

📄 init.lst

📁 瑞萨单片机LCD控制
💻 LST
📖 第 1 页 / 共 5 页
字号:
##############################################################################
#                                                                            #
# IAR M16C/60 C-Compiler V1.31B/WIN                                          #
#                                                                            #
#       Compile time  =  10/Apr/2000  22:46:15                               #
#       Memory model  =  near                                                #
#       Source file   =  d:\tolentino\sw_lcd_m16c\mini_emul\init.c           #
#       List file     =  d:\tolentino\sw_lcd_m16c\mini_emul\ice\list\init.lst#
#       Object file   =  d:\tolentino\sw_lcd_m16c\mini_emul\ice\obj\init.r34 #
#       Command line  =  -md -OD:\tolentino\Sw_lcd_M16c\Mini_emul\ice\Obj\   #
#                        -e -K -C -W16 -gA -RCODE -r0                        #
#                        -LD:\tolentino\Sw_lcd_M16c\Mini_emul\ice\List\ -q   #
#                        -t8 -ID:\SW\EW23\M16C\inc\                          #
#                        D:\tolentino\Sw_lcd_M16c\Mini_emul\INIT.C           #
#                                                                            #
#                           Copyright 1999 IAR Systems. All rights reserved. #
##############################################################################

   \                     	NAME	init(16)
   \                     	RSEG	CODE(1)
   \                     	PUBLIC	init_port
   \                     	PUBLIC	init_reg
   \                     	EXTERN	?CLM16C_1_31_L00
   \                     	RSEG	CODE
   \                     init_port:
      1          /**************************************************************************/
      2          /**MITSUBISHI**MITSUBISHI**MITSUBISHI**MITSUBISHI**MITSUBISHI**MITSUBISHI**/
      3          /**************************************************************************/
      4          /**************************************************************************/
      5          /*  DISCLAIMER:                                                           */
      6          /*  We (MITSUBISHI ELECTRIC B.V.) do not warrant that the Software is     */
      7          /*  free from claims by a third party of copyright, patent, trademark,    */
      8          /*  trade secret or any other intellectual property infringement.         */
      9          /*                                                                        */
     10          /*  Under no circumstances are we liable for any of the following:        */
     11          /*                                                                        */
     12          /*  1. third-party claims against you for losses or damages;              */
     13          /*  2. loss of, or damage to, your records or data; or                    */
     14          /*  3. economic consequential damages (including lost profits or          */
     15          /*     savings) or incidental damages, even if we are informed of         */
     16          /*     their possibility.                                                 */
     17          /*                                                                        */
     18          /*  We do not warrant uninterrupted or error free operation of the        */
     19          /*  Software. We have no obligation to provide service, defect            */
     20          /*  correction, or any maintenance for the Software. We have no           */
     21          /*  obligation to supply any Software updates or enhancements to you      */
     22          /*  even if such are or later become available.                           */
     23          /*                                                                        */
     24          /*  IF YOU DOWNLOAD OR USE THIS SOFTWARE YOU AGREE TO THESE TERMS.        */
     25          /*                                                                        */
     26          /*  THERE ARE NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING THE            */
     27          /*  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A               */
     28          /*  PARTICULAR PURPOSE.                                                   */
     29          /**************************************************************************/
     30          /**************************************************************************/
     31          /*                                                                        */
     32          /*       Special Function Regiser Initialization and Service-Routines     */
     33          /*       for the M3060                                                    */
     34          /*                                                                        */
     35          /*       Name         :      INIT.C                                       */
     36          /*       Date/Author  :      29.04.1997/GA                                */
     37          /*       Change       :                                                   */
     38          /*               (Date)  (Author)  (Description)                          */
     39          /*               12.06.97 ST        procedure init_reg added              */
     40          /*                                                                        */
     41          /**************************************************************************/
     42          
     43          #define public extern
     44          #include    "sfr_3061.h"
     45          #undef public
     46          
     47          #define public 
     48          #include    "init.h"
     49          #undef public
     50          
     51          /**************************************************************************/
     52          /*                                                                        */
     53          /*       Port 0 to 10 - Initialization                                    */
     54          /*                                                                        */
     55          /*       Name         :     port_init                                     */
     56          /*       Date/Author  :     06.05.1997/GA                                 */
     57          /*       Parameter    :                                                   */
     58          /*       Return       :                                                   */
     59          /*                                                                        */
     60          /**************************************************************************/
     61          void near init_port (void)
     62          {   
     63              //Setting Port 0 direction register
     64              PD0 = 0xFF;             // XXXX XXXX
   \   000000   74CFE203             MOV.B   #255,994
   \            FF      
     65                                      // |||| |||+- Port P00 direction register
     66                                      // |||| |||   0: Input mode
     67                                      // |||| |||   1: Output mode
     68                                      // |||| ||+-- Port P01 direction register
     69                                      // |||| ||    0: Input mode
     70                                      // |||| ||    1: Output mode
     71                                      // |||| |+--- Port P02 direction register
     72                                      // |||| |     0: Input mode
     73                                      // |||| |     1: Output mode
     74                                      // |||| +---- Port P03 direction register
     75                                      // ||||       0: Input mode
     76                                      // ||||       1: Output mode
     77                                      // |||+------ Port P04 direction register
     78                                      // |||        0: Input mode
     79                                      // |||        1: Output mode
     80                                      // ||+------- Port P05 direction register
     81                                      // ||         0: Input mode
     82                                      // ||         1: Output mode
     83                                      // |+-------- Port P06 direction register
     84                                      // |          0: Input mode
     85                                      // |          1: Output mode
     86                                      // +--------- Port P07 direction register
     87                                      //            0: Input mode
     88                                      //            1: Output mode
     89          
     90              //Setting Port 0 register
     91              P0 = 0x00;              // XXXX XXXX
   \   000005   B7E003               MOV.B   #0,992
     92                                      // |||| |||+- Port P00 register
     93                                      // |||| |||   0: 'L' Level
     94                                      // |||| |||   1: 'H' Level  
     95                                      // |||| ||+-- Port P01 register
     96                                      // |||| ||    0: 'L' Level
     97                                      // |||| ||    1: 'H' Level  
     98                                      // |||| |+--- Port P02 register
     99                                      // |||| |     0: 'L' Level
    100                                      // |||| |     1: 'H' Level  
    101                                      // |||| +---- Port P03 register
    102                                      // ||||       0: 'L' Level
    103                                      // ||||       1: 'H' Level  
    104                                      // |||+------ Port P04 register
    105                                      // |||        0: 'L' Level
    106                                      // |||        1: 'H' Level  
    107                                      // ||+------- Port P05 register
    108                                      // ||         0: 'L' Level
    109                                      // ||         1: 'H' Level  
    110                                      // |+-------- Port P06 register
    111                                      // |          0: 'L' Level
    112                                      // |          1: 'H' Level  
    113                                      // +--------- Port P07 register
    114                                      //            0: 'L' Level
    115                                      //            1: 'H' Level  
    116          
    117              //Setting Port 1 direction register
    118              PD1 = 0xFF;             // XXXX XXXX
   \   000008   74CFE303             MOV.B   #255,995
   \            FF      
    119                                      // |||| |||+- Port P10 direction register
    120                                      // |||| |||   0: Input mode
    121                                      // |||| |||   1: Output mode
    122                                      // |||| ||+-- Port P11 direction register
    123                                      // |||| ||    0: Input mode
    124                                      // |||| ||    1: Output mode
    125                                      // |||| |+--- Port P12 direction register
    126                                      // |||| |     0: Input mode
    127                                      // |||| |     1: Output mode
    128                                      // |||| +---- Port P13 direction register
    129                                      // ||||       0: Input mode
    130                                      // ||||       1: Output mode
    131                                      // |||+------ Port P14 direction register
    132                                      // |||        0: Input mode
    133                                      // |||        1: Output mode
    134                                      // ||+------- Port P15 direction register
    135                                      // ||         0: Input mode
    136                                      // ||         1: Output mode
    137                                      // |+-------- Port P16 direction register
    138                                      // |          0: Input mode
    139                                      // |          1: Output mode
    140                                      // +--------- Port P17 direction register
    141                                      //            0: Input mode
    142                                      //            1: Output mode
    143          
    144              //Setting Port 1 register
    145              P1 = 0x00;              // XXXX XXXX
   \   00000D   B7E103               MOV.B   #0,993
    146                                      // |||| |||+- Port P10 register
    147                                      // |||| |||   0: 'L' Level
    148                                      // |||| |||   1: 'H' Level  
    149                                      // |||| ||+-- Port P11 register

⌨️ 快捷键说明

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