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

📄 can.lst

📁 xc164的双can的使用例程
💻 LST
📖 第 1 页 / 共 5 页
字号:
  868  1        ///    reception of a frame
  869  1      
  870  1        ///  - message object is used as receive object
  871  1        ///  - standard 11-bit identifier
  872  1        ///  - 0 valid data bytes
  873  1        ///  - this message object works with CAN node A
  874  1        ///  - remote monitoring is disabled
  875  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  876  1      
  877  1        CAN_MSGCFGL17  =  0x0000;      // load message configuration register low
  878  1        CAN_MSGCFGH17  =  0x0000;      // load message configuration register high
  879  1      
  880  1        ///  - acceptance mask 11-bit: 0x7FF
  881  1        ///  - identifier 11-bit:      0x012
  882  1      
  883  1        CAN_MSGAMRL17  =  0xFFFF;      // load acceptance mask register low
  884  1        CAN_MSGAMRH17  =  0xFFFF;      // load acceptance mask register high
  885  1        CAN_MSGARL17   =  0x0000;      // load arbitration register low
  886  1        CAN_MSGARH17   =  0x0048;      // load arbitration register high
  887  1        CAN_MSGDRL170  =  0x0000;      // load data register 0 low
  888  1        CAN_MSGDRH170  =  0x0000;      // load data register 0 high
  889  1        CAN_MSGDRL174  =  0x0000;      // load data register 4 low
  890  1        CAN_MSGDRH174  =  0x0000;      // load data register 4 high
  891  1      
  892  1        ///  - functionality of standard message object
  893  1      
  894  1        CAN_MSGFGCRL17  =  0x0000;     // load FIFO/gateway control register low
  895  1        CAN_MSGFGCRH17  =  0x0011;     // load FIFO/gateway control register high
  896  1      
  897  1        CAN_MSGCTRH17  =  0x0000;      // load message control register high
  898  1        CAN_MSGCTRL17  =  0x5599;      // load message control register low
  899  1      
  900  1        ///  -----------------------------------------------------------------------
  901  1        ///  Configuration of Message Object 18:
  902  1        ///  -----------------------------------------------------------------------
  903  1        ///  - message object 18 is valid
  904  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  905  1        ///    reception of a frame
  906  1      
  907  1        ///  - message object is used as receive object
  908  1        ///  - standard 11-bit identifier
  909  1        ///  - 0 valid data bytes
  910  1        ///  - this message object works with CAN node A
  911  1        ///  - remote monitoring is disabled
  912  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  913  1      
  914  1        CAN_MSGCFGL18  =  0x0000;      // load message configuration register low
  915  1        CAN_MSGCFGH18  =  0x0000;      // load message configuration register high
  916  1      
  917  1        ///  - acceptance mask 11-bit: 0x7FF
  918  1        ///  - identifier 11-bit:      0x013
  919  1      
  920  1        CAN_MSGAMRL18  =  0xFFFF;      // load acceptance mask register low
  921  1        CAN_MSGAMRH18  =  0xFFFF;      // load acceptance mask register high
  922  1        CAN_MSGARL18   =  0x0000;      // load arbitration register low
  923  1        CAN_MSGARH18   =  0x004C;      // load arbitration register high
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 16  

  924  1        CAN_MSGDRL180  =  0x0000;      // load data register 0 low
  925  1        CAN_MSGDRH180  =  0x0000;      // load data register 0 high
  926  1        CAN_MSGDRL184  =  0x0000;      // load data register 4 low
  927  1        CAN_MSGDRH184  =  0x0000;      // load data register 4 high
  928  1      
  929  1        ///  - functionality of standard message object
  930  1      
  931  1        CAN_MSGFGCRL18  =  0x0000;     // load FIFO/gateway control register low
  932  1        CAN_MSGFGCRH18  =  0x0012;     // load FIFO/gateway control register high
  933  1      
  934  1        CAN_MSGCTRH18  =  0x0000;      // load message control register high
  935  1        CAN_MSGCTRL18  =  0x5599;      // load message control register low
  936  1      
  937  1        ///  -----------------------------------------------------------------------
  938  1        ///  Configuration of Message Object 19:
  939  1        ///  -----------------------------------------------------------------------
  940  1        ///  - message object 19 is valid
  941  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  942  1        ///    reception of a frame
  943  1      
  944  1        ///  - message object is used as receive object
  945  1        ///  - standard 11-bit identifier
  946  1        ///  - 0 valid data bytes
  947  1        ///  - this message object works with CAN node A
  948  1        ///  - remote monitoring is disabled
  949  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  950  1      
  951  1        CAN_MSGCFGL19  =  0x0000;      // load message configuration register low
  952  1        CAN_MSGCFGH19  =  0x0000;      // load message configuration register high
  953  1      
  954  1        ///  - acceptance mask 11-bit: 0x7FF
  955  1        ///  - identifier 11-bit:      0x014
  956  1      
  957  1        CAN_MSGAMRL19  =  0xFFFF;      // load acceptance mask register low
  958  1        CAN_MSGAMRH19  =  0xFFFF;      // load acceptance mask register high
  959  1        CAN_MSGARL19   =  0x0000;      // load arbitration register low
  960  1        CAN_MSGARH19   =  0x0050;      // load arbitration register high
  961  1        CAN_MSGDRL190  =  0x0000;      // load data register 0 low
  962  1        CAN_MSGDRH190  =  0x0000;      // load data register 0 high
  963  1        CAN_MSGDRL194  =  0x0000;      // load data register 4 low
  964  1        CAN_MSGDRH194  =  0x0000;      // load data register 4 high
  965  1      
  966  1        ///  - functionality of standard message object
  967  1      
  968  1        CAN_MSGFGCRL19  =  0x0000;     // load FIFO/gateway control register low
  969  1        CAN_MSGFGCRH19  =  0x0013;     // load FIFO/gateway control register high
  970  1      
  971  1        CAN_MSGCTRH19  =  0x0000;      // load message control register high
  972  1        CAN_MSGCTRL19  =  0x5599;      // load message control register low
  973  1      
  974  1        ///  -----------------------------------------------------------------------
  975  1        ///  Configuration of Message Object 20:
  976  1        ///  -----------------------------------------------------------------------
  977  1        ///  - message object 20 is valid
  978  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
  979  1        ///    reception of a frame
  980  1      
  981  1        ///  - message object is used as receive object
  982  1        ///  - standard 11-bit identifier
  983  1        ///  - 0 valid data bytes
  984  1        ///  - this message object works with CAN node A
  985  1        ///  - remote monitoring is disabled
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 17  

  986  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
  987  1      
  988  1        CAN_MSGCFGL20  =  0x0000;      // load message configuration register low
  989  1        CAN_MSGCFGH20  =  0x0000;      // load message configuration register high
  990  1      
  991  1        ///  - acceptance mask 11-bit: 0x7FF
  992  1        ///  - identifier 11-bit:      0x015
  993  1      
  994  1        CAN_MSGAMRL20  =  0xFFFF;      // load acceptance mask register low
  995  1        CAN_MSGAMRH20  =  0xFFFF;      // load acceptance mask register high
  996  1        CAN_MSGARL20   =  0x0000;      // load arbitration register low
  997  1        CAN_MSGARH20   =  0x0054;      // load arbitration register high
  998  1        CAN_MSGDRL200  =  0x0000;      // load data register 0 low
  999  1        CAN_MSGDRH200  =  0x0000;      // load data register 0 high
 1000  1        CAN_MSGDRL204  =  0x0000;      // load data register 4 low
 1001  1        CAN_MSGDRH204  =  0x0000;      // load data register 4 high
 1002  1      
 1003  1        ///  - functionality of standard message object
 1004  1      
 1005  1        CAN_MSGFGCRL20  =  0x0000;     // load FIFO/gateway control register low
 1006  1        CAN_MSGFGCRH20  =  0x0014;     // load FIFO/gateway control register high
 1007  1      
 1008  1        CAN_MSGCTRH20  =  0x0000;      // load message control register high
 1009  1        CAN_MSGCTRL20  =  0x5599;      // load message control register low
 1010  1      
 1011  1        ///  -----------------------------------------------------------------------
 1012  1        ///  Configuration of Message Object 21:
 1013  1        ///  -----------------------------------------------------------------------
 1014  1        ///  - message object 21 is valid
 1015  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
 1016  1        ///    reception of a frame
 1017  1      
 1018  1        ///  - message object is used as receive object
 1019  1        ///  - standard 11-bit identifier
 1020  1        ///  - 0 valid data bytes
 1021  1        ///  - this message object works with CAN node A
 1022  1        ///  - remote monitoring is disabled
 1023  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
 1024  1      
 1025  1        CAN_MSGCFGL21  =  0x0000;      // load message configuration register low
 1026  1        CAN_MSGCFGH21  =  0x0000;      // load message configuration register high
 1027  1      
 1028  1        ///  - acceptance mask 11-bit: 0x7FF
 1029  1        ///  - identifier 11-bit:      0x016
 1030  1      
 1031  1        CAN_MSGAMRL21  =  0xFFFF;      // load acceptance mask register low
 1032  1        CAN_MSGAMRH21  =  0xFFFF;      // load acceptance mask register high
 1033  1        CAN_MSGARL21   =  0x0000;      // load arbitration register low
 1034  1        CAN_MSGARH21   =  0x0058;      // load arbitration register high
 1035  1        CAN_MSGDRL210  =  0x0000;      // load data register 0 low
 1036  1        CAN_MSGDRH210  =  0x0000;      // load data register 0 high
 1037  1        CAN_MSGDRL214  =  0x0000;      // load data register 4 low
 1038  1        CAN_MSGDRH214  =  0x0000;      // load data register 4 high
 1039  1      
 1040  1        ///  - functionality of standard message object
 1041  1      
 1042  1        CAN_MSGFGCRL21  =  0x0000;     // load FIFO/gateway control register low
 1043  1        CAN_MSGFGCRH21  =  0x0015;     // load FIFO/gateway control register high
 1044  1      
 1045  1        CAN_MSGCTRH21  =  0x0000;      // load message control register high
 1046  1        CAN_MSGCTRL21  =  0x5599;      // load message control register low
 1047  1      
C166 COMPILER V6.02, CAN                                                                   08/28/2006 10:05:47 PAGE 18  

 1048  1        ///  -----------------------------------------------------------------------
 1049  1        ///  Configuration of Message Object 22:
 1050  1        ///  -----------------------------------------------------------------------
 1051  1        ///  - message object 22 is valid
 1052  1        ///  - enable receive interrupt; bit INTPND is set after successfull 
 1053  1        ///    reception of a frame
 1054  1      
 1055  1        ///  - message object is used as receive object
 1056  1        ///  - standard 11-bit identifier
 1057  1        ///  - 0 valid data bytes
 1058  1        ///  - this message object works with CAN node A
 1059  1        ///  - remote monitoring is disabled
 1060  1        ///  - receive interrupt node pointer: TwinCAN SRN 0
 1061  1      
 1062  1        CAN_MSGCFGL22  =  0x0000;      // load message configuration register low
 1063  1        CAN_MSGCFGH22  =  0x0000;      // load message configuration register high
 1064  1      
 1065  1        ///  - acceptance mask 11-bit: 0x7FF
 1066  1        ///  - identifier 11-bit:      0x017
 1067  1      
 1068  1        CAN_MSGAMRL22  =  0xFFFF;      // load acceptance mask register low
 1069  1        CAN_MSGAMRH22  =  0xFFFF;      // load acceptance mask register high
 1070  1        CAN_MSGARL22   =  0x0000;      // load arbitration register low
 1071  1        CAN_MSGARH22   =  0x005C;      // load arbitration register high
 1072  1        CAN_MSGDRL220  =  0x0000;      // load data register 0 low
 1073  1        CAN_MSGDRH220  =  0x0000;      // load data register 0 high
 1074  1        CAN_MSGDRL224  =  0x0000;      // load data register 4 low
 1075  1        CAN_MSGDRH224  =  0x0000;      // load data register 4 high
 1076  1      
 1077  1        ///  - functionality of standard message object
 1078  1      
 1079  1        CAN_MSGFGCRL22  =  0x0000;     // load FIFO/gateway control register low
 1080  1        CAN_MSGFGCRH22  =  0x0016;     // load FIFO/gateway control register high
 1081  1      
 1082  1        CAN_MSGCTRH22  =  0x0000;      // load message control register high
 1083  1        CAN_MSGCTRL22  =  0x5599;      // load message control register low
 1084  1      
 1085  1        ///  -----------------------------------------------------------------------
 1086  1        ///  Configuration of Message Object 23:
 1087  1  

⌨️ 快捷键说明

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