background image

IMPORTANT NOTICE

The information given in this document shall in no

event be regarded as a guarantee of conditions or

characteristics (“Beschaffenheitsgarantie”) .
With respect to any examples, hints or any typical

values stated herein and/or any information

regarding the application of the product, Infineon

Technologies hereby disclaims any and all

warranties and liabilities of any kind, including

without limitation warranties of non-infringement

of intellectual property rights of any third party.
In addition, any information given in this

document is subject to customer’s compliance

with its obligations stated in this document and

any applicable legal requirements, norms and

standards concerning customer’s products and

any use of the product of Infineon Technologies in

customer’s applications.
The data contained in this document is exclusively

intended for technically trained staff. It is the

responsibility

of

customer’s

technical

departments to evaluate the suitability of the

product for the intended application and the

completeness of the product information given in

this document with respect to such application.

For further information on the product,

technology, delivery terms and conditions and

prices please contact your nearest Infineon

Technologies office (

www.infineon.com

).

WARNINGS

Due to technical requirements products may

contain dangerous substances. For information

on the types in question please contact your

nearest Infineon Technologies office.
Except as otherwise explicitly approved by

Infineon Technologies in a written document

signed by authorized representatives of Infineon

Technologies, Infineon Technologies’ products

may not be used in any applications where a

failure of the product or any consequences of the

use thereof can reasonably be expected to result

in personal injury.

Edition 2019-10

Published by

Infineon Technologies AG

81726 Munich, Germany

© 2019 Infineon Technologies AG.

All Rights Reserved.

Do you have a question about this

document?

Email: 

[email protected]

Document reference

ASCLIN_LIN_Master_1

Trademarks

All referenced product or service names and trademarks are the property of their respective owners.

Содержание ASCLIN LIN Master 1

Страница 1: ...AURIX TC2xx Microcontroller Training V1 0 0 ASCLIN_LIN_Master_1 LIN master communication via ASCLIN module Please read the Important Notice and Warnings at the end of this document ...

Страница 2: ...gured as LIN master to send Hello World The string Hello World is sent via an ASCLIN module configured as LIN master The signal can be visualized using an oscilloscope 2 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 3: ...15 slaves which are communicating together The LIN protocol configured as a master supports three transactions TxH Transmission of Header TxR Transmission of Message RxR Reception of Message A LIN frame consists of two parts The header which is always sent by the LIN Master The response which is sent either by the LIN Master or the addressed LIN Slave 3 2019 10 17 Copyright Infineon Technologies A...

Страница 4: ...xample has been developed for the board KIT_AURIX_TC297_TFT_BC Step The port pin P15 5 LIN TX RX should be connected to an oscilloscope probe Ground TX RX 4 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 5: ...unction IfxAsclin_Lin_initModuleConfig 2 The LIN module is configured to operate as master by setting the linMode parameter 3 The desired baud rate is selected with the parameter brg baudrate 4 The pin configuration is set using the predefined structure IfxAsclin_Lin_Pins 5 The ASCLIN module is initialized with IfxAsclin_Lin_initModule All functions required for the configuration of the ASCLIN mod...

Страница 6: ...sponse after the header 2 The frame Hello World is defined 3 The correct header is sent with the function IfxAsclin_Lin_sendHeader 4 The transmission of header is checked by using the parameter txHeaderEnd of the structure acknowledgmentFlags 5 The frame is sent with the function IfxAsclin_Lin_sendResponse The functions above are provided by the iLLD header IfxAsclin_Lin h 6 2019 10 17 Copyright I...

Страница 7: ...ce perform the following steps Connect the oscilloscope probe to the TX RX pin P15 5 Reset and run the program by pressing the PORST push button Check the oscilloscope for the LIN signal 7 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 8: ...Run and Test In the signal both the header and the frame Hello World can be observed Header Frame Hello World 8 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 9: ... www infineon com aurix expert training AURIX Development Studio is available online https www infineon com aurixdevelopmentstudio Use the Import function to get access to more code examples For questions and support use the AURIX Forum https www infineonforums com forums 13 Aurix Forum 9 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 10: ...f the product for the intended application and the completeness of the product information given in this document with respect to such application For further information on the product technology delivery terms and conditions and prices please contact your nearest Infineon Technologies office www infineon com WARNINGS Due to technical requirements products may contain dangerous substances For inf...

Отзывы: