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

📄 declare.lst

📁 epsondriver 驱动源代码
💻 LST
字号:
C51 COMPILER V7.06   DECLARE                                                               04/29/2005 16:03:56 PAGE 1   


C51 COMPILER V7.06, COMPILATION OF MODULE DECLARE
OBJECT MODULE PLACED IN declare.OBJ
COMPILER INVOKED BY: E:\Keil\C51\BIN\c51.exe declare.h DB OE

stmt level    source

   1          /*********************************************************************************************************
             -*
   2                                                                  Sincere Techonlogy
   3                                                                   Shanghai.China
   4                                  (c) Copyright 2005,Sincere Technology,Shanghai China
   5                                                                  All Rights Reserved
   6          
   7          
   8          
   9          File name         : declare.c
  10          Author            : dududu
  11          Description       : Declare functions in this file 
  12          Target            : C8051F023
  13          Data              : 2005-3
  14          **********************************************************************************************************
             -/
  15          
  16          
  17          
  18          /*  Functions   */
  19          void SYSCLK_Init (void); 
  20          void MEMORY_Init (void);
  21          void PERIAL_Init (void);
  22          void PORT_Init (void);
  23          void SIOC_Init (void);
  24          void INTERRUPT_Init (void);
  25          void SMBUS_Init (void);
  26          void DELAY (int);
  27          void SMBUS_ISR (void);
  28          void SM_Send (char, unsigned int, char);
  29          char SM_Receive (char, unsigned int);
  30          
  31          
  32          
  33          /*  BIT Registers  */
  34          sbit SCLK  =  P1^1;
*** ERROR C202 IN LINE 34 OF DECLARE.H: 'P1': undefined identifier
  35          sbit SDATA =  P1^0;
*** ERROR C202 IN LINE 35 OF DECLARE.H: 'P1': undefined identifier
  36          sbit SCS   =  P0^4;
*** ERROR C202 IN LINE 36 OF DECLARE.H: 'P0': undefined identifier
  37          sbit SCS61B=  P1^5;
*** ERROR C202 IN LINE 37 OF DECLARE.H: 'P1': undefined identifier
  38          sbit SCS61G=  P1^6;
*** ERROR C202 IN LINE 38 OF DECLARE.H: 'P1': undefined identifier
  39          sbit SCS61R=  P1^7;
*** ERROR C202 IN LINE 39 OF DECLARE.H: 'P1': undefined identifier
  40          
  41          
  42          #define a24LC256 0xA0; 
  43          
  44          #ifdef CTONL_C
              
              //-----------------------------------------------------------------------------------
              //Global VARIABLES
C51 COMPILER V7.06   DECLARE                                                               04/29/2005 16:03:56 PAGE 2   

              //-----------------------------------------------------------------------------------
              char COMMAND;                       // Holds the slave address + R/W bit for
                                                  // use in the SMBus ISR.
              
              char WORD;                          // Holds data to be transmitted by the SMBus
                                                  // OR data that has just been received.
              
              char BYTE_NUMBER;                   // Used by ISR to check what data has just been
                                                  // sent - High address byte, Low byte, or data
                                                  // byte
              
              unsigned char HIGH_ADD, LOW_ADD;    // High & Low byte for EEPROM memory address
              
              bit SM_BUSY;                        // This bit is set when a send or receive
                                                  // is started. It is cleared by the
                                                  // ISR when the operation is finished.
              
              
              
              
              //------------------------------------------------------------------------------------
              // Global CONSTANTS
              //------------------------------------------------------------------------------------
              
              #define  WRITE       0x00                 // WRITE direction bit
              #define  READ        0x01                 // READ direction bit
              
              /*   dududu 2005-4-19
              
              // Device addresses
              #define  CHIP_A      0xF0
              #define  CHIP_B      0xE0
              #define  MY_ADD      CHIP_A               // Corresponds to the chip currently
                                                        // being programmed.
              
              // Peer-to-Peer OP_CODEs
              #define  READ_ADC    0x01                 // OP_CODE to read from slave ADC
              #define  WRITE_DAC   0x02                 // OP_CODE to write to slave DAC
              #define  WRITE_BUF   0x03                 // OP_CODE to write to slave buffer
              #define  READ_BUF    0x04                 // OP_CODE to read from slave buffer
              */
              
              //SMBus states:
              // MT = Master Transmitter
              // MR = Master Receiver
              // ST = Slave Transmitter
              // SR = Slave Receiver
              
              #define  SMB_BUS_ERROR  0x00              // (all modes) BUS ERROR
              #define  SMB_START      0x08              // (MT & MR) START transmitted
              #define  SMB_RP_START   0x10              // (MT & MR) repeated START
              #define  SMB_MTADDACK   0x18              // (MT) Slave address + W transmitted;
                                                        //  ACK received
              #define  SMB_MTADDNACK  0x20              // (MT) Slave address + W transmitted;
                                                        //  NACK received
              #define  SMB_MTDBACK    0x28              // (MT) data byte transmitted; ACK rec'vd
              #define  SMB_MTDBNACK   0x30              // (MT) data byte transmitted; NACK rec'vd
              #define  SMB_MTARBLOST  0x38              // (MT) arbitration lost
              #define  SMB_MRADDACK   0x40              // (MR) Slave address + R transmitted;
                                                        //  ACK received
              #define  SMB_MRADDNACK  0x48              // (MR) Slave address + R transmitted;
                                                        //  NACK received
C51 COMPILER V7.06   DECLARE                                                               04/29/2005 16:03:56 PAGE 3   

              #define  SMB_MRDBACK    0x50              // (MR) data byte rec'vd; ACK transmitted
              #define  SMB_MRDBNACK   0x58              // (MR) data byte rec'vd; NACK transmitted
              #define  SMB_SROADACK   0x60              // (SR) SMB's own slave address + W rec'vd;
                                                        //  ACK transmitted
              #define  SMB_SROARBLOST 0x68              // (SR) SMB's own slave address + W rec'vd;
                                                        //  arbitration lost
              #define  SMB_SRGADACK   0x70              // (SR) general call address rec'vd;
                                                        //  ACK transmitted
              #define  SMB_SRGARBLOST 0x78              // (SR) arbitration lost when transmitting
                                                        //  slave addr + R/W as master; general
                                                        //  call address rec'vd; ACK transmitted
              #define  SMB_SRODBACK   0x80              // (SR) data byte received under own slave
                                                        //  address; ACK returned
              #define  SMB_SRODBNACK  0x88              // (SR) data byte received under own slave
                                                        //  address; NACK returned
              #define  SMB_SRGDBACK   0x90              // (SR) data byte received under general
                                                        //  call address; ACK returned
              #define  SMB_SRGDBNACK  0x98              // (SR) data byte received under general
                                                        //  call address; NACK returned
              #define  SMB_SRSTOP     0xa0              // (SR) STOP or repeated START received
                                                        //  while addressed as a slave
              #define  SMB_STOADACK   0xa8              // (ST) SMB's own slave address + R rec'vd;
                                                        //  ACK transmitted
              #define  SMB_STOARBLOST 0xb0              // (ST) arbitration lost in transmitting
                                                        //  slave address + R/W as master; own
                                                        //  slave address rec'vd; ACK transmitted
              #define  SMB_STDBACK    0xb8              // (ST) data byte transmitted; ACK rec'ed
              #define  SMB_STDBNACK   0xc0              // (ST) data byte transmitted; NACK rec'ed
              #define  SMB_STDBLAST   0xc8              // (ST) last data byte transmitted (AA=0);
                                                        //  ACK received
              #define  SMB_SCLHIGHTO  0xd0              // (ST & SR) SCL clock high timer per
                                                        //  SMB0CR timed out (FTE=1)
              #define  SMB_IDLE       0xf8              // (all modes) Idle
              
              #endif

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

⌨️ 快捷键说明

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