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

📄 can.lst

📁 xc164的双can的使用例程
💻 LST
📖 第 1 页 / 共 5 页
字号:
  650  1        ///  - 0 valid data bytes
  651  1        ///  - this message object works with CAN node A
  652  1        ///  - remote monitoring is disabled
  653  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  654  1      
  655  1        CAN_MSGCFGL11  =  0x0000;      // load message configuration register low
  656  1        CAN_MSGCFGH11  =  0x0000;      // load message configuration register high
  657  1      
  658  1        ///  - acceptance mask 11-bit: 0x7FF
  659  1        ///  - identifier 11-bit:      0x00C
  660  1      
  661  1        CAN_MSGAMRL11  =  0xFFFF;      // load acceptance mask register low
  662  1        CAN_MSGAMRH11  =  0xFFFF;      // load acceptance mask register high
  663  1        CAN_MSGARL11   =  0x0000;      // load arbitration register low
  664  1        CAN_MSGARH11   =  0x0030;      // load arbitration register high
  665  1        CAN_MSGDRL110  =  0x0000;      // load data register 0 low
  666  1        CAN_MSGDRH110  =  0x0000;      // load data register 0 high
  667  1        CAN_MSGDRL114  =  0x0000;      // load data register 4 low
  668  1        CAN_MSGDRH114  =  0x0000;      // load data register 4 high
  669  1      
  670  1        ///  - functionality of standard message object
  671  1      
  672  1        CAN_MSGFGCRL11  =  0x0000;     // load FIFO/gateway control register low
  673  1        CAN_MSGFGCRH11  =  0x000B;     // load FIFO/gateway control register high
  674  1      
  675  1        CAN_MSGCTRH11  =  0x0000;      // load message control register high
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 12  

  676  1        CAN_MSGCTRL11  =  0x5599;      // load message control register low
  677  1      
  678  1        ///  -----------------------------------------------------------------------
  679  1        ///  Configuration of Message Object 12:
  680  1        ///  -----------------------------------------------------------------------
  681  1        ///  - message object 12 is valid
  682  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  683  1        ///    reception of a frame
  684  1      
  685  1        ///  - message object is used as receive object
  686  1        ///  - standard 11-bit identifier
  687  1        ///  - 0 valid data bytes
  688  1        ///  - this message object works with CAN node A
  689  1        ///  - remote monitoring is disabled
  690  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  691  1      
  692  1        CAN_MSGCFGL12  =  0x0000;      // load message configuration register low
  693  1        CAN_MSGCFGH12  =  0x0000;      // load message configuration register high
  694  1      
  695  1        ///  - acceptance mask 11-bit: 0x7FF
  696  1        ///  - identifier 11-bit:      0x00D
  697  1      
  698  1        CAN_MSGAMRL12  =  0xFFFF;      // load acceptance mask register low
  699  1        CAN_MSGAMRH12  =  0xFFFF;      // load acceptance mask register high
  700  1        CAN_MSGARL12   =  0x0000;      // load arbitration register low
  701  1        CAN_MSGARH12   =  0x0034;      // load arbitration register high
  702  1        CAN_MSGDRL120  =  0x0000;      // load data register 0 low
  703  1        CAN_MSGDRH120  =  0x0000;      // load data register 0 high
  704  1        CAN_MSGDRL124  =  0x0000;      // load data register 4 low
  705  1        CAN_MSGDRH124  =  0x0000;      // load data register 4 high
  706  1      
  707  1        ///  - functionality of standard message object
  708  1      
  709  1        CAN_MSGFGCRL12  =  0x0000;     // load FIFO/gateway control register low
  710  1        CAN_MSGFGCRH12  =  0x000C;     // load FIFO/gateway control register high
  711  1      
  712  1        CAN_MSGCTRH12  =  0x0000;      // load message control register high
  713  1        CAN_MSGCTRL12  =  0x5599;      // load message control register low
  714  1      
  715  1        ///  -----------------------------------------------------------------------
  716  1        ///  Configuration of Message Object 13:
  717  1        ///  -----------------------------------------------------------------------
  718  1        ///  - message object 13 is valid
  719  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  720  1        ///    reception of a frame
  721  1      
  722  1        ///  - message object is used as receive object
  723  1        ///  - standard 11-bit identifier
  724  1        ///  - 0 valid data bytes
  725  1        ///  - this message object works with CAN node A
  726  1        ///  - remote monitoring is disabled
  727  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  728  1      
  729  1        CAN_MSGCFGL13  =  0x0000;      // load message configuration register low
  730  1        CAN_MSGCFGH13  =  0x0000;      // load message configuration register high
  731  1      
  732  1        ///  - acceptance mask 11-bit: 0x7FF
  733  1        ///  - identifier 11-bit:      0x00E
  734  1      
  735  1        CAN_MSGAMRL13  =  0xFFFF;      // load acceptance mask register low
  736  1        CAN_MSGAMRH13  =  0xFFFF;      // load acceptance mask register high
  737  1        CAN_MSGARL13   =  0x0000;      // load arbitration register low
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 13  

  738  1        CAN_MSGARH13   =  0x0038;      // load arbitration register high
  739  1        CAN_MSGDRL130  =  0x0000;      // load data register 0 low
  740  1        CAN_MSGDRH130  =  0x0000;      // load data register 0 high
  741  1        CAN_MSGDRL134  =  0x0000;      // load data register 4 low
  742  1        CAN_MSGDRH134  =  0x0000;      // load data register 4 high
  743  1      
  744  1        ///  - functionality of standard message object
  745  1      
  746  1        CAN_MSGFGCRL13  =  0x0000;     // load FIFO/gateway control register low
  747  1        CAN_MSGFGCRH13  =  0x000D;     // load FIFO/gateway control register high
  748  1      
  749  1        CAN_MSGCTRH13  =  0x0000;      // load message control register high
  750  1        CAN_MSGCTRL13  =  0x5599;      // load message control register low
  751  1      
  752  1        ///  -----------------------------------------------------------------------
  753  1        ///  Configuration of Message Object 14:
  754  1        ///  -----------------------------------------------------------------------
  755  1        ///  - message object 14 is valid
  756  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  757  1        ///    reception of a frame
  758  1      
  759  1        ///  - message object is used as receive object
  760  1        ///  - standard 11-bit identifier
  761  1        ///  - 0 valid data bytes
  762  1        ///  - this message object works with CAN node A
  763  1        ///  - remote monitoring is disabled
  764  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  765  1      
  766  1        CAN_MSGCFGL14  =  0x0000;      // load message configuration register low
  767  1        CAN_MSGCFGH14  =  0x0000;      // load message configuration register high
  768  1      
  769  1        ///  - acceptance mask 11-bit: 0x7FF
  770  1        ///  - identifier 11-bit:      0x00F
  771  1      
  772  1        CAN_MSGAMRL14  =  0xFFFF;      // load acceptance mask register low
  773  1        CAN_MSGAMRH14  =  0xFFFF;      // load acceptance mask register high
  774  1        CAN_MSGARL14   =  0x0000;      // load arbitration register low
  775  1        CAN_MSGARH14   =  0x003C;      // load arbitration register high
  776  1        CAN_MSGDRL140  =  0x0000;      // load data register 0 low
  777  1        CAN_MSGDRH140  =  0x0000;      // load data register 0 high
  778  1        CAN_MSGDRL144  =  0x0000;      // load data register 4 low
  779  1        CAN_MSGDRH144  =  0x0000;      // load data register 4 high
  780  1      
  781  1        ///  - functionality of standard message object
  782  1      
  783  1        CAN_MSGFGCRL14  =  0x0000;     // load FIFO/gateway control register low
  784  1        CAN_MSGFGCRH14  =  0x000E;     // load FIFO/gateway control register high
  785  1      
  786  1        CAN_MSGCTRH14  =  0x0000;      // load message control register high
  787  1        CAN_MSGCTRL14  =  0x5599;      // load message control register low
  788  1      
  789  1        ///  -----------------------------------------------------------------------
  790  1        ///  Configuration of Message Object 15:
  791  1        ///  -----------------------------------------------------------------------
  792  1        ///  - message object 15 is valid
  793  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  794  1        ///    reception of a frame
  795  1      
  796  1        ///  - message object is used as receive object
  797  1        ///  - standard 11-bit identifier
  798  1        ///  - 0 valid data bytes
  799  1        ///  - this message object works with CAN node A
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 14  

  800  1        ///  - remote monitoring is disabled
  801  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  802  1      
  803  1        CAN_MSGCFGL15  =  0x0000;      // load message configuration register low
  804  1        CAN_MSGCFGH15  =  0x0000;      // load message configuration register high
  805  1      
  806  1        ///  - acceptance mask 11-bit: 0x7FF
  807  1        ///  - identifier 11-bit:      0x010
  808  1      
  809  1        CAN_MSGAMRL15  =  0xFFFF;      // load acceptance mask register low
  810  1        CAN_MSGAMRH15  =  0xFFFF;      // load acceptance mask register high
  811  1        CAN_MSGARL15   =  0x0000;      // load arbitration register low
  812  1        CAN_MSGARH15   =  0x0040;      // load arbitration register high
  813  1        CAN_MSGDRL150  =  0x0000;      // load data register 0 low
  814  1        CAN_MSGDRH150  =  0x0000;      // load data register 0 high
  815  1        CAN_MSGDRL154  =  0x0000;      // load data register 4 low
  816  1        CAN_MSGDRH154  =  0x0000;      // load data register 4 high
  817  1      
  818  1        ///  - functionality of standard message object
  819  1      
  820  1        CAN_MSGFGCRL15  =  0x0000;     // load FIFO/gateway control register low
  821  1        CAN_MSGFGCRH15  =  0x000F;     // load FIFO/gateway control register high
  822  1      
  823  1        CAN_MSGCTRH15  =  0x0000;      // load message control register high
  824  1        CAN_MSGCTRL15  =  0x5599;      // load message control register low
  825  1      
  826  1        ///  -----------------------------------------------------------------------
  827  1        ///  Configuration of Message Object 16:
  828  1        ///  -----------------------------------------------------------------------
  829  1        ///  - message object 16 is valid
  830  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  831  1        ///    reception of a frame
  832  1      
  833  1        ///  - message object is used as receive object
  834  1        ///  - standard 11-bit identifier
  835  1        ///  - 0 valid data bytes
  836  1        ///  - this message object works with CAN node A
  837  1        ///  - remote monitoring is disabled
  838  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  839  1      
  840  1        CAN_MSGCFGL16  =  0x0000;      // load message configuration register low
  841  1        CAN_MSGCFGH16  =  0x0000;      // load message configuration register high
  842  1      
  843  1        ///  - acceptance mask 11-bit: 0x7FF
  844  1        ///  - identifier 11-bit:      0x011
  845  1      
  846  1        CAN_MSGAMRL16  =  0xFFFF;      // load acceptance mask register low
  847  1        CAN_MSGAMRH16  =  0xFFFF;      // load acceptance mask register high
  848  1        CAN_MSGARL16   =  0x0000;      // load arbitration register low
  849  1        CAN_MSGARH16   =  0x0044;      // load arbitration register high
  850  1        CAN_MSGDRL160  =  0x0000;      // load data register 0 low
  851  1        CAN_MSGDRH160  =  0x0000;      // load data register 0 high
  852  1        CAN_MSGDRL164  =  0x0000;      // load data register 4 low
  853  1        CAN_MSGDRH164  =  0x0000;      // load data register 4 high
  854  1      
  855  1        ///  - functionality of standard message object
  856  1      
  857  1        CAN_MSGFGCRL16  =  0x0000;     // load FIFO/gateway control register low
  858  1        CAN_MSGFGCRH16  =  0x0010;     // load FIFO/gateway control register high
  859  1      
  860  1        CAN_MSGCTRH16  =  0x0000;      // load message control register high
  861  1        CAN_MSGCTRL16  =  0x5599;      // load message control register low
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 15  

  862  1      
  863  1        ///  -----------------------------------------------------------------------
  864  1        ///  Configuration of Message Object 17:
  865  1        ///  -----------------------------------------------------------------------
  866  1        ///  - message object 17 is valid
  867  1        ///  - enable receive interrupt; bit INTPND is set after successfull 

⌨️ 快捷键说明

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