当前位置:网站首页>Can bus baud rate setting of stm32cubemx
Can bus baud rate setting of stm32cubemx
2022-07-25 02:59:00 【ASWaterbenben】
Doing in recently CAN Related issues , The transmission rate is from 125Kbps To 1Mbps Unequal , Due to the use STM32CubeMX As a code generation platform , So the calculation CAN Baud rate needs to be calculated by yourself , But I can't remember it again , Simply calculate it directly once and write it down !
CAN The baud rate of depends on the clock tree APB1 Clock The frequency of , The main parameters are :
- The prescaled coefficients
- Time slice 1
- Time slice 2
- SWJ
following CAN The parameter is APB1 Clock by 36MHz Calculated :
| Baud rate bps | The prescaled coefficients | Time slice 1 | Time slice 2 | SWJ |
|---|---|---|---|---|
| 100K | 60 | 3 | 2 | 1 |
| 125K | 48 | 3 | 2 | 1 |
| 200K | 30 | 3 | 2 | 1 |
| 250K | 24 | 3 | 2 | 1 |
| 400K | 10 | 5 | 3 | 1 |
| 500K | 12 | 3 | 2 | 1 |
| 800K | 5 | 5 | 3 | 1 |
| 1M | 6 | 3 | 2 | 1 |
Encounter the contents in the table if STM32CubeMX If it is not allowed, set it casually , Generate the code in CAN Can be modified in the initialization function of !
边栏推荐
- How to take the mold for the picture of 1.54 inch TFT st7789 LCD screen
- How to switch terminators in PostgreSQL?
- Interview question -- event cycle
- C: wechat chat software instance (wpf+websocket+webapi+entityframework)
- [stm32f130rct6] idea and code of ultrasonic ranging module
- JS written test question -- promise, setTimeout, task queue comprehensive question
- Define macros in makefile and pass them to source code
- Selenium framework operation steelth.min.js file hides browser fingerprint features
- JS construct binary tree
- [pyGame practice] nostalgic classic - do you remember the name of this chess game for children? (must collect)
猜你喜欢

Mark down learning

Simulation Implementation of string function (Part 1)

Arduino IDE for raspberry PI Pico development firmware localization installation tutorial

Selenium framework operation steelth.min.js file hides browser fingerprint features

Publish the project online and don't want to open a port

Experiment 4 CTF practice

Domestic edge computing organization and product research

JS foundation -- hijacking of this keyword
![[jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality](/img/12/1763571a99e6ef15fb7f9512c54e9b.png)
[jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality

Riotboard development board series notes (VIII) -- building desktop system
随机推荐
R language one page and many pictures
"Introduction to interface testing" punch in to learn day05: how can a testing framework support restful interfaces?
Classic network learning RESNET code implementation
[Kali's sshd service is enabled]
Backtracking to solve combinatorial problems
Daily three questions 7.16
Go multiplexing
Jenkins plug-in development -- plug-in expansion
Learning record 10
Win10 -- open the hosts file as an administrator
Ctfshow misc introduction
Selenium framework operation steelth.min.js file hides browser fingerprint features
[jailhouse article] certify the uncertified rewards assessment of virtualization for mixed criticality
Publish the project online and don't want to open a port
Backtracking to solve subset problem
【C】 Advanced knowledge of file operation
JS foundation -- data
hello csdn
Learning record XIII
Conceptual distinction between Po, Bo, VO, dto and POJO