Difference between revisions of "STM32 CAN"

From Stm32World Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
<div class="res-img">
 
<div class="res-img">
 
[[File:Can loopback example clock.png|1200px]]
 
[[File:Can loopback example clock.png|1200px]]
 +
</div>
 +
 +
Notice the APB1 bus is running at 42 MHz.  The CAN peripherals are connected to this bus.
 +
 +
<div class="res-img">
 +
[[File:Can loopback example pinout.png|1200px]]
 
</div>
 
</div>
  

Revision as of 03:31, 22 December 2023

Introduction

Most STM32 MCUs are equipped with one or more CAN peripherals.

Loopback Example

CubeMX Config

The clock is configured to maximum speed using the external crystal:

Can loopback example clock.png

Notice the APB1 bus is running at 42 MHz. The CAN peripherals are connected to this bus.

Can loopback example pinout.png

Miscellaneous Links

To be added