Skip to content

code generate prescale, segment1, segment2 for config CAN in STM32. You just only change value at variable clock and bitrate on this file.

Notifications You must be signed in to change notification settings

duclinhfetel/CAN_Calc_Bit_Timing_STM32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

CAN Calc Bit Timing STM32

  • Code generate prescale, segment1, segment2 for config CAN in STM32.
  • You just only change value at variable clock and bitrate on this file.
  • Formula :
    • prescaler*(Seg1 + Seg2 + 1) = Clock/bitrate
    • sample_point = (Seg1 + Sync_Seg)/(Seg1 + Seg2 + Sync_Seg)

About

code generate prescale, segment1, segment2 for config CAN in STM32. You just only change value at variable clock and bitrate on this file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages