![Freescale Semiconductor MPC5604B Quick Start Manual Download Page 123](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604123.webp)
Every activated MB participates in an arbitration process where the highest priority message
will be selected, depending on the user’s configuration. And eventually once the message is
transmitted the CODE and TIME STAMP fields are updated and a flag is raised.
Here is this program’s code for transmission:
8.3.
Reception
For receptions with MBs, you need to write the put a MB in to RX INACTIVE mode and set its ID,
then you’ll need to put it in RX EMPTY mode and wait for a reception. The most accurate way to
detect a reception is to fait for the MB’s individual flag (either as an interruption or a simple
flag). And then it can be read by first accessing the Control and Status word (for activating the
internal lock), then reading the ID and the Data, and then making a dummy read on the Free
Running Timer for releasing the internal lock.
8.4.
Interrupt Handling
There are 69 interrupt sources in this module (every Message error flags (Bus Off,
Error, Tx warning, Rx warning) but only 8 interrupt handlers. There is one handler for the Error
Interrupt. There is another handler for Bus Off, Tx Warning and Rx Warning.
And for message buffers: MBs 0 to 3 have one handler, similarly for MBs 4 to 7, MBs 8 to 11 and
MBs 12 to 15. And then MBs 16 to 31 and MBs 32 to 63 each have one interrupt vector.
In these handlers with multiple sources, the user will need to check for particular cases.
Summary of Contents for MPC5604B
Page 1: ...LAAS CNRS Quick Start to MPC5604B Embedded Development Sahin Serdar 21 06 2013...
Page 31: ...Figure 33 INTC SW HW mode comparison Freescale Tutorial...
Page 87: ......
Page 132: ......
Page 133: ...127 Appendix 2 Pad Configurations...
Page 134: ......
Page 135: ......
Page 136: ......
Page 137: ......
Page 138: ......
Page 139: ......
Page 140: ......
Page 141: ...Appendix 3 Peripheral input pin selection...
Page 142: ......
Page 143: ...137 Appendix 4 Interrupt Vector Table...
Page 144: ......
Page 145: ......
Page 146: ......
Page 147: ......
Page 148: ...Appendix 5 I C Baud Rate Prescaler Values...
Page 149: ......
Page 150: ......