当前位置:网站首页>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 !
边栏推荐
- File file name change
- Selenium framework operation steelth.min.js file hides browser fingerprint features
- Keil compile download error: no algorithm found for: 08000000h - 08001233h solution
- Request and response
- SQL recursive follow-up
- Daily three questions 7.15
- On Calc optimization of calcite
- Is redis'module'not an internal or external command?
- Eslint error
- BGP introduction
猜你喜欢

Simulation Implementation of string function (Part 1)

Use unicloud cloud function to decode wechat motion steps in applet

Riotboard development board series notes (4) -- using Vpu hardware decoding

Dc-2-range practice

ICO objects in classification

【C】 Advanced knowledge of file operation

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

@Retryable @backoff @recover retry the use of annotations

JS foundation -- math

Wechat sports field reservation of the finished works of the applet graduation project (7) mid-term inspection report
随机推荐
Go common standard library -time
Beginners must see the markdown User Guide
TS uses a third-party library, and there is no type declaration file error handling
Mp4 package analysis
Daily three questions 7.16
List.stream common operations
Backtracking to solve combinatorial problems
Arduino + si5351 square wave generator
6. Object storage
Classic network learning RESNET code implementation
Resolve the error: org.apache.ibatis.binding.bindingexception
Three ways to solve your performance management problems
Dc-2-range practice
If there is a segment in the encryption field, are you "bronze" or "King"?
Dynamic programming -- Digital DP
On Calc optimization of calcite
File file name change
Request and response
Preliminary foundation JVM
The latest interview questions and analysis of software testing in 2022