![Freescale Semiconductor MPC5604B Скачать руководство пользователя страница 122](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604122.webp)
And the timer interrupt is at left; it transmits the
counter ‘myData’ and increments it. LEDs are altered to
alert the user.
The transmissions will be made with an ID equal to 666
and receptions will be expected from an ID of 555.
8.1.
Initialisation
There are six major steps to initialising the FlexCAN module:
1.
Initializing the MCR to meet the specifications & needs,
2.
Initialize the CTRL to meet timing parameter specification and set arbitration,
3.
Initialise the Message Buffers / FIFO (SRAM has to be cleared), set their control and
status words
4.
Initialise ID filtering register (Individual Mask registers or the global mask registers
depending on MCR)
5.
Configure interrupts and their masks
6.
Negate the HALT bit in the MCR
Here’s this program’s FlexCAN initialisation procedure, where global ID filters are used (for
standard ID), no FIFO, only 8 MBs are ready of which only two are used.
8.2.
Transmission
For starting the transmission process, prepare a message buffer by setting it at TX INACTIVE
mode (1000), this is done in the initialization code above. And then set as needed different fields
of the message buffer (IDE, DATA, LENGTH, RTR, ID etc.) but not the CODE. Setting the code to
1100 activates the MB.
Содержание MPC5604B
Страница 1: ...LAAS CNRS Quick Start to MPC5604B Embedded Development Sahin Serdar 21 06 2013...
Страница 31: ...Figure 33 INTC SW HW mode comparison Freescale Tutorial...
Страница 87: ......
Страница 132: ......
Страница 133: ...127 Appendix 2 Pad Configurations...
Страница 134: ......
Страница 135: ......
Страница 136: ......
Страница 137: ......
Страница 138: ......
Страница 139: ......
Страница 140: ......
Страница 141: ...Appendix 3 Peripheral input pin selection...
Страница 142: ......
Страница 143: ...137 Appendix 4 Interrupt Vector Table...
Страница 144: ......
Страница 145: ......
Страница 146: ......
Страница 147: ......
Страница 148: ...Appendix 5 I C Baud Rate Prescaler Values...
Страница 149: ......
Страница 150: ......