S12XF Starter Kit, Rev. 1
Application Example 2—Low-Speed FlexRay Network
Freescale Semiconductor
6
— LEDs D23, D25, and D28 (FlexRay wake-up frames transmission)
— D24 and D26 toggle
7
Application Example 2—Low-Speed FlexRay Network
For this example you need two EVBs, because each acts as a FlexRay node, exchanging frames in a simple
network. One EVB must be programmed using the EVB9S12XF512E_Node1_LS.mcp project and the
other must be programmed with the EVB9S12XF512E_Node2LS.mcp code. Also, the FlexRay channels
must be properly interconnected between the EVBs.
The main functions performed in this example project are:
•
Real-time interrupt configured to 500 ms period and used as the base time for the task scheduler
•
SPI master operating at 500 kHz
•
System basis chip (SBC) initialized in debug mode
•
FlexRay module fully configured for frames transmission and reception at 1.25 Mbit/s. In Node1
the FlexRay events are interrupt driven; whereas, in Node2 there is a polling procedure for the
frames handling
•
LED indicators D22, D27, and d29 are sequentially turned on and activated
•
FlexRay activity and frames interchange are indicated by the toggling of LEDs D23, D25, and D28
at 1 s intervals; to ease visual perception, the LEDs are turned on each time the RTI is serviced and
turned off when a FlexRay function is performed
For Node1 the LED activation is:
— Slot 1 transmission, D23
— Slot 4 reception, D25
— Slot 62 reception, D28
For Node2 the LED activation is:
— Slot 1 reception, D23
— Slot 4 transmission, D25
— Slot 62 transmission, D28
•
IRQ detection when SW2 is pressed; interrupt service indicated by toggling D26.
•
Input capture IOC7 stimulated by SW3, interrupt serviced by the XGATE and indicated by
toggling D24.
8
Application Example 3—Full-Speed Stand Alone
Load the EVB9S12XF512E_StandAlone_FS.mcp project into the board. In this example project, the
EVB9S12XF512E is configured to operate as an isolated board. Its local communication modules and the
input/output capabilities are exercised to allow basic tests of the EVB hardware integrity and to verify the
code downloading procedure.
The main functions performed in this example project are:
•
Real-time interrupt configured to 75 ms period and used as the base time for the task scheduler