![Freescale Semiconductor FlexRay MFR4310 Reference Manual Download Page 188](http://html1.mh-extra.com/html/freescale-semiconductor/flexray-mfr4310/flexray-mfr4310_reference-manual_2330597188.webp)
FlexRay Module (FLEXRAYV4)
MFR4310 Reference Manual, Rev. 2
188
Freescale Semiconductor
3.4.12.3
Sync Frame ID and Sync Frame Deviation Table Setup
The FlexRay module writes a copy of the internal synchronization frame ID and deviation tables into the
FRM if requested by the application. The application must provide the appropriate amount of FRM for the
tables. The memory layout of the tables is given in
. Each table occupies 120 16-bit entries.
While the protocol is in
POC:config
state, the application must program the offsets for the tables into the
Sync Frame Table Offset Register (SFTOR)
.
3.4.12.4
Sync Frame ID and Sync Frame Deviation Table Generation
The application controls the generation process of the Sync Frame ID and Sync Frame Deviation Tables
into the FRM using the
Sync Frame Table Configuration, Control, Status Register (SFTCCSR)
. A
summary of the copy modes is given in
.
The Sync Frame Table generation process is described in the following for the even cycle. The same
sequence applies to the odd cycle.
If the application has enabled the sync frame table generation by setting SFTCCSR.SIDEN to 1, the
FlexRay module starts the update of the even cycle related tables after the start of the NIT of the next even
cycle. The FlexRay module checks if the application has locked the tables by reading the SFTCCSR.ELKS
lock status bit. If this bit is set, the FlexRay module does not update the table in this cycle. If this bit is
cleared, the FlexRay module locks this table and starts the table update. To indicate that these tables are
currently updated and may contain inconsistent data, the FlexRay module clears the even table valid status
bit SFTCCSR.EVAL. After all table entries related to the even cycle have been transferred into the FRM,
the FlexRay module sets the even table valid bit SFTCCSR.EVAL and the Even Cycle Table Written
Interrupt Flag EVT_IF in the
Protocol Interrupt Flag Register 1 (PIFR1)
. If the interrupt enable flag
EVT_IE is set, an interrupt request is generated.
To read the generated tables, the application must lock the tables to prevent the FlexRay module from
updating these tables. The locking is initiated by writing a 1 to the even table lock trigger
SFTCCSR.ELKT. When the even table is not currently updated by the FlexRay module, the lock is granted
and the even table lock status bit SFTCCSR.ELKS is set. This indicates that the application has
successfully locked the even sync tables and the corresponding status information fields SFRA, SFRB in
Table 3-108. Sync Frame Table Generation Modes
SFTCCSR
Description
OPT
SDVEN
SIDEN
0
0
0
No Sync Frame Table copy
0
0
1
Sync Frame ID Tables are copied continuously
0
1
0
Reserved
0
1
1
Sync Frame ID Tables and Sync Frame Deviation Tables are copied continuously
1
0
0
No Sync Frame Table copy
1
0
1
Sync Frame ID Tables for next even-odd-cycle pair are copied
0
1
0
Reserved
1
1
1
Sync Frame ID Tables and Sync Frame Deviation Tables for next even-odd-cycle pair are
copied
Summary of Contents for FlexRay MFR4310
Page 2: ......
Page 3: ...MFR4310 Reference Manual MFR4310RM Rev 2 03 2008...
Page 6: ...MFR4310 Reference Manual Rev 2 6 Freescale Semiconductor...
Page 12: ...MFR4310 Reference Manual Rev 2 12 Freescale Semiconductor Section Number Title Page...
Page 24: ...MFR4310 Reference Manual Rev 2 24 Freescale Semiconductor Table Number Title Page...
Page 28: ...Introduction MFR4310 Reference Manual Rev 2 28 Freescale Semiconductor...
Page 58: ...Device Overview MFR4310 Reference Manual Rev 2 58 Freescale Semiconductor...
Page 234: ...Clocks and Reset Generator CRG MFR4310 Reference Manual Rev 2 234 Freescale Semiconductor...
Page 260: ...Package Information MFR4310 Reference Manual Rev 2 260 Freescale Semiconductor...
Page 267: ......