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

📄 can.lst

📁 xc164的双can的使用例程
💻 LST
📖 第 1 页 / 共 5 页
字号:
  430  1        ///  - remote monitoring is disabled
  431  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  432  1      
  433  1        CAN_MSGCFGL5   =  0x0000;      // load message configuration register low
  434  1        CAN_MSGCFGH5   =  0x0000;      // load message configuration register high
  435  1      
  436  1        ///  - acceptance mask 11-bit: 0x7FF
  437  1        ///  - identifier 11-bit:      0x006
  438  1      
  439  1        CAN_MSGAMRL5   =  0xFFFF;      // load acceptance mask register low
  440  1        CAN_MSGAMRH5   =  0xFFFF;      // load acceptance mask register high
  441  1        CAN_MSGARL5    =  0x0000;      // load arbitration register low
  442  1        CAN_MSGARH5    =  0x0018;      // load arbitration register high
  443  1        CAN_MSGDRL50   =  0x0000;      // load data register 0 low
  444  1        CAN_MSGDRH50   =  0x0000;      // load data register 0 high
  445  1        CAN_MSGDRL54   =  0x0000;      // load data register 4 low
  446  1        CAN_MSGDRH54   =  0x0000;      // load data register 4 high
  447  1      
  448  1        ///  - functionality of standard message object
  449  1      
  450  1        CAN_MSGFGCRL5  =  0x0000;      // load FIFO/gateway control register low
  451  1        CAN_MSGFGCRH5  =  0x0005;      // load FIFO/gateway control register high
  452  1      
  453  1        CAN_MSGCTRH5   =  0x0000;      // load message control register high
  454  1        CAN_MSGCTRL5   =  0x5599;      // load message control register low
  455  1      
  456  1        ///  -----------------------------------------------------------------------
  457  1        ///  Configuration of Message Object 6:
  458  1        ///  -----------------------------------------------------------------------
  459  1        ///  - message object 6 is valid
  460  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  461  1        ///    reception of a frame
  462  1      
  463  1        ///  - message object is used as receive object
  464  1        ///  - standard 11-bit identifier
  465  1        ///  - 0 valid data bytes
  466  1        ///  - this message object works with CAN node A
  467  1        ///  - remote monitoring is disabled
  468  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  469  1      
  470  1        CAN_MSGCFGL6   =  0x0000;      // load message configuration register low
  471  1        CAN_MSGCFGH6   =  0x0000;      // load message configuration register high
  472  1      
  473  1        ///  - acceptance mask 11-bit: 0x7FF
  474  1        ///  - identifier 11-bit:      0x007
  475  1      
  476  1        CAN_MSGAMRL6   =  0xFFFF;      // load acceptance mask register low
  477  1        CAN_MSGAMRH6   =  0xFFFF;      // load acceptance mask register high
  478  1        CAN_MSGARL6    =  0x0000;      // load arbitration register low
  479  1        CAN_MSGARH6    =  0x001C;      // load arbitration register high
  480  1        CAN_MSGDRL60   =  0x0000;      // load data register 0 low
  481  1        CAN_MSGDRH60   =  0x0000;      // load data register 0 high
  482  1        CAN_MSGDRL64   =  0x0000;      // load data register 4 low
  483  1        CAN_MSGDRH64   =  0x0000;      // load data register 4 high
  484  1      
  485  1        ///  - functionality of standard message object
  486  1      
  487  1        CAN_MSGFGCRL6  =  0x0000;      // load FIFO/gateway control register low
  488  1        CAN_MSGFGCRH6  =  0x0006;      // load FIFO/gateway control register high
  489  1      
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 9   

  490  1        CAN_MSGCTRH6   =  0x0000;      // load message control register high
  491  1        CAN_MSGCTRL6   =  0x5599;      // load message control register low
  492  1      
  493  1        ///  -----------------------------------------------------------------------
  494  1        ///  Configuration of Message Object 7:
  495  1        ///  -----------------------------------------------------------------------
  496  1        ///  - message object 7 is valid
  497  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  498  1        ///    reception of a frame
  499  1      
  500  1        ///  - message object is used as receive object
  501  1        ///  - standard 11-bit identifier
  502  1        ///  - 0 valid data bytes
  503  1        ///  - this message object works with CAN node A
  504  1        ///  - remote monitoring is disabled
  505  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  506  1      
  507  1        CAN_MSGCFGL7   =  0x0000;      // load message configuration register low
  508  1        CAN_MSGCFGH7   =  0x0000;      // load message configuration register high
  509  1      
  510  1        ///  - acceptance mask 11-bit: 0x7FF
  511  1        ///  - identifier 11-bit:      0x008
  512  1      
  513  1        CAN_MSGAMRL7   =  0xFFFF;      // load acceptance mask register low
  514  1        CAN_MSGAMRH7   =  0xFFFF;      // load acceptance mask register high
  515  1        CAN_MSGARL7    =  0x0000;      // load arbitration register low
  516  1        CAN_MSGARH7    =  0x0020;      // load arbitration register high
  517  1        CAN_MSGDRL70   =  0x0000;      // load data register 0 low
  518  1        CAN_MSGDRH70   =  0x0000;      // load data register 0 high
  519  1        CAN_MSGDRL74   =  0x0000;      // load data register 4 low
  520  1        CAN_MSGDRH74   =  0x0000;      // load data register 4 high
  521  1      
  522  1        ///  - functionality of standard message object
  523  1      
  524  1        CAN_MSGFGCRL7  =  0x0000;      // load FIFO/gateway control register low
  525  1        CAN_MSGFGCRH7  =  0x0007;      // load FIFO/gateway control register high
  526  1      
  527  1        CAN_MSGCTRH7   =  0x0000;      // load message control register high
  528  1        CAN_MSGCTRL7   =  0x5599;      // load message control register low
  529  1      
  530  1        ///  -----------------------------------------------------------------------
  531  1        ///  Configuration of Message Object 8:
  532  1        ///  -----------------------------------------------------------------------
  533  1        ///  - message object 8 is valid
  534  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  535  1        ///    reception of a frame
  536  1      
  537  1        ///  - message object is used as receive object
  538  1        ///  - standard 11-bit identifier
  539  1        ///  - 0 valid data bytes
  540  1        ///  - this message object works with CAN node A
  541  1        ///  - remote monitoring is disabled
  542  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  543  1      
  544  1        CAN_MSGCFGL8   =  0x0000;      // load message configuration register low
  545  1        CAN_MSGCFGH8   =  0x0000;      // load message configuration register high
  546  1      
  547  1        ///  - acceptance mask 11-bit: 0x7FF
  548  1        ///  - identifier 11-bit:      0x009
  549  1      
  550  1        CAN_MSGAMRL8   =  0xFFFF;      // load acceptance mask register low
  551  1        CAN_MSGAMRH8   =  0xFFFF;      // load acceptance mask register high
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 10  

  552  1        CAN_MSGARL8    =  0x0000;      // load arbitration register low
  553  1        CAN_MSGARH8    =  0x0024;      // load arbitration register high
  554  1        CAN_MSGDRL80   =  0x0000;      // load data register 0 low
  555  1        CAN_MSGDRH80   =  0x0000;      // load data register 0 high
  556  1        CAN_MSGDRL84   =  0x0000;      // load data register 4 low
  557  1        CAN_MSGDRH84   =  0x0000;      // load data register 4 high
  558  1      
  559  1        ///  - functionality of standard message object
  560  1      
  561  1        CAN_MSGFGCRL8  =  0x0000;      // load FIFO/gateway control register low
  562  1        CAN_MSGFGCRH8  =  0x0008;      // load FIFO/gateway control register high
  563  1      
  564  1        CAN_MSGCTRH8   =  0x0000;      // load message control register high
  565  1        CAN_MSGCTRL8   =  0x5599;      // load message control register low
  566  1      
  567  1        ///  -----------------------------------------------------------------------
  568  1        ///  Configuration of Message Object 9:
  569  1        ///  -----------------------------------------------------------------------
  570  1        ///  - message object 9 is valid
  571  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  572  1        ///    reception of a frame
  573  1      
  574  1        ///  - message object is used as receive object
  575  1        ///  - standard 11-bit identifier
  576  1        ///  - 0 valid data bytes
  577  1        ///  - this message object works with CAN node A
  578  1        ///  - remote monitoring is disabled
  579  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  580  1      
  581  1        CAN_MSGCFGL9   =  0x0000;      // load message configuration register low
  582  1        CAN_MSGCFGH9   =  0x0000;      // load message configuration register high
  583  1      
  584  1        ///  - acceptance mask 11-bit: 0x7FF
  585  1        ///  - identifier 11-bit:      0x000
  586  1      
  587  1        CAN_MSGAMRL9   =  0xFFFF;      // load acceptance mask register low
  588  1        CAN_MSGAMRH9   =  0xFFFF;      // load acceptance mask register high
  589  1        CAN_MSGARL9    =  0x0000;      // load arbitration register low
  590  1        CAN_MSGARH9    =  0x0000;      // load arbitration register high
  591  1        CAN_MSGDRL90   =  0x0000;      // load data register 0 low
  592  1        CAN_MSGDRH90   =  0x0000;      // load data register 0 high
  593  1        CAN_MSGDRL94   =  0x0000;      // load data register 4 low
  594  1        CAN_MSGDRH94   =  0x0000;      // load data register 4 high
  595  1      
  596  1        ///  - functionality of standard message object
  597  1      
  598  1        CAN_MSGFGCRL9  =  0x0000;      // load FIFO/gateway control register low
  599  1        CAN_MSGFGCRH9  =  0x0009;      // load FIFO/gateway control register high
  600  1      
  601  1        CAN_MSGCTRH9   =  0x0000;      // load message control register high
  602  1        CAN_MSGCTRL9   =  0x5599;      // load message control register low
  603  1      
  604  1        ///  -----------------------------------------------------------------------
  605  1        ///  Configuration of Message Object 10:
  606  1        ///  -----------------------------------------------------------------------
  607  1        ///  - message object 10 is valid
  608  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  609  1        ///    reception of a frame
  610  1      
  611  1        ///  - message object is used as receive object
  612  1        ///  - standard 11-bit identifier
  613  1        ///  - 0 valid data bytes
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 11  

  614  1        ///  - this message object works with CAN node A
  615  1        ///  - remote monitoring is disabled
  616  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  617  1      
  618  1        CAN_MSGCFGL10  =  0x0000;      // load message configuration register low
  619  1        CAN_MSGCFGH10  =  0x0000;      // load message configuration register high
  620  1      
  621  1        ///  - acceptance mask 11-bit: 0x7FF
  622  1        ///  - identifier 11-bit:      0x000
  623  1      
  624  1        CAN_MSGAMRL10  =  0xFFFF;      // load acceptance mask register low
  625  1        CAN_MSGAMRH10  =  0xFFFF;      // load acceptance mask register high
  626  1        CAN_MSGARL10   =  0x0000;      // load arbitration register low
  627  1        CAN_MSGARH10   =  0x0000;      // load arbitration register high
  628  1        CAN_MSGDRL100  =  0x0000;      // load data register 0 low
  629  1        CAN_MSGDRH100  =  0x0000;      // load data register 0 high
  630  1        CAN_MSGDRL104  =  0x0000;      // load data register 4 low
  631  1        CAN_MSGDRH104  =  0x0000;      // load data register 4 high
  632  1      
  633  1        ///  - functionality of standard message object
  634  1      
  635  1        CAN_MSGFGCRL10  =  0x0000;     // load FIFO/gateway control register low
  636  1        CAN_MSGFGCRH10  =  0x000A;     // load FIFO/gateway control register high
  637  1      
  638  1        CAN_MSGCTRH10  =  0x0000;      // load message control register high
  639  1        CAN_MSGCTRL10  =  0x5599;      // load message control register low
  640  1      
  641  1        ///  -----------------------------------------------------------------------
  642  1        ///  Configuration of Message Object 11:
  643  1        ///  -----------------------------------------------------------------------
  644  1        ///  - message object 11 is valid
  645  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  646  1        ///    reception of a frame
  647  1      
  648  1        ///  - message object is used as receive object
  649  1        ///  - standard 11-bit identifier

⌨️ 快捷键说明

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