RX Message Registers

RX Message Registers

A 4-message-deep FIFO stores the incoming messages. Status flags indicate how many messages are stored. Additional flags determine from which acceptance filter the actual message is coming from.

Figure 5-2. RX Message Routing

uP Bus

 

0

1

2

3

 

 

 

 

 

 

 

 

 

 

RxMessage

RxMessage

RxMessage

RxMessage

 

 

 

 

 

 

 

 

 

 

 

 

To read received messages:

1.Wait for rx_msg interrupt.

2.MessageReadLoop:

MESSAGE FILTERS

CAN Module

CAN BUS

read message

acknowledge ‘ message read’ by writing a ‘ 1’ to MsgAv register read MsgAv; reading a ‘ 1’ means a new message is available IF MsgAv=1 THEN jump to MessageReadLoop

3.Acknowledge rx_msg interrupt by writing a ‘ 1’ to this register location.

66

Page 74
Image 74
Lantronix DSTni-EX manual RX Message Registers, 2. RX Message Routing