当前位置:网站首页>STM32 CAN 通信 滤波设置问题
STM32 CAN 通信 滤波设置问题
2022-07-27 14:13:00 【漠落】
使用的是 32位的标识符屏蔽位模式
CAN_FilterIdHigh和CAN_FilterIdLow组合成一个32位寄存器,用来存储将要过滤的ID
CAN_FilterMaskIdHigh和CAN_FilterMaskIdLow组合成一个32位寄存器,用来表示这个ID的哪些位
必须符合(置1),哪些位不care(置0).
使用标示符屏蔽模式可以实现接收包含特定位的帧,即一系列的帧。
CAN的接收邮箱标示符寄存器中,31~3位存储29位的扩展标示符。
所以通过滤波器要接收ID为0x0A的帧,
CAN_FilterIdLow = 0x000A << 3; CAN_FilterIdHigh = 0;
CAN_FilterMaskIdLow = 0x00FF << 3; CAN_FilterMaskIdHigh = 0;
边栏推荐
- Graphical SQL is too vivid
- Hdu3117 Fibonacci numbers [mathematics]
- Visual system design example (Halcon WinForm) -9. text display
- Research on Chinese idiom metaphorical knowledge recognition and relevance based on transfer learning and text enhancement
- Redis
- Understand the evolution of redis architecture in one article
- The database uses PSQL and JDBC to connect remotely and disconnect automatically from time to time
- Disk troubleshooting of kubernetes node
- Is it safe for Guosen Securities to open a mobile account? Is Zhongshan securities reliable
- 如何做好企业系统漏洞评估
猜你喜欢

Lecture 4: Longest ascending substring

User question understanding and answer content organization for epidemic disease Science Popularization

Understand the evolution of redis architecture in one article

Finally, someone finished all the dynamic planning, linked list, binary tree and string required for the interview

FPGA时序约束分享04_output delay 约束

See "sense of security" in uncertainty Volvo asked in 2022

谷歌团队推出新Transformer,优化全景分割方案|CVPR 2022

The mobile terminal uses the list component of vantui. When multiple tab items are switched back and forth, the list is loaded many times, resulting in the failure of normal display of data

电子制造行业的数字化转型突破点在哪?精益制造是关键

CPU、GPU、NPU的区别
随机推荐
Timestamp of AAC, h264, etc
CPU、GPU、NPU的区别
Web页面table表格,实现快速筛选
Is there a regular and safe account opening platform for gold speculation
网络设备硬核技术内幕 路由器篇 9 CISCO ASR9900拆解 (二)
Do you really understand CMS garbage collector?
[Yunxiang book club issue 13] packaging format of video files
网络设备硬核技术内幕 路由器篇 17 DPDK及其前传(二)
What if win11 wallpaper turns black? The solution of win11 wallpaper blackening
仅做两项修改,苹果就让StyleGANv2获得了3D生成能力
网络设备硬核技术内幕 路由器篇 5 汤普金森漫游网络世界(上)
视觉系统设计实例(halcon-winform)-9.文字显示
DXGI acquisition process
SkyWalking分布式系统应用程序性能监控工具-中
Graphic SQL of giant image
HDU3117 Fibonacci Numbers【数学】
Regular expressions: mailbox matching
Nefu117 number of prime numbers [prime number theorem]
NEFU119 组合素数【算术基本定理】
Stock trading 4
