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

📄 main.lst

📁 单片机与PC键盘的程序
💻 LST
字号:
C51 COMPILER V6.02  MAIN                                                                   06/02/2004 08:39:51 PAGE 1   


C51 COMPILER V6.02, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN G:\WORK\BOOKS\键盘设~1\单片机~1\PCKEYB~1\MAIN.OBJ
COMPILER INVOKED BY: G:\Program Files\COMP51\C51.EXE G:\WORK\BOOKS\键盘设~1\单片机~1\PCKEYB~1\MAIN.C DB SB OE

stmt level    source

   1          /********************************************
   2          Chip type           : AT90S4434
   3          Clock frequency     : 8,000000 MHz
   4          Memory model        : Tiny
   5          Internal SRAM size  : 256
   6          External SRAM size  : 0
   7          Data Stack size     : 64
   8          *********************************************/
   9          
  10          #include <90s4434.h>
*** ERROR 318 IN LINE 10 OF G:\WORK\BOOKS\键盘设~1\单片机~1\PCKEYB~1\MAIN.C: can't open file '90s4434.h'
  11          #include "kb.h" 
*** ERROR 318 IN LINE 6 OF kb.h: can't open file '90s4434.h'
*** ERROR C141 IN LINE 15 OF KB.H: syntax error near 'interrupt'
*** ERROR C129 IN LINE 15 OF KB.H: missing ';' before ']'
  12          #include <delay.h>   
*** ERROR 318 IN LINE 12 OF G:\WORK\BOOKS\键盘设~1\单片机~1\PCKEYB~1\MAIN.C: can't open file 'delay.h'
  13          
  14          
  15          // Alphanumeric LCD Module functions
  16          #asm
*** ERROR 315 IN LINE 16 OF G:\WORK\BOOKS\键盘设~1\单片机~1\PCKEYB~1\MAIN.C: unknown #directive 'asm'
  17             .equ __lcd_port=0x15
  18          #endasm
*** ERROR 315 IN LINE 18 OF G:\WORK\BOOKS\键盘设~1\单片机~1\PCKEYB~1\MAIN.C: unknown #directive 'endasm'
  19          #include <lcd.h>
*** ERROR 318 IN LINE 19 OF G:\WORK\BOOKS\键盘设~1\单片机~1\PCKEYB~1\MAIN.C: can't open file 'lcd.h'
  20          
  21          // Declare your global variables here
  22          
  23          void main(void)
  24          {
  25          
  26          // Declare your local variables here
  27              unsigned char key;
  28          
  29          // Input/Output Ports initialization
  30          // Port A
  31          PORTA=0x00;
  32          DDRA=0x00;
  33          
  34          // Port B
  35          PORTB=0x00;
  36          DDRB=0x00;
  37          
  38          // Port C
  39          PORTC=0x00;
  40          DDRC=0x00;
  41          
  42          // Port D
  43          PORTD=0x00;
  44          DDRD=0x00;
  45          
  46          // Timer/Counter 0 initialization
  47          // Clock source: System Clock
C51 COMPILER V6.02  MAIN                                                                   06/02/2004 08:39:51 PAGE 2   

  48          // Clock value: Timer 0 Stopped
  49          // Mode: Output Compare
  50          // OC0 output: Disconnected
  51          TCCR0=0x00;
  52          TCNT0=0x00;
  53          
  54          // Timer/Counter 1 initialization
  55          // Clock source: System Clock
  56          // Clock value: Timer 1 Stopped
  57          // Mode: Output Compare
  58          // OC1A output: Discon.
  59          // OC1B output: Discon.
  60          // Noise Canceler: Off
  61          // Input Capture on Falling Edge
  62          TCCR1A=0x00;
  63          TCCR1B=0x00;
  64          TCNT1H=0x00;
  65          TCNT1L=0x00;
  66          OCR1AH=0x00;
  67          OCR1AL=0x00;
  68          OCR1BH=0x00;
  69          OCR1BL=0x00;
  70          
  71          // Timer/Counter 2 initialization
  72          // Clock source: System Clock
  73          // Clock value: Timer 2 Stopped
  74          // Mode: Output Compare
  75          // OC2 output: Disconnected
  76          TCCR2=0x00;
  77          ASSR=0x00;
  78          TCNT2=0x00;
  79          OCR2=0x00;
  80          
  81          // External Interrupt(s) initialization
  82          // INT0: Oon
  83          // INT1: Off 
  84          GIMSK= 0x40;        // Enable INT0 interrupt
  85          MCUCR=0x00;
  86          
  87          // Timer(s)/Counter(s) Interrupt(s) initialization
  88          TIMSK=0x00;
  89          
  90          // Analog Comparator initialization
  91          // Analog Comparator: Off
  92          // Analog Comparator Input Capture by Timer/Counter 1: Off
  93          ACSR=0x80;
  94          
  95          // LCD module initialization
  96          //lcd_init(20);            // Init 20 Zeichendisplay
  97           lcd_init(16);         // Init 16 Zeichendisplay
  98          
  99           InitKeyBoard();               // Initialize keyboard reception
 100           
 101           while(1)
 102              {
 103                  key = getchar_kb();
 104                  lcd_putchar(key);
 105                  delay_ms(5);   
 106                
 107              }
 108          
 109          }
C51 COMPILER V6.02  MAIN                                                                   06/02/2004 08:39:51 PAGE 3   


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

⌨️ 快捷键说明

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