当前位置:网站首页>STM32F103 can learning record
STM32F103 can learning record
2022-07-03 09:07:00 【Fat muscle duality】
stm32f103 CAN Learning record
CAN send data
Data writing Mailbox 0~3 => Send controller => CAN Bus .
Standard library function sending process : Judge which of the three mailboxes is empty ,CAN1->TSR Medium TME0,TME1,TIM2, Configure sending after judgment .
mailbox 0~3 Send priority :CAN Protocol frame ID or FIFO Determine mailbox priority , CAN_MCR->TXFP Select priority mode .
CAN receive data
CAN Bus => Filter => Mailbox 0~3 (FIFO) => Program read
stm32f103 Of CAN Yes 2 individual FIFO,14 individual Filter,Filter Configurable to send data to FIFO0 or FIFO1, then FIFO0 or FIFO1 Generate interrupt events . The data has to go through Filter To get to FIFO.
CAN Protocol frame ID
A standard format :11 position 0x7FF
Extended format :29 position 0x1FFFFFFF
CAN Control will read while sending data CAN Level state of the bus , Judge whether the transmission is correct by comparing the transmission level with the reception level , And determine the priority of the protocol frame .
Priority on the bus
analogy :
level 1 It is pulled up by resistance , level 0 It's through NPN From the triode ,0 Will overwrite 1.
Output 0 Time conduction NPN, Output 1 Turn off NPN.
When 2 individual CAN The controller sends 1, Another hair 0 when ,0 Will overwrite 1.
CAN The controller compares the output level with the received level to judge the priority and judge the bus fault .
amount to stm32 Pin OD Output .
边栏推荐
- Convert video to GIF
- Parameters of convolutional neural network
- Education informatization has stepped into 2.0. How can jnpf help teachers reduce their burden and improve efficiency?
- 20220630学习打卡
- Deeply understand the underlying data structure of MySQL index
- Pic16f648a-e/ss PIC16 8-bit microcontroller, 7KB (4kx14)
- How to place the parameters of the controller in the view after encountering the input textarea tag in the TP framework
- With low code prospect, jnpf is flexible and easy to use, and uses intelligence to define a new office mode
- I made mistakes that junior programmers all over the world would make, and I also made mistakes that I shouldn't have made
- Tree DP acwing 285 A dance without a boss
猜你喜欢
精彩回顾|I/O Extended 2022 活动干货分享
我们有个共同的名字,XX工
Markdown learning
I made mistakes that junior programmers all over the world would make, and I also made mistakes that I shouldn't have made
一个优秀速开发框架是什么样的?
Find the combination number acwing 885 Find the combination number I
【点云处理之论文狂读经典版13】—— Adaptive Graph Convolutional Neural Networks
22-06-27 Xian redis (01) commands for installing five common data types: redis and redis
树形DP AcWing 285. 没有上司的舞会
Arbre DP acwing 285. Un bal sans patron.
随机推荐
求组合数 AcWing 885. 求组合数 I
LeetCode 535. TinyURL 的加密与解密
Solution of 300ms delay of mobile phone
LeetCode 1089. 复写零
Baidu editor ueeditor changes style
Gif remove blank frame frame number adjustment
TP5 order multi condition sort
20220630学习打卡
22-06-28 Xi'an redis (02) persistence mechanism, entry, transaction control, master-slave replication mechanism
Binary tree sorting (C language, char type)
樹形DP AcWing 285. 沒有上司的舞會
Sword finger offer II 091 Paint the house
Find the combination number acwing 886 Find the combination number II
LeetCode 513. Find the value in the lower left corner of the tree
<, < <,>, > > Introduction in shell
Save the drama shortage, programmers' favorite high-score American drama TOP10
Try to reprint an article about CSDN reprint
Concurrent programming (III) detailed explanation of synchronized keyword
【点云处理之论文狂读经典版12】—— FoldingNet: Point Cloud Auto-encoder via Deep Grid Deformation
Noip 2002 popularity group selection number