RX Message Registers
A
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