![NXP Semiconductors MPC5605BK Скачать руководство пользователя страница 482](http://html.mh-extra.com/html/nxp-semiconductors/mpc5605bk/mpc5605bk_reference-manual_1721852482.webp)
Chapter 24 LIN Controller (LINFlexD)
MPC5606BK Microcontroller Reference Manual, Rev. 2
482
Freescale Semiconductor
If LINCR1[LASE] is set, LFDIV is automatically updated at the end of each LIN sync field.
Three registers are used internally to manage the auto-update of the LINFlexD divider (LFDIV):
•
LFDIV_NOM (nominal value written by software at LINIBRR and LINFBRR addresses)
•
LFDIV_MEAS (results of the Field Synch measurement)
•
LFDIV (used to generate the local baud rate)
On transition to idle, break or break delimiter state due to any error or on reception of a complete frame,
hardware reloads LFDIV with LFDIV_NOM.
24.7.4.2
Deviation error on the sync field
The deviation error is checked by comparing the current baud rate (relative to the slave oscillator) with the
received LIN sync field (relative to the master oscillator). Two checks are performed in parallel.
The first check is based on a measurement between the first falling edge and the last falling edge of the
sync field:
•
If D1 > 14.84%, LHE is set.
•
If D1 < 14.06%, LHE is not set.
•
If 14.06% < D1 < 14.84%, LHE can be either set or reset depending on the dephasing between the
signal on LINFlexD_RX pin the f
ipg_clock_lin
clock.
The second check is based on a measurement of time between each falling edge of the sync field:
•
If D2 > 18.75%, LHE is set.
•
If D2 < 15.62%, LHE is not set.
•
If 15.62% < D2 < 18.75%, LHE can be either set or reset depending on the dephasing between the
signal on LINFlexD_RX pin the f
ipg_clock_lin
clock.
Note that the LINFlexD does not need to check if the next edge occurs slower than expected. This is
covered by the check for deviation error on the full synch byte.
24.8
Test modes
The LINFlexD controller includes two test modes, Loop Back mode and Self Test mode. They can be
selected by the LBKM and SFTM bits in the LINCR1 register. These bits must be configured while
LINFlexD is in Initialization mode. After one of the two test modes has been selected, LINFlexD must be
started in Normal mode.
24.8.1
Loop Back mode
LINFlexD can be put in Loop Back mode by setting LINCR1[LBKM]. In Loop Back mode, the LINFlexD
treats its own transmitted messages as received messages. This is illustrated in
Содержание MPC5605BK
Страница 2: ...This page is intentionally left blank...
Страница 20: ...MPC5606BK Microcontroller Reference Manual Rev 2 20 Freescale Semiconductor...
Страница 103: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 103 Clocks and power...
Страница 104: ...MPC5606BK Microcontroller Reference Manual Rev 2 104 Freescale Semiconductor This page is intentionally left blank...
Страница 243: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 243 Core platform modules...
Страница 244: ...MPC5606BK Microcontroller Reference Manual Rev 2 244 Freescale Semiconductor This page is intentionally left blank...
Страница 395: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 395 Communication modules...
Страница 396: ...MPC5606BK Microcontroller Reference Manual Rev 2 396 Freescale Semiconductor This page is intentionally left blank...
Страница 548: ...Chapter 24 LIN Controller LINFlexD MPC5606BK Microcontroller Reference Manual Rev 2 548 Freescale Semiconductor...
Страница 645: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 643 Timers...
Страница 646: ...MPC5606BK Microcontroller Reference Manual Rev 2 644 Freescale Semiconductor This page is intentionally left blank...
Страница 715: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 713 ADC system...
Страница 716: ...MPC5606BK Microcontroller Reference Manual Rev 2 714 Freescale Semiconductor This page is intentionally left blank...
Страница 787: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 787 Memory...
Страница 788: ...MPC5606BK Microcontroller Reference Manual Rev 2 788 Freescale Semiconductor This page is intentionally left blank...
Страница 893: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 893 Integrity...
Страница 894: ...MPC5606BK Microcontroller Reference Manual Rev 2 894 Freescale Semiconductor This page is intentionally left blank...
Страница 943: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 943 Debug...
Страница 944: ...MPC5606BK Microcontroller Reference Manual Rev 2 944 Freescale Semiconductor This page is intentionally left blank...