Download Print this page
Infineon UART VCOM 1 Manual

Infineon UART VCOM 1 Manual

Uart communication between pc and device, aurix tc2xx microcontroller training

Advertisement

Quick Links

UART_VCOM_1
UART communication between PC and device
AURIX™ TC2xx Microcontroller Training
V1.0.0
Please read the Important Notice and Warnings at the end of this document

Advertisement

loading
Need help?

Need help?

Do you have a question about the UART VCOM 1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Infineon UART VCOM 1

  • Page 1 UART_VCOM_1 UART communication between PC and device AURIX™ TC2xx Microcontroller Training V1.0.0 Please read the Important Notice and Warnings at the end of this document...
  • Page 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. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 3 The Asynchronous/Synchronous Interface (ASCLIN) module enables 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. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 4: Hardware Setup

    Hardware setup 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). 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 5 The function IfxAsclin_Asc_initModuleConfig() fills the configuration structure with default values and IfxAsclin_Asc_initModule() initializes the module with the user configuration. All the above functions can be found in the iLLD header IfxAsclin_Asc.h. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 6 Sending the string “Hello World!” is implemented 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. 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 7: Run & Test

    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 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 8 More code examples can be found on the GIT repository: › https://github.com/Infineon/AURIX_code_examples › For additional trainings, visit our webpage: › https://www.infineon.com/aurix-expert-training › For questions and support, use the AURIX™ Forum: › https://www.infineonforums.com/forums/13-Aurix-Forum 2019-10-17 Copyright © Infineon Technologies AG 2019. All rights reserved.
  • Page 9 Infineon Technologies in in personal injury. customer’s applications. The data contained in this document is exclusively intended for technically trained staff.