MCAN module

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCAN module

794 次查看
ianbenton
Senior Contributor I

Having thoroughly read the LPC55xx user manual, Chapter 41, there seems to be two pieces of information conspicuous by their absence:

1. How does one send a CAN message?

2. How does one receive a CAN message?

From reading the information on Fifos it would seem that a received message is placed in the receive fifo, and it can be read from RAM, but what is not clear is how the fifo get/put registers are then updated.

Sending a message, appears to involve writing to the Fifo and then sending an "add request". Is that correct?

 

标签 (1)
0 项奖励
回复
1 回复

786 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Benton,

Regarding the CAN message buffer, pls refer to the section as following Fig in UM11424.pdf, there are TWO message buffer type, one is FIFO, another is buffer, for simplicity, pls refer to the buffer.

Firstly, you can put the CAN message RAM in any internal RAM location, the CAN->MRBA register defines the start address of the CAN message RAM.

For example the TX buffer, the CAN->TXBC specifies the TX buffer start address(not absolute address, just offset based on CAN->MBRA) and the buffer number. The CAN->TXESC register specifies the data length for each TX buffer.

 

 

xiangjun_rong_0-1621908316155.png

 

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复