![Freescale Semiconductor MPC5604B Скачать руководство пользователя страница 121](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604121.webp)
Overflow, BUF6I is FIFO Warning (FIFO almost full with 5 over 6 buffers being occupied). BUF5I:
Frames available in FIFO (frames ready to be read).
8.
FlexCAN usage explained with an example
In this section, through an example program, we will explain how to initialise and configure
FlexCAN correctly. This program will be used to test basic functionalities of this module by
communicating with a CAN Analyser; it starts with configuring the transceiver (see section 4)
and configuring the module and its buffers. It also configures a timer to raise an interrupt every
200ms. Then the main loop implements a state machine with two states:
State 0: Timer interrupt enabled, if Button 1 is pressed disable timer interrupt and go to
the state 1.
State 1: If the receive buffer flag is raised, receive message and print 4 LSB to the LEDs. If
butter 0 is pressed, enable timer interrupts, reset the counter and go to the state 0.
The timer interrupt, transmits the value of the counter and increments the counter.
Here’s the global variables and the main code:
Содержание 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: ......