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

📄 io.lst

📁 英飞凌C166之XC164CS的IO读写操作程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
C166 COMPILER V6.04, IO                                                                    08/30/2007 18:29:21 PAGE 1   


C166 COMPILER V6.04, COMPILATION OF MODULE IO
OBJECT MODULE PLACED IN IO.OBJ
COMPILER INVOKED BY: C:\Keil C166\C166\BIN\C166.EXE IO.C MODV2 BROWSE MODV2 DEBUG

 stmt lvl     source

    1         //****************************************************************************
    2         // @Module        Parallel Ports
    3         // @Filename      IO.C
    4         // @Project       GPIO.dav
    5         //----------------------------------------------------------------------------
    6         // @Controller    Infineon XC164CS-16F20
    7         //
    8         // @Compiler      Keil
    9         //
   10         // @Codegenerator 2.8
   11         //
   12         // @Description   This file contains functions that use the IO module.
   13         //
   14         //----------------------------------------------------------------------------
   15         // @Date          2007-7-13 15:36:22
   16         //
   17         //****************************************************************************
   18         
   19         // USER CODE BEGIN (IO_General,1)
   20         
   21         // USER CODE END
   22         
   23         
   24         
   25         //****************************************************************************
   26         // @Project Includes
   27         //****************************************************************************
   28         
   29         #include "MAIN.H"
   30         
   31         // USER CODE BEGIN (IO_General,2)
   32         
   33         // USER CODE END
   34         
   35         
   36         //****************************************************************************
   37         // @Macros
   38         //****************************************************************************
   39         
   40         // USER CODE BEGIN (IO_General,3)
   41         
   42         // USER CODE END
   43         
   44         
   45         //****************************************************************************
   46         // @Defines
   47         //****************************************************************************
   48         
   49         // USER CODE BEGIN (IO_General,4)
   50         
   51         // USER CODE END
   52         
   53         
   54         //****************************************************************************
   55         // @Typedefs
C166 COMPILER V6.04, IO                                                                    08/30/2007 18:29:21 PAGE 2   

   56         //****************************************************************************
   57         
   58         // USER CODE BEGIN (IO_General,5)
   59         
   60         // USER CODE END
   61         
   62         
   63         //****************************************************************************
   64         // @Imported Global Variables
   65         //****************************************************************************
   66         
   67         // USER CODE BEGIN (IO_General,6)
   68         
   69         // USER CODE END
   70         
   71         
   72         //****************************************************************************
   73         // @Global Variables
   74         //****************************************************************************
   75         
   76         // USER CODE BEGIN (IO_General,7)
   77         
   78         // USER CODE END
   79         
   80         
   81         //****************************************************************************
   82         // @External Prototypes
   83         //****************************************************************************
   84         
   85         // USER CODE BEGIN (IO_General,8)
   86         
   87         // USER CODE END
   88         
   89         
   90         //****************************************************************************
   91         // @Prototypes Of Local Functions
   92         //****************************************************************************
   93         
   94         // USER CODE BEGIN (IO_General,9)
   95         
   96         // USER CODE END
   97         
   98         
   99         //****************************************************************************
  100         // @Function      void IO_vInit(void) 
  101         //
  102         //----------------------------------------------------------------------------
  103         // @Description   This is the initialization function of the IO function 
  104         //                library. It is assumed that the SFRs used by this library 
  105         //                are in its reset state. 
  106         //
  107         //----------------------------------------------------------------------------
  108         // @Returnvalue   None
  109         //
  110         //----------------------------------------------------------------------------
  111         // @Parameters    None
  112         //
  113         //----------------------------------------------------------------------------
  114         // @Date          2007-7-13
  115         //
  116         //****************************************************************************
  117         
C166 COMPILER V6.04, IO                                                                    08/30/2007 18:29:21 PAGE 3   

  118         // USER CODE BEGIN (IO_Function,1)
  119         
  120         // USER CODE END
  121         
  122         void IO_vInit(void)
  123         {
  124  1        // USER CODE BEGIN (IO_Function,2)
  125  1      
  126  1        // USER CODE END
  127  1      
  128  1        ///  -----------------------------------------------------------------------
  129  1        ///  General Port Settings:
  130  1        ///  -----------------------------------------------------------------------
  131  1        PICON          =  0x0000;      // load input configuration register
  132  1      
  133  1        ///  -----------------------------------------------------------------------
  134  1        ///  Configuration of Port P0H:
  135  1        ///  -----------------------------------------------------------------------
  136  1        ///  P0H.0 is used as alternate output for the Port Pin (AD8)
  137  1        ///  P0H.1 is used as alternate output for the Port Pin (AD9)
  138  1        ///  P0H.2 is used as alternate output for the Port Pin (AD10)
  139  1        ///  P0H.3 is used as alternate output for the Port Pin (AD11)
  140  1        ///  P0H.4 is used as alternate output for the Port Pin (AD12)
  141  1        ///  P0H.5 is used as alternate output for the Port Pin (AD13)
  142  1        ///  P0H.6 is used as alternate output for the Port Pin (AD14)
  143  1        ///  P0H.7 is used as alternate output for the Port Pin (AD15)
  144  1      
  145  1        ///  P0H.0 - P0H.3 output driver characteristic: strong driver
  146  1        ///  P0H.4 - P0H.7 output driver characteristic: strong driver
  147  1      
  148  1        ///  P0H.0 - P0H.3 output edge characteristic: sharp edge mode
  149  1        ///  P0H.4 - P0H.7 output edge characteristic: sharp edge mode
  150  1      
  151  1        P0H            =  0x0000;      // load data register
  152  1        POCON0H        =  0x0000;      // load output control register
  153  1        DP0H           =  0x0000;      // load direction register
  154  1      
  155  1        ///  -----------------------------------------------------------------------
  156  1        ///  Configuration of Port P0L:
  157  1        ///  -----------------------------------------------------------------------
  158  1        ///  P0L.0 is used as alternate output for the Port Pin (AD0)
  159  1        ///  P0L.1 is used as alternate output for the Port Pin (AD1)
  160  1        ///  P0L.2 is used as alternate output for the Port Pin (AD2)
  161  1        ///  P0L.3 is used as alternate output for the Port Pin (AD3)
  162  1        ///  P0L.4 is used as alternate output for the Port Pin (AD4)
  163  1        ///  P0L.5 is used as alternate output for the Port Pin (AD5)
  164  1        ///  P0L.6 is used as alternate output for the Port Pin (AD6)
  165  1        ///  P0L.7 is used as alternate output for the Port Pin (AD7)

⌨️ 快捷键说明

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