29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RM0008<br />

Controller area network (bxCAN)<br />

Note:<br />

Management<br />

●<br />

Maskable interrupts<br />

● Software-efficient mailbox mapping at a unique address space<br />

Dual CAN (connectivity line only)<br />

● CAN1: Master bxCAN for managing the communication between a Slave bxCAN <strong>and</strong><br />

the 512-byte SRAM memory<br />

● CAN2: Slave bxCAN, with no direct access to the SRAM memory.<br />

● The two bxCAN cells share the 512-byte SRAM memory (see Figure 193 on page 545)<br />

In medium-density <strong>and</strong> high-density devices the USB <strong>and</strong> CAN share a dedicated 512-byte<br />

SRAM memory for data transmission <strong>and</strong> reception, <strong>and</strong> so they cannot be used<br />

concurrently (the shared SRAM is accessed through CAN <strong>and</strong> USB exclusively). The USB<br />

<strong>and</strong> CAN can be used in the same application but not at the same time.<br />

22.3 bxCAN general description<br />

In today’s CAN applications, the number of nodes in a network is increasing <strong>and</strong> often<br />

several networks are linked together via gateways. Typically the number of messages in the<br />

system (<strong>and</strong> thus to be h<strong>and</strong>led by each node) has significantly increased. In addition to the<br />

application messages, Network Management <strong>and</strong> Diagnostic messages have been<br />

introduced.<br />

● An enhanced filtering mechanism is required to h<strong>and</strong>le each type of message.<br />

Furthermore, application tasks require more CPU time, therefore real-time constraints<br />

caused by message reception have to be reduced.<br />

● A receive FIFO scheme allows the CPU to be dedicated to application tasks for a long<br />

time period without losing messages.<br />

The st<strong>and</strong>ard HLP (Higher Layer Protocol) based on st<strong>and</strong>ard CAN drivers requires an<br />

efficient interface to the CAN controller.<br />

Figure 192. CAN network topology<br />

CAN node 1<br />

MCU<br />

Application<br />

CAN<br />

Controller<br />

CAN node 2<br />

CAN node n<br />

CAN<br />

Rx<br />

CAN<br />

Tx<br />

CAN<br />

Transceiver<br />

CAN<br />

High<br />

CAN<br />

Low<br />

CAN Bus<br />

Doc ID 13902 Rev 9 543/995

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!