![Freescale Semiconductor FlexRay MFR4310 Скачать руководство пользователя страница 193](http://html1.mh-extra.com/html/freescale-semiconductor/flexray-mfr4310/flexray-mfr4310_reference-manual_2330597193.webp)
FlexRay Module (FLEXRAYV4)
MFR4310 Reference Manual, Rev. 2
Freescale Semiconductor
193
3.4.17
Timer Support
The FlexRay module provides two timers, which run on the FlexRay time base. Each timer generates a
maskable interrupt when it reaches a configured point in time. Timer T1 is an absolute timer. Timer T2 can
be configured to be an absolute or a relative timer
.
Both timers can be configured to be repetitive. In the
non-repetitive mode, timer stops if it expires. In repetitive mode, timer is restarted when it expires.
Both timers are active only when the protocol is in
POC:normal active
or
POC:normal passive
state. If
the protocol is not in one of these modes, the timers are stopped. The application must restart the timers
when the protocol has reached the
POC:normal active
or
POC:normal passive
state.
3.4.17.1
Absolute Timer T1
The absolute timer T1 has the protocol cycle count and the macrotick count as the time base. The timer 1
interrupt flag TI1_IF in the
Protocol Interrupt Flag Register 0 (PIFR0)
is set at the macrotick start event,
are fulfilled
Eqn. 3-24
Eqn. 3-25
If the timer 1 interrupt enable bit TI1_IE in the
Protocol Interrupt Enable Register 0 (PIER0)
is asserted,
an interrupt request is generated.
The status bit T1ST is set when the timer is triggered, and is cleared when the timer expires and is
non-repetitive. If the timer expires but is repetitive, the T1ST bit is not cleared and the timer is restarted
immediately. The T1ST is cleared when the timer is stopped.
3.4.17.2
Absolute / Relative Timer T2
The timer T2 can be configured to be an absolute or relative timer by setting the T2_CFG control bit in the
Timer Configuration and Control Register (TICCR)
. The status bit T2ST is set when the timer is triggered,
and is cleared when the timer expires and is non-repetitive. If the timer expires but is repetitive, the T2ST
bit is not cleared and the timer is restarted immediately. The T2ST is cleared when the timer is stopped.
3.4.17.2.1
Absolute Timer T2
If timer T2 is configured as an absolute timer, it has the same functionality timer T1 but the configuration
from
Timer 2 Configuration Register 0 (TI2CR0)
Timer 2 Configuration Register 1 (TI2CR1)
On expiration of timer T2, the interrupt flag TI2_IF in the
Protocol Interrupt Flag Register 0 (PIFR0)
is
set. If the timer 1 interrupt enable bit TI1_IE in the
Protocol Interrupt Enable Register 0 (PIER0)
is
asserted, an interrupt request is generated.
3.4.17.2.2
Relative Timer T2
If the timer T2 is configured as a relative timer, the interrupt flag TI2_IF in the
is set, when the programmed amount of macroticks MT[31:0], defined by
Configuration Register 0 (TI2CR0)
Timer 2 Configuration Register 1 (TI2CR1)
, has expired since the
trigger or restart of timer 2. The relative timer is implemented as a down counter and expires when it has
CYCCTR.CYCCNT & T1CYSR.T1_CYC_MSK == T1CYSR.T1_CYC_VAL & T1CYSR.T1_CYC_MSK
MTCTR.MTCT == TI1MTOR.T1_MTOFFSET
Содержание FlexRay MFR4310
Страница 1: ...FlexRay Communication freescale com Controllers MFR4310RM Rev 2 03 2008 MFR4310 Reference Manual...
Страница 2: ......
Страница 3: ...MFR4310 Reference Manual MFR4310RM Rev 2 03 2008...
Страница 6: ...MFR4310 Reference Manual Rev 2 6 Freescale Semiconductor...
Страница 12: ...MFR4310 Reference Manual Rev 2 12 Freescale Semiconductor Section Number Title Page...
Страница 24: ...MFR4310 Reference Manual Rev 2 24 Freescale Semiconductor Table Number Title Page...
Страница 28: ...Introduction MFR4310 Reference Manual Rev 2 28 Freescale Semiconductor...
Страница 58: ...Device Overview MFR4310 Reference Manual Rev 2 58 Freescale Semiconductor...
Страница 222: ...Dual Output Voltage Regulator VREG3V3V2 MFR4310 Reference Manual Rev 2 222 Freescale Semiconductor...
Страница 234: ...Clocks and Reset Generator CRG MFR4310 Reference Manual Rev 2 234 Freescale Semiconductor...
Страница 260: ...Package Information MFR4310 Reference Manual Rev 2 260 Freescale Semiconductor...
Страница 267: ......