完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我正在尝试使用Microchip的DM3300 18来学习CAN的操作。这里是演示板链接:http://www. McCux.com……v+CAN-LIN +启动器+KET+ +,现在我可以从CAN总线分析器接收带有一个特定消息ID的CAN消息,但是我不能用多个消息ID来改变源代码。对于不同的单个MSGSID,SID可以被改变。但是我不能用多个MSGYSID实现源代码。例如:0x100、0x101和0x110,你能帮忙吗?谢谢。
以上来自于百度翻译 以下为原文 I am trying to use Microchip's DM330018 to learn the CAN operation for receving . Here is the demo board link: http://www.microchip.com/...V+CAN-LIN+Starter+Kit+ At present i am able to receive the CAN message from CAN bus analyzer with one particular message ID, but I am not able to change the source code with multiple message IDs. The original source code #define MSG_SID 0x123, and the SID can be changed for a different single MSG_SID. But I am not able to implement the source code with multiple MSG_SID. For example: 0x100, 0x101, and 0x110 Could you please help? Thanks. |
|
相关推荐
2个回答
|
|
|
我想我已经找到原因了,我认为演示代码中有一个错误:这个板的原始演示代码有:C1Fun1Bist.FLTEN1=1;它应该是1FEN1BITS。FLTEN0= 1SO,当我添加另一个过滤器时,我的SEC1FEN1比特。FLTEN2=1,这与设置不一致。在我修正了这个问题之后。我的代码可以接受不同的消息ID。顺便说一下,我使用的是同一个带有不同过滤器的掩码,所以对于不同的消息ID,设置C1FMKSSEL1BIT.F1MSK= 0B01是很重要的。
以上来自于百度翻译 以下为原文 I think I have found the cause, and I think there is an error in the demo code: The original demo code for this board has: C1FEN1bits.FLTEN1 = 1; It should be C1FEN1bits.FLTEN0 = 1 So when I added another filter, I set C1FEN1bits.FLTEN2 = 1 which is not consistent with setting. After I fixed this issue. my code can accept a different message ID. By the way, I am using the same mask with different filter, so it is important to set C1FMSKSEL1bits.F1MSK = 0b01; for different message ID. |
|
|
|
|
|
嗨,确保迁移代码从C30到XC16,因为C30的开发是在5年前停止的,并被XC16取代。
以上来自于百度翻译 以下为原文 Hi, Make sure to migrate the democode from C30 to XC16 as C30 development was stopped 5 years ago and replaced by XC16. Regards |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
490 浏览 0 评论
5806 浏览 9 评论
2346 浏览 8 评论
2234 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3541 浏览 3 评论
1146浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1116浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
883浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
492浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-10 04:49 , Processed in 0.676767 second(s), Total 73, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2546