当前位置:网站首页>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 !
边栏推荐
- On Calc optimization of calcite
- Riotboard development board series notes (4) -- using Vpu hardware decoding
- Is redis'module'not an internal or external command?
- Picgo configuring Alibaba cloud OSS
- Inheritance (prototype)
- JS construction linked list
- DOM node type
- Routing policy interferes with routing
- Common Oracle commands
- Solve the error: could not find 'xxxtest‘
猜你喜欢

List title of force buckle summary

Experiment 4 CTF practice

Dc-2-range practice

【C】 Advanced knowledge of file operation

Tp5.1 login configuration method of whether to login public functions (complete login case)

Do you know about real-time 3D rendering? Real time rendering software and application scenarios are coming

Define macros in makefile and pass them to source code

JS written test questions -- random numbers, array de duplication

C: wechat chat software instance (wpf+websocket+webapi+entityframework)

Pypi counts the number of Downloads
随机推荐
Map set learning
Domestic edge computing organization and product research
Win10 -- open the hosts file as an administrator
Pagoda workman WSS reverse proxy socket legal domain name applet chat remove port
Three ways to solve your performance management problems
Learning record 10
JS foundation -- task queue and event loop
6.0 cancellation of member registration verification code
DOM node type
hello csdn
Experiment 4 CTF practice
Wechat sports field reservation of the finished works of the applet graduation project (7) mid-term inspection report
Concurrent programming day01
Tp5.0 background admin access
ICO objects in classification
Clothing ERP | ten advantages of clothing ERP for enterprises
Eslint error
Physical experiment simulation
Backtracking to solve subset problem
"Introduction to interface testing" punch in day06: interface testing platform: are tools and frameworks incompatible?