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

📄 util.lst

📁 w77E58开发的具备蓝牙功能的GPS导航仪
💻 LST
📖 第 1 页 / 共 2 页
字号:
                  {
                     TI_1=0;
                     SBUF1=0x34;
                   
                       #if 0  
                     while(TI_1_1==0) ;
                     TI_1=0;
                     SBUF1=0x35;
                     while(TI_1_1==0) ;
                     TI_1=0;
                     SBUF1=0x36;
                     while(TI_1_1==0) ;
                     TI_1=0;
                   #endif    
                  
                      }
              } 
              
              #endif
 196          
 197          
 198          //P1.4
 199          void ISR_Int2(void) interrupt 8 //using 1
 200          {
 201   1      
 202   1            //if(SysTask==0)SysTask++;  
 203   1      
 204   1      
 205   1      }
 206          
 207          
 208          void ISR_Int3(void) interrupt 9 //using 1
 209          {
 210   1      
 211   1      ;
 212   1      
 213   1      }
 214          
 215          
 216          void ISR_Int4(void) interrupt 10 //using 1
 217          {
 218   1      
 219   1      ;
 220   1      
 221   1      }
 222          
 223          void ISR_Int5(void) interrupt 11 //using 1
C51 COMPILER V7.50   UTIL                                                                  05/19/2008 18:30:54 PAGE 5   

 224          {
 225   1      
 226   1      ;
 227   1      
 228   1      }
 229          
 230          
 231          void ISR_WatchDog(void) interrupt 12 //using 1
 232          {
 233   1      
 234   1      ;
 235   1      
 236   1      }
 237          
 238          
 239          #ifdef DEBUG_GPS
 240          #define UART1_9600_11M
 241          #else
              #define UART1_4800_11M
              #endif
 244          /**************************************************************************
 245          *  Init system                                                            
 246          **************************************************************************/
 247          void CPU_init(void)
 248          {
 249   1      
 250   1                 EA  = 0;
*** ERROR C202 IN LINE 250 OF UTIL.C: 'EA': undefined identifier
 251   1                 EIE = 0;
*** ERROR C202 IN LINE 251 OF UTIL.C: 'EIE': undefined identifier
 252   1                 
 253   1                 P1=0xff;
*** ERROR C202 IN LINE 253 OF UTIL.C: 'P1': undefined identifier
 254   1                 P3=0xff;
*** ERROR C202 IN LINE 254 OF UTIL.C: 'P3': undefined identifier
 255   1                 P0=0xff;
*** ERROR C202 IN LINE 255 OF UTIL.C: 'P0': undefined identifier
 256   1                   
 257   1                //system init ,其中串口0用定时器2,串口1用定时器1 
 258   1                //串口1的设置
 259   1                IE = 0x90;         //允许总中断和串口0的中断
*** ERROR C202 IN LINE 259 OF UTIL.C: 'IE': undefined identifier
 260   1                TMOD=0x20;       //定时器1工作在模式2
*** ERROR C202 IN LINE 260 OF UTIL.C: 'TMOD': undefined identifier
 261   1                //CKCON=0x30;      //Timerl和Timer2时钟为1/12CLOCK
 262   1                    //CKCON |= 0x10;     //Timer1 =1/4 clock   
 263   1                //CKCON |= 0x20;     //Timer2 =1/4 clock   
 264   1             
 265   1                #if 0    
                                TL1=?;        //baud rate=1200 /11.0592       
                        TH1=?;                                    
                    #endif
 269   1               
 270   1                #if 0    
                                TL1=244;        //baud rate=2400 /11.0592       
                        TH1=244;                                    
                    #endif
 274   1            
 275   1                #ifdef UART1_4800_11M //def  BAUD_4800_11M
                              
                        TL1=250;        //0xfa 0xfa is baud rate=4800 /11.0592
                        TH1=250;
C51 COMPILER V7.50   UTIL                                                                  05/19/2008 18:30:54 PAGE 6   

                    #endif
 280   1      
 281   1            #ifdef UART1_9600_11M
 282   1                        TL1=253;        //0XFDFD baud rate=9600          /11.0592  
*** ERROR C202 IN LINE 282 OF UTIL.C: 'TL1': undefined identifier
 283   1                TH1=253;
*** ERROR C202 IN LINE 283 OF UTIL.C: 'TH1': undefined identifier
 284   1            #endif
 285   1      
 286   1            
 287   1          
 288   1                        SCON1=0x58;       //工作在模式1,允许接收
*** ERROR C202 IN LINE 288 OF UTIL.C: 'SCON1': undefined identifier
 289   1                //SCON1=0x50;         /* mode 1: 8-bit UART, enable receiver   */
 290   1                //SMOD_1 = 1;        //UART1 baud*2
 291   1                        ES1=1;             //串口1中断允许
*** ERROR C202 IN LINE 291 OF UTIL.C: 'ES1': undefined identifier
 292   1                
 293   1                        SCON=0x58;       //工作在模式1,接收允许; 
*** ERROR C202 IN LINE 293 OF UTIL.C: 'SCON': undefined identifier
 294   1                //SCON=0x50;         /* mode 1: 8-bit UART, enable receiver   */
 295   1                        
 296   1                        PCON = 0x00;        // SM0=0 SM1=1 在10位异步收发模式 SMOD=0 溢出速率/32 
*** ERROR C202 IN LINE 296 OF UTIL.C: 'PCON': undefined identifier
 297   1                //PCON = 0x80;     //UART0 baud*2 
 298   1              
 299   1                        
 300   1                        //定时器2:波特率=振荡器频率/(32*(65536-(RCAP2H,RCAP2L)))
 301   1                //9600=11059200/(32X(65536-RCAP2HL))
 302   1      
 303   1                        T2CON=0x30;      //用定时器2做串口0的波特率发生器
*** ERROR C202 IN LINE 303 OF UTIL.C: 'T2CON': undefined identifier
 304   1             
 305   1                 #if 0   
                                RCAP2H=0xfe;     // 11.0592M晶振下, baud rate=1200 
                        RCAP2L=0xe0;
                     #endif
 309   1                 #if 0   
                                RCAP2H=0xff;     // 11.0592M晶振下, baud rate=2400 
                        RCAP2L=0x70;
                     #endif
 313   1          
 314   1                 #ifdef UART0_4800_11M
                                RCAP2H=0xff;     // 11.0592M晶振下, baud rate=4800 
                        RCAP2L=0xb8;
                     #endif
 318   1      
 319   1      
 320   1                 #ifdef UART0_9600_11M
                                RCAP2H=0xff;     // 11.0592M晶振下, baud rate=9600 
                        RCAP2L=0xdc;
                         #endif
 324   1      
 325   1      
 326   1              #ifdef  UART0_19200_11M
 327   1                        RCAP2H=0xff;     // 11.0592M晶振下, baud rate=19200 ?
*** ERROR C202 IN LINE 327 OF UTIL.C: 'RCAP2H': undefined identifier
 328   1                RCAP2L=0xee;
*** ERROR C202 IN LINE 328 OF UTIL.C: 'RCAP2L': undefined identifier
 329   1                 #endif
 330   1      
 331   1      
C51 COMPILER V7.50   UTIL                                                                  05/19/2008 18:30:54 PAGE 7   

 332   1              #ifdef  UART0_38400_11M
                                RCAP2H=0xff;     // 11.0592M晶振下, baud rate=38400 ?
                        RCAP2L=0xf7;
                         #endif
 336   1      
 337   1      
 338   1      
 339   1      
 340   1                    TMOD |=0x01;     //th1 auto load 2X8,th0 1X16
*** ERROR C202 IN LINE 340 OF UTIL.C: 'TMOD': undefined identifier
 341   1                ET0 = 1; 
*** ERROR C202 IN LINE 341 OF UTIL.C: 'ET0': undefined identifier
 342   1                TH0 = 0xf7;
*** ERROR C202 IN LINE 342 OF UTIL.C: 'TH0': undefined identifier
 343   1                TL0 = 0x60;
*** ERROR C202 IN LINE 343 OF UTIL.C: 'TL0': undefined identifier
 344   1                TR0 = 1;
*** ERROR C202 IN LINE 344 OF UTIL.C: 'TR0': undefined identifier
 345   1            
 346   1                TR2 = 1;
*** ERROR C202 IN LINE 346 OF UTIL.C: 'TR2': undefined identifier
 347   1                TR1 = 1;
*** ERROR C202 IN LINE 347 OF UTIL.C: 'TR1': undefined identifier
 348   1      
 349   1      }/*end CPU_system_init*/ 
 350          
 351          
 352          

C51 COMPILATION COMPLETE.  1 WARNING(S),  37 ERROR(S)

⌨️ 快捷键说明

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