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

📄 mcu.lst

📁 Bitek 公司 bit1611b模拟屏驱动芯片外接MCU驱动DEMO源码
💻 LST
字号:
C51 COMPILER V7.50   MCU                                                                   02/05/2007 16:33:25 PAGE 1   


C51 COMPILER V7.50, COMPILATION OF MODULE MCU
OBJECT MODULE PLACED IN .\OBJ\MCU.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE MCU.C ROM(COMPACT) OPTIMIZE(9,SPEED) NOAREGS DEFINE(PROJECT=DMO04015800,MCU
                    -_CFG=BIT5101,VP_IF_CFG=VP_IF_BITEK) PRINT(.\LST\MCU.lst) OBJECT(.\OBJ\MCU.obj)

line level    source

   1          /* **********************************************************************
   2          
   3                   Copyright (c) 2002-2006 Beyond Innovation Technology Co., Ltd
   4          
   5                  All rights are reserved. Reproduction in whole or in parts is
   6              prohibited without the prior written consent of the copyright owner.
   7             ----------------------------------------------------------------------
   8          
   9              Module: MCU.C
  10          
  11              Purpose: Implementation of MCU.
  12          
  13              Version: 0.01                                   07:16PM  2005/05/13
  14          
  15              Compiler: Keil 8051 C Compiler v8.01
  16          
  17              Reference:
  18              [1] BIT5101 8051 MICROCONTROLLER WITH 64K FLASH AND ISP Version 0.01,
  19                  2004/10/25, Beyond Innovation Technology
  20              [2] TP2804  8051 MICROCONTROLLER WITH 64K FLASH AND ISP Version 1.2,
  21                  June 2004, TOPRO
  22          
  23             ----------------------------------------------------------------------
  24              Modification:
  25          
  26              R0.01 07:16PM  2005/05/13 Jeffrey Chang
  27              Reason:
  28                  1. Original.
  29              Solution:
  30          
  31             ********************************************************************** */
  32          
  33          
  34          #define  _MCU_C_
  35          
  36          /* ------------------------------------
  37              Header Files
  38             ------------------------------------ */
  39          #include "mcu.h"
  40          #include "timer.h"
  41          
  42          /* ------------------------------------
  43              Macro Definitions
  44             ------------------------------------ */
  45          
  46          /* ------------------------------------
  47              Type Definitions
  48             ------------------------------------ */
  49          
  50          
  51          /* ------------------------------------
  52              Variables Definitions
  53             ------------------------------------ */
  54          
C51 COMPILER V7.50   MCU                                                                   02/05/2007 16:33:25 PAGE 2   

  55          /* ------------------------------------
  56              Function Prototypes
  57             ------------------------------------ */
  58          
  59          /* -------------------------------------------------------------------
  60              Name: MCU_Init -
  61              Purpose: To initialize MCU module.
  62              Passed: None.
  63              Returns: None.
  64              Notes:
  65             ------------------------------------------------------------------- */
  66          void MCU_Init (void)
  67          {
  68   1          /* [4]87 Disable interrupts */
  69   1          IE0 = 0;
  70   1          IE1 = 0;
  71   1      
  72   1          /* Initiate I/O PORTs */
  73   1          P0 = 0xFF;
  74   1          P1 = 0xFF;
  75   1          P2 = 0xFF;
  76   1          P3 = 0xFF;
  77   1      
  78   1          // PANEL POWER should be turned off
  79   1          MCU_PANEL_OFF;
  80   1      
  81   1      
  82   1          // Backlight should be turned off
  83   1          MCU_BL_OFF;
  84   1      
  85   1      
  86   1      
  87   1          #if (MCU_CFG == BIT5101)        ||  \
  88   1              (MCU_CFG == TP2804)
  89   1      
  90   1          P4 = 0x0F;
  91   1      
  92   1          /* Interrupt Priority Level [5]18,19, [8]19,20, [9]19,20 */
  93   1          IP      = 0x08;     // Timer 1 priority level 3
  94   1      
  95   1          /* [5]7 Power control */
  96   1          PCON    = 0xC0;     // [3]77 Baud rate is double (SMOD = 1)
  97   1                              // Disable power-down and idle modes
  98   1      
  99   1          // To use Timer 0 (ET0) as System Timer
 100   1          ET0     = 1;        // To confirm TIMER_CFG in TIMER module
 101   1      
 102   1          // To use Timer 2 (ET2) as UART baud rate generator
 103   1          ET2     = 1;        // To confirm UART_TIMER_CFG in UART module
 104   1      
 105   1          CHPCON  = 0x10;     // To enable on-chip AUX-RAM
 106   1      
 107   1      
 108   1          #else
                      #error MCU.C - Invalid MCU_CFG !
                  #endif /* MCU_CFG */
 111   1      
 112   1      
 113   1      } /* MCU_Init */
 114          
 115          
 116          
C51 COMPILER V7.50   MCU                                                                   02/05/2007 16:33:25 PAGE 3   

 117          /* **********************************************************************
 118          
 119              Description:
 120          
 121          
 122             ********************************************************************** */
 123          
 124          /* %% End Of File %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% */


MODULE INFORMATION:   STATIC OVERLAYABLE
   CODE SIZE        =     35    ----
   CONSTANT SIZE    =   ----    ----
   XDATA SIZE       =   ----    ----
   PDATA SIZE       =   ----    ----
   DATA SIZE        =   ----    ----
   IDATA SIZE       =   ----    ----
   BIT SIZE         =   ----    ----
END OF MODULE INFORMATION.


C51 COMPILATION COMPLETE.  0 WARNING(S),  0 ERROR(S)

⌨️ 快捷键说明

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