Infineon UART VCOM 1 Скачать руководство пользователя страница 2

Scope of work

UART communication via ASCLIN is used to send "Hello World!" from
the device to the computer.

The string "Hello World

!“ is sent from the device to the PC via UART. The

string is then visualized in a serial monitor.

2

2019-10-17

Copyright © Infineon Technologies AG 2019. All rights reserved.

Содержание UART VCOM 1

Страница 1: ...AURIX TC2xx Microcontroller Training V1 0 0 UART_VCOM_1 UART communication between PC and device Please read the Important Notice and Warnings at the end of this document ...

Страница 2: ...s used to send Hello World from the device to the computer The string Hello World is sent from the device to the PC via UART The string is then visualized in a serial monitor 2 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 3: ...nables asynchronous synchronous serial communication with external devices For this training asynchronous reception transmission UART is used for the communication between a PC and an AURIX device 3 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 4: ...This code example has been developed for the board KIT_AURIX_TC297_TFT_BC Step The board should be connected to the PC through the USB port 1 1 4 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 5: ...vice provider is responsible for handling the interrupt which can be any of the available CPUs or the DMA pins structure to set which GPIO port pins are used for the communication txBuffer txBufferSize to configure the buffer that will hold the outgoing data The function IfxAsclin_Asc_initModuleConfig fills the configuration structure with default values and IfxAsclin_Asc_initModule initializes th...

Страница 6: ...plemented inside the function send_UART_message which is called once after initialization of the ASCLIN module This function calls IfxAsclin_Asc_write which is provided by the iLLD header IfxAsclin_Asc h 6 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 7: ...ud rate 19200 Data bits 8 Parity None Stop bits 1 After code compilation and flashing the device perform the following steps The board must be connected to PC via the USB cable Open a serial monitor with the above configuration and connect The board has to be reset using the PORST button The string can be observed on the serial monitor 7 2019 10 17 Copyright Infineon Technologies AG 2019 All right...

Страница 8: ... 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 8 2019 10 17 Copyright Infineon Technologies AG 2019 All rights reserved ...

Страница 9: ...ty 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...

Отзывы: