Example MPC5744P LIN Master Slave test GHS614

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Example MPC5744P LIN Master Slave test GHS614

Example MPC5744P LIN Master Slave test GHS614

********************************************************************************

* Detailed Description:

*

* LINFlexD_1 configured as Master

*   - sends Header

*   - either transmits a data to LIN Slave or receives data from a LIN Slave

*   - no interrupt is used, just SW pooling

*

* LINFlexD_0 as Slave

*   - receives header from a LIN Master

*   - either receives data from a LIN Master or transmits a data to Master

*   - filter is enabled

*   - TX interrupt is used to prepare data to send and

*   - RX interrupt to read received data

*

* EVB connection:

*

*   Switches on Motherboard:

*   P6.1 to P8.1  ... SW1 to PA0

*   P6.2 to P8.2  ... SW2 to PA1

*   P6.3 to P8.3  ... SW3 to PA2

*   P6.4 to P8.4  ... SW4 to PA3

*

*   Unconnect LINFlexD_0 from UART transceiver

*   J14 SCI_RX open

*   J13 SCI_TX open

*

*   As only single LIN transceiver is available LINFlex modules are connected

*   together before this transceiver in the way TX pins together and RX pins together.

*   TX pins must be configured as open drain and use a pullup resistor.

*

*   P11.15 to P12.8    TX pins

*   P11.16 to P12.7    RX pins

*

*   Connect LINFlexD_1 to LIN transceiver on Motherboard

*   J17 - LIN_TX ON

*   J16 - LIN_RX ON

*   J15 - LIN_EN ON

*   P3 1-2 ON ... VSUP to 12V

**

*   See LIN signal on P3.3 or J4.4.

*

* ------------------------------------------------------------------------------

* Test HW:  MPC5744P

* Maskset:  1N65H

* Target :  RAM, internal_FLASH

* Fsys:     200 MHz PLL with 40 MHz crystal reference

* Terminal: None

********************************************************************************

Revision History:

1.0     Feb-22-2016     PetrS          Initial Version of LIN example

*******************************************************************************/

Original Attachment has been moved to: Example-MPC5744P-LINFlex-LIN-Master-Slave-test-v1_0-GHS614.zip

Labels (1)
Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1128126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5744P%20LIN%20Master%20Slave%20test%20GHS614%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E********************************************************************************%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20Detailed%20Description%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20LINFlexD_1%20configured%20as%20Master%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20-%20sends%20Header%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20-%20either%20transmits%20a%20data%20to%20LIN%20Slave%20or%20receives%20data%20from%20a%20LIN%20Slave%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20-%20no%20interrupt%20is%20used%2C%20just%20SW%20pooling%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20LINFlexD_0%20as%20Slave%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20-%20receives%20header%20from%20a%20LIN%20Master%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20-%20either%20receives%20data%20from%20a%20LIN%20Master%20or%20transmits%20a%20data%20to%20Master%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20-%20filter%20is%20enabled%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20-%20TX%20interrupt%20is%20used%20to%20prepare%20data%20to%20send%20and%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20-%20RX%20interrupt%20to%20read%20received%20data%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20EVB%20connection%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20Switches%20on%20Motherboard%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20P6.1%20to%20P8.1%26nbsp%3B%20...%20SW1%20to%20PA0%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20P6.2%20to%20P8.2%26nbsp%3B%20...%20SW2%20to%20PA1%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20P6.3%20to%20P8.3%26nbsp%3B%20...%20SW3%20to%20PA2%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20P6.4%20to%20P8.4%26nbsp%3B%20...%20SW4%20to%20PA3%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20Unconnect%20LINFlexD_0%20from%20UART%20transceiver%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20J14%20SCI_RX%20open%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20J13%20SCI_TX%20open%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20As%20only%20single%20LIN%20transceiver%20is%20available%20LINFlex%20modules%20are%20connected%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20together%20before%20this%20transceiver%20in%20the%20way%20TX%20pins%20together%20and%20RX%20pins%20together.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20TX%20pins%20must%20be%20configured%20as%20open%20drain%20and%20use%20a%20pullup%20resistor.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20P11.15%20to%20P12.8%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20pins%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20P11.16%20to%20P12.7%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20pins%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20Connect%20LINFlexD_1%20to%20LIN%20transceiver%20on%20Motherboard%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20J17%20-%20LIN_TX%20ON%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20J16%20-%20LIN_RX%20ON%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20J15%20-%20LIN_EN%20ON%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20P3%201-2%20ON%20...%20VSUP%20to%2012V%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E**%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%26nbsp%3B%26nbsp%3B%20See%20LIN%20signal%20on%20P3.3%20or%20J4.4.%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20------------------------------------------------------------------------------%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20Test%20HW%3A%26nbsp%3B%20MPC5744P%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20Maskset%3A%26nbsp%3B%201N65H%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20Target%20%3A%26nbsp%3B%20RAM%2C%20internal_FLASH%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20Fsys%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20200%20MHz%20PLL%20with%2040%20MHz%20crystal%20reference%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*%20Terminal%3A%20None%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E********************************************************************************%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3ERevision%20History%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E1.0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Feb-22-2016%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20PetrS%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Initial%20Version%20of%20LIN%20example%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%22%3E*******************************************************************************%2F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EOriginal%20Attachment%20has%20been%20moved%20to%3A%20%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fdocs%2FDOC-339878%22%20target%3D%22_blank%22%3EExample-MPC5744P-LINFlex-LIN-Master-Slave-test-v1_0-GHS614.zip%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1128126%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎02-23-2016 08:02 AM
Updated by: