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

📄 init.lst

📁 GSM通讯的C语言源程序代码
💻 LST
📖 第 1 页 / 共 2 页
字号:
 186   1      //----------------------------------------------------------------
 187   1      	REF0CN = 0x00;	// Reference Control Register
*** ERROR C202 IN LINE 187 OF .\INIT.C: 'REF0CN': undefined identifier
 188   1      //----------------------------------------------------------------
 189   1      // ADC Configuration
 190   1      //----------------------------------------------------------------
 191   1      	AMX0CF = 0x60;	// AMUX Configuration Register
*** ERROR C202 IN LINE 191 OF .\INIT.C: 'AMX0CF': undefined identifier
 192   1      	AMX0SL = 0x00;	// AMUX Channel Select Register
*** ERROR C202 IN LINE 192 OF .\INIT.C: 'AMX0SL': undefined identifier
 193   1      	ADC0CF = 0xF8;	// ADC Configuration Register
*** ERROR C202 IN LINE 193 OF .\INIT.C: 'ADC0CF': undefined identifier
 194   1      	ADC0CN = 0x00;	// ADC Control Register
*** ERROR C202 IN LINE 194 OF .\INIT.C: 'ADC0CN': undefined identifier
 195   1      	
 196   1      	ADC0LTH = 0x00;	// ADC Less-Than High Byte Register
*** ERROR C202 IN LINE 196 OF .\INIT.C: 'ADC0LTH': undefined identifier
 197   1      	ADC0LTL = 0x00;	// ADC Less-Than Low Byte Register
*** ERROR C202 IN LINE 197 OF .\INIT.C: 'ADC0LTL': undefined identifier
C51 COMPILER V6.12  INIT                                                                   04/12/2009 00:20:03 PAGE 5   

 198   1      	ADC0GTH = 0xFF;	// ADC Greater-Than High Byte Register
*** ERROR C202 IN LINE 198 OF .\INIT.C: 'ADC0GTH': undefined identifier
 199   1      	ADC0GTL = 0xFF;	// ADC Greater-Than Low Byte Register
*** ERROR C202 IN LINE 199 OF .\INIT.C: 'ADC0GTL': undefined identifier
 200   1      
 201   1          AMX1SL = 0x00;  // AMUX1 Channel Select Register
*** ERROR C202 IN LINE 201 OF .\INIT.C: 'AMX1SL': undefined identifier
 202   1          ADC1CF = 0xF8;  // ADC1 Configuration Register
*** ERROR C202 IN LINE 202 OF .\INIT.C: 'ADC1CF': undefined identifier
 203   1          ADC1CN = 0x00;  // ADC1 Control Register
*** ERROR C202 IN LINE 203 OF .\INIT.C: 'ADC1CN': undefined identifier
 204   1      //----------------------------------------------------------------
 205   1      // DAC Configuration
 206   1      //----------------------------------------------------------------
 207   1      	DAC0CN = 0x00;	// DAC0 Control Register
*** ERROR C202 IN LINE 207 OF .\INIT.C: 'DAC0CN': undefined identifier
 208   1      	DAC0L = 0x00;	// DAC0 Low Byte Register
*** ERROR C202 IN LINE 208 OF .\INIT.C: 'DAC0L': undefined identifier
 209   1      	DAC0H = 0x00;	// DAC0 High Byte Register
*** ERROR C202 IN LINE 209 OF .\INIT.C: 'DAC0H': undefined identifier
 210   1      
 211   1      	DAC1CN = 0x00;	// DAC1 Control Register
*** ERROR C202 IN LINE 211 OF .\INIT.C: 'DAC1CN': undefined identifier
 212   1      	DAC1L = 0x00;	// DAC1 Low Byte Register
*** ERROR C202 IN LINE 212 OF .\INIT.C: 'DAC1L': undefined identifier
 213   1      	DAC1H = 0x00;	// DAC1 High Byte Register
*** ERROR C202 IN LINE 213 OF .\INIT.C: 'DAC1H': undefined identifier
 214   1      //----------------------------------------------------------------
 215   1      // SPI Configuration
 216   1      //----------------------------------------------------------------
 217   1      	SPI0CN = 0x00;	// SPI Control Register
*** ERROR C202 IN LINE 217 OF .\INIT.C: 'SPI0CN': undefined identifier
 218   1      	SPI0CFG = 0x00;	// SPI Configuration Register
*** ERROR C202 IN LINE 218 OF .\INIT.C: 'SPI0CFG': undefined identifier
 219   1      	SPI0CKR = 0x00;	// SPI Clock Rate Register
*** ERROR C202 IN LINE 219 OF .\INIT.C: 'SPI0CKR': undefined identifier
 220   1      //----------------------------------------------------------------
 221   1      // UART Configuration
 222   1      //----------------------------------------------------------------
 223   1      /*
 224   1          SCON0 = 0x40;       // Serial Port Control Register
 225   1          SADEN0 = 0x00;      // Serial 0 Slave Address Enable
 226   1          SADDR0 = 0x00;      // Serial 0 Slave Address Register
 227   1      
 228   1          PCON = 0x00;        // Power Control Register
 229   1      
 230   1          SCON1 = 0x00;       // Serial Port 1 Control Register   
 231   1          SADEN1 = 0x00;      // Serial 1 Slave Address Enable
 232   1      	SADDR1 = 0x00;      // Serial 1 Slave Address Register
 233   1      */
 234   1      	SADEN0 = 0x00;      // Serial 0 Slave Address Enable
*** ERROR C202 IN LINE 234 OF .\INIT.C: 'SADEN0': undefined identifier
 235   1          SADDR0 = 0x00;      // Serial 0 Slave Address Register
*** ERROR C202 IN LINE 235 OF .\INIT.C: 'SADDR0': undefined identifier
 236   1      //----------------------------------------------------------------
 237   1      // SMBus Configuration
 238   1      //----------------------------------------------------------------
 239   1      	SMB0CN = 0x00;	// SMBus Control Register
*** ERROR C202 IN LINE 239 OF .\INIT.C: 'SMB0CN': undefined identifier
 240   1      	SMB0ADR = 0x00;	// SMBus Address Register
*** ERROR C202 IN LINE 240 OF .\INIT.C: 'SMB0ADR': undefined identifier
 241   1      	SMB0CR = 0x00;	// SMBus Clock Rate Register
C51 COMPILER V6.12  INIT                                                                   04/12/2009 00:20:03 PAGE 6   

*** ERROR C202 IN LINE 241 OF .\INIT.C: 'SMB0CR': undefined identifier
 242   1      //----------------------------------------------------------------
 243   1      // PCA Configuration
 244   1      //----------------------------------------------------------------
 245   1          PCA0MD = 0x00;       // PCA Mode Register
*** ERROR C202 IN LINE 245 OF .\INIT.C: 'PCA0MD': undefined identifier
 246   1          PCA0CN = 0x00;      // PCA Control Register
*** ERROR C202 IN LINE 246 OF .\INIT.C: 'PCA0CN': undefined identifier
 247   1          PCA0H = 0x00;       // PCA Counter/Timer High Byte	
*** ERROR C202 IN LINE 247 OF .\INIT.C: 'PCA0H': undefined identifier
 248   1          PCA0L = 0x00;       // PCA Counter/Timer Low Byte
*** ERROR C202 IN LINE 248 OF .\INIT.C: 'PCA0L': undefined identifier
 249   1      
 250   1          //Module 0
 251   1          PCA0CPM0 = 0x00;    // PCA Capture/Compare Register 0
*** ERROR C202 IN LINE 251 OF .\INIT.C: 'PCA0CPM0': undefined identifier
 252   1          PCA0CPL0 = 0x00;    // PCA Counter/Timer Low Byte
*** ERROR C202 IN LINE 252 OF .\INIT.C: 'PCA0CPL0': undefined identifier
 253   1          PCA0CPH0 = 0x00;    // PCA Counter/Timer High Byte
*** ERROR C202 IN LINE 253 OF .\INIT.C: 'PCA0CPH0': undefined identifier
 254   1      
 255   1          //Module 1
 256   1          PCA0CPM1 = 0x00;    // PCA Capture/Compare Register 1
*** ERROR C202 IN LINE 256 OF .\INIT.C: 'PCA0CPM1': undefined identifier
 257   1          PCA0CPL1 = 0x00;    // PCA Counter/Timer Low Byte
*** ERROR C202 IN LINE 257 OF .\INIT.C: 'PCA0CPL1': undefined identifier
 258   1          PCA0CPH1 = 0x00;    // PCA Counter/Timer High Byte
*** ERROR C202 IN LINE 258 OF .\INIT.C: 'PCA0CPH1': undefined identifier
 259   1      
 260   1          //Module 2
 261   1          PCA0CPM2 = 0x00;    // PCA Capture/Compare Register 2
*** ERROR C202 IN LINE 261 OF .\INIT.C: 'PCA0CPM2': undefined identifier
 262   1          PCA0CPL2 = 0x00;    // PCA Counter/Timer Low Byte
*** ERROR C202 IN LINE 262 OF .\INIT.C: 'PCA0CPL2': undefined identifier
 263   1          PCA0CPH2 = 0x00;    // PCA Counter/Timer High Byte
*** ERROR C202 IN LINE 263 OF .\INIT.C: 'PCA0CPH2': undefined identifier
 264   1      
 265   1          //Module 3
 266   1          PCA0CPM3 = 0x00;    // PCA Capture/Compare Register 3
*** ERROR C202 IN LINE 266 OF .\INIT.C: 'PCA0CPM3': undefined identifier
 267   1          PCA0CPL3 = 0x00;    // PCA Counter/Timer Low Byte
*** ERROR C202 IN LINE 267 OF .\INIT.C: 'PCA0CPL3': undefined identifier
 268   1          PCA0CPH3 = 0x00;    // PCA Counter/Timer High Byte
*** ERROR C202 IN LINE 268 OF .\INIT.C: 'PCA0CPH3': undefined identifier
 269   1      
 270   1          //Module 4
 271   1          PCA0CPM4 = 0x00;    // PCA Capture/Compare Register 4
*** ERROR C202 IN LINE 271 OF .\INIT.C: 'PCA0CPM4': undefined identifier
 272   1          PCA0CPL4 = 0x00;    // PCA Counter/Timer Low Byte
*** ERROR C202 IN LINE 272 OF .\INIT.C: 'PCA0CPL4': undefined identifier
 273   1          PCA0CPH4 = 0x00;    // PCA Counter/Timer High Byte
*** ERROR C202 IN LINE 273 OF .\INIT.C: 'PCA0CPH4': undefined identifier
 274   1      	
 275   1      //----------------------------------------------------------------
 276   1      // Timer Configuration
 277   1      //----------------------------------------------------------------
 278   1          CKCON = 0x00;   // Clock Control Register
*** ERROR C202 IN LINE 278 OF .\INIT.C: 'CKCON': undefined identifier
 279   1          TH0 = 0x00;     // Timer 0 High Byte
*** ERROR C202 IN LINE 279 OF .\INIT.C: 'TH0': undefined identifier
 280   1          TL0 = 0x00;     // Timer 0 Low Byte
*** ERROR C202 IN LINE 280 OF .\INIT.C: 'TL0': undefined identifier
C51 COMPILER V6.12  INIT                                                                   04/12/2009 00:20:03 PAGE 7   

 281   1          TH1 = 0x00;     // Timer 1 High Byte
*** ERROR C202 IN LINE 281 OF .\INIT.C: 'TH1': undefined identifier
 282   1          TL1 = 0x00;	    // Timer 1 Low Byte
*** ERROR C202 IN LINE 282 OF .\INIT.C: 'TL1': undefined identifier
 283   1          TMOD = 0x00;    // Timer Mode Register
*** ERROR C202 IN LINE 283 OF .\INIT.C: 'TMOD': undefined identifier
 284   1          TCON = 0x00;    // Timer Control Register 
*** ERROR C202 IN LINE 284 OF .\INIT.C: 'TCON': undefined identifier
 285   1      
 286   1          RCAP2H = 0xFF;  // Timer 2 Capture Register High Byte
*** ERROR C202 IN LINE 286 OF .\INIT.C: 'RCAP2H': undefined identifier
 287   1          RCAP2L = 0xB8;  // Timer 2 Capture Register Low Byte	
*** ERROR C202 IN LINE 287 OF .\INIT.C: 'RCAP2L': undefined identifier
 288   1          TH2 = 0x00;     // Timer 2 High Byte	
*** ERROR C202 IN LINE 288 OF .\INIT.C: 'TH2': undefined identifier
 289   1          TL2 = 0x00;     // Timer 2 Low Byte	
*** ERROR C202 IN LINE 289 OF .\INIT.C: 'TL2': undefined identifier
 290   1          T2CON = 0x34;   // Timer 2 Control Register
*** ERROR C202 IN LINE 290 OF .\INIT.C: 'T2CON': undefined identifier
 291   1      		
 292   1          TMR3RLL = 0x00; // Timer 3 Reload Register Low Byte
*** ERROR C202 IN LINE 292 OF .\INIT.C: 'TMR3RLL': undefined identifier
 293   1          TMR3RLH = 0x00; // Timer 3 Reload Register High Byte
*** ERROR C202 IN LINE 293 OF .\INIT.C: 'TMR3RLH': undefined identifier
 294   1          TMR3H = 0x00;   // Timer 3 High Byte
*** ERROR C202 IN LINE 294 OF .\INIT.C: 'TMR3H': undefined identifier
 295   1          TMR3L = 0x00;   // Timer 3 Low Byte
*** ERROR C202 IN LINE 295 OF .\INIT.C: 'TMR3L': undefined identifier
 296   1          TMR3CN = 0x00;  // Timer 3 Control Register
*** ERROR C202 IN LINE 296 OF .\INIT.C: 'TMR3CN': undefined identifier
 297   1      
 298   1          RCAP4H = 0x00;  // Timer 4 Capture Register High Byte
*** ERROR C202 IN LINE 298 OF .\INIT.C: 'RCAP4H': undefined identifier
 299   1          RCAP4L = 0x00;  // Timer 4 Capture Register Low Byte
*** ERROR C202 IN LINE 299 OF .\INIT.C: 'RCAP4L': undefined identifier
 300   1          TH4 = 0x00;     // Timer 4 High Byte
*** ERROR C202 IN LINE 300 OF .\INIT.C: 'TH4': undefined identifier
 301   1          TL4 = 0x00;     // Timer 4 Low Byte
*** ERROR C202 IN LINE 301 OF .\INIT.C: 'TL4': undefined identifier
 302   1          T4CON = 0x00;   // Timer 4 Control Register
*** ERROR C202 IN LINE 302 OF .\INIT.C: 'T4CON': undefined identifier
 303   1      
 304   1      //----------------------------------------------------------------
 305   1      // Reset Source Configuration
 306   1      //
 307   1      // Bit 7  | Bit 6  | Bit 5  | Bit 4  | Bit 3 | Bit 2 | Bit 1 | Bit 0
 308   1      //------------------------------------------------------------------     
 309   1      //    R	 |   R/W  |  R/W   |  R/W   |   R   |   R   |  R/W  |  R
 310   1      //------------------------------------------------------------------
 311   1      //  JTAG  |Convert | Comp.0 | S/W    | WDT   | Miss. | POR   | HW
 312   1      // Reset  |Start   | Reset/ | Reset  | Reset | Clock | Force | Pin
 313   1      // Flag   |Reset/  | Enable | Force  | Flag  | Detect| &     | Reset
 314   1      //        |Enable  | Flag   | &      |       | Flag  | Flag  | Flag
 315   1      //        |Flag    |        | Flag   |       |       |       |
 316   1      //------------------------------------------------------------------
 317   1      // NOTE! : Comparator 0 must be enabled before it is enabled as a 
 318   1      // reset source.
 319   1      //
 320   1      // NOTE! : External CNVSTR must be enalbed through the crossbar, and
 321   1      // the crossbar enabled prior to enabling CNVSTR as a reset source 
 322   1      //------------------------------------------------------------------
 323   1      
C51 COMPILER V6.12  INIT                                                                   04/12/2009 00:20:03 PAGE 8   

 324   1      	RSTSRC = 0x00;	// Reset Source Register
*** ERROR C202 IN LINE 324 OF .\INIT.C: 'RSTSRC': undefined identifier
 325   1      //----------------------------------------------------------------
 326   1      // Interrupt Configuration
 327   1      //----------------------------------------------------------------
 328   1      
 329   1          IE = 0x00;          //Interrupt Enable
*** ERROR C202 IN LINE 329 OF .\INIT.C: 'IE': undefined identifier
 330   1          IP = 0x00;          //Interrupt Priority
*** ERROR C202 IN LINE 330 OF .\INIT.C: 'IP': undefined identifier
 331   1          EIE1 = 0x00;        //Extended Interrupt Enable 1
*** ERROR C202 IN LINE 331 OF .\INIT.C: 'EIE1': undefined identifier
 332   1          EIE2 = 0x00;        //Extended Interrupt Enable 2
*** ERROR C202 IN LINE 332 OF .\INIT.C: 'EIE2': undefined identifier
 333   1          EIP1 = 0x00;        //Extended Interrupt Priority 1
*** ERROR C202 IN LINE 333 OF .\INIT.C: 'EIP1': undefined identifier
 334   1          EIP2 = 0x00;        //Extended Interrupt Priority 2
*** ERROR C202 IN LINE 334 OF .\INIT.C: 'EIP2': undefined identifier
 335   1      // other initialization code here...
 336   1      
 337   1      }   //End of config

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

⌨️ 快捷键说明

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