background image

Introduction

The Asynchronous/Synchronous Interface (ASCLIN) module provides 
asynchronous serial communication with external devices, using data-in and 
data-out signals only. 

A LIN bus consists of one master and typically up to 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 AG 2019. All rights reserved.

Содержание 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...

Отзывы: