TRAVEO™ T2G code examples
Supported evaluation kits
KIT_T2G-B-H_EVK | |
KIT_T2G-B-H_LITE |
Getting Started
Example | Supported Kit | Description | |
---|---|---|---|
KIT_T2G-B-H_EVK | KIT_T2G-B-H_LITE | ||
✓ | ✓ | This is a minimal starter application template for Infineon MCU devices. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates blinking LED functionality implemented by FreeRTOS tasks on the XMC7000 MCU devices. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates a simple UART communication by printing a "Hello World" message on a terminal and blinking an LED using a timer resource. This code example is based on HAL (Hardware Abstraction Layer) libraries. For more details, see the README on GitHub. | |
✓ | ✓ | This empty application provides a multicore template for creating XMC7000 MCU applications. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates a firmware upgrade for the XMC7000 using the edge protect bootloader and DFU. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates how to transition XMC7000 MCU to the Active, Sleep, DeepSleep and Hibernate power states, and how to wake up and return to Active state. For more details, see the README on GitHub. | |
✓ | ✓ | This example is the out-of-the-box (OOB) demo project for the KIT_XMC72_EVK XMC7200 evaluation kit which includes - Hello world, PWM square-wave output, GPIO interrupt, SAR ADC basics, XMC™ MCU power modes, QSPI memory read/write, and CAN FD loopback code examples. For more details, see the README on GitHub. |
Peripherals
Example | Supported Kit | Description | |
---|---|---|---|
KIT_T2G-B-H_EVK | KIT_T2G-B-H_LITE | ||
✓ | ✓ | This example demonstrates use of the ADC (Analog to Digital Converter) HAL driver to perform voltage measurements in XMC7000 MCU. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates the generation of asymmetric PWM signals using two compare/capture registers available in the TCPWM block of the XMC7000 MCU devices. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates how to use controller area network flexible data-rate (CAN FD) in XMC7000 MCU devices. In this example, the CAN Node-1 sends a CAN FD or standard frame to CAN Node-2 on pressing the user button and vice versa. Both the CAN nodes log the received data over UART serial terminal. Each time a CAN frame is received, the user LED toggles. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates the use of the Flash HAL driver to perform code flash Read/Write/Erase basic operate and update sector data online. The running steps logs on a UART terminal emulator. For more details, see the README on GitHub. | |
✓ | ✓ | This code example encrypts and decrypts user input data using the AES algorithm using a 128-bit key. The encrypted and decrypted data are displayed on a UART terminal emulator. For more details, see the README on GitHub. | |
✓ | ✓ | This code example shows how to generate a 32-byte hash value or message digest for an arbitrary user input message with the SHA2 algorithm using the Cryptographic hardware block in the XMC7000 MCU. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates how to generate a one-time password (OTP) of eight characters in length with the true random number generation feature using the cryptographic hardware block in MCU. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates emulation of EEPROM behavior in flash memory of XMC7000 MCU using emeeprom middleware. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates implementation of a secure TCP client with XMC7000 MCU. In this example, a TCP client establishes a secure connection with a TCP server through an SSL handshake. Once the SSL handshake completes successfully, the TCP client turns ON or OFF the user LED based on the command received from the TCP server. For more details, see the README on GitHub. License Disclaimer: This code example makes use of the lwIP open-source TCP/IP stack. Creating a project from this template will cause lwIP to be downloaded on your computer. It is your responsibility to understand and accept the lwIP license. Creating a project from this template will cause Mbed TLS to be downloaded on your computer. It is your responsibility to understand and accept the Mbed TLS license and regional use restrictions (including abiding by all applicable export control laws). | |
✓ | ✓ | This code example demonstrates implementation of a secure TCP Server with XMC7000 MCU. In this example, the TCP server establishes a secure connection with a TCP client through SSL handshake. Once the SSL handshake completes successfully, the server allows the user to send LED ON/OFF command to the TCP client; the client responds by sending an acknowledgement message to the server. For more details, see the README on GitHub. License Disclaimer: This code example makes use of the lwIP open-source TCP/IP stack. Creating a project from this template will cause lwIP to be downloaded on your computer. It is your responsibility to understand and accept the lwIP license. Creating a project from this template will cause Mbed TLS to be downloaded on your computer. It is your responsibility to understand and accept the Mbed TLS license and regional use restrictions (including abiding by all applicable export control laws). | |
✓ | ✓ | This code example demonstrates implementation of TCP client with XMC7000 MCU. The example establishes a connection with a remote TCP server and based on the command received from the TCP server, turns the user LED ON or OFF. For more details, see the README on GitHub. License Disclaimer: This code example makes use of the lwIP open-source TCP/IP stack. Creating a project from this template will cause lwIP to be downloaded on your computer. It is your responsibility to understand and accept the lwIP license. Creating a project from this template will cause Mbed TLS to be downloaded on your computer. It is your responsibility to understand and accept the Mbed TLS license and regional use restrictions (including abiding by all applicable export control laws). | |
✓ | ✓ | This code example demonstrates implementation of a TCP server with XMC7000 MCU. In this example, the TCP server establishes a connection with a TCP client. Once the connection completes successfully, the server allows the user to send LED ON/OFF command to the TCP client, and the client responds by sending an acknowledgment message to the server. For more details, see the README on GitHub. License Disclaimer: This code example makes use of the lwIP open-source TCP/IP stack. Creating a project from this template will cause lwIP to be downloaded on your computer. It is your responsibility to understand and accept the lwIP license. Creating a project from this template will cause Mbed TLS to be downloaded on your computer. It is your responsibility to understand and accept the Mbed TLS license and regional use restrictions (including abiding by all applicable export control laws). | |
✓ | ✓ | This code example demonstrates implementation of UDP client with XMC7000 MCU. The example establishes a connection with a remote UDP server and turns the user LED ON or OFF based on the command received from the UDP server. For more details, see the README on GitHub. License Disclaimer: This code example makes use of the lwIP open-source TCP/IP stack. Creating a project from this template will cause lwIP to be downloaded on your computer. It is your responsibility to understand and accept the lwIP license. Creating a project from this template will cause Mbed TLS to be downloaded on your computer. It is your responsibility to understand and accept the Mbed TLS license and regional use restrictions (including abiding by all applicable export control laws). | |
✓ | ✓ | This code example demonstrates implementation of UDP Server with XMC7000 MCU. In this example, the UDP server waits for the UDP client to establish a connection. Once a connection is established, the server allows the user to send the LED ON/OFF command to the UDP client through a button press; the client responds by sending an acknowledgement message to the server. For more details, see the README on GitHub. License Disclaimer: This code example makes use of the lwIP open-source TCP/IP stack. Creating a project from this template will cause lwIP to be downloaded on your computer. It is your responsibility to understand and accept the lwIP license. Creating a project from this template will cause Mbed TLS to be downloaded on your computer. It is your responsibility to understand and accept the Mbed TLS license and regional use restrictions (including abiding by all applicable export control laws). | |
✓ | ✓ | This code example demonstrates how to use the XMC7000 MCU event generator (EVTGEN) resource to trigger ADC conversion in active power mode. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the fault handling functionality of XMC7000 MCU using Peripheral Driver Library (PDL) System Library (SysLib). For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the GPIO pin operation on the XMC7000 MCU, using Eclipse IDE for ModusToolbox™. This includes reading, writing, interrupts, and full port configurations. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the use of a GPIO configured as an input pin to generate interrupts on an Infineon MCU. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the use of I2C (HAL) resource in Master mode. The I2C master is configured to send command packets to control a user LED on the slave. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates the use of I2C resource in HAL in slave mode. The I2C slave is configured to receive command packets to control a user LED on the kit. For more details, see the README on GitHub. | |
✓ | ✓ | This code example generates a square wave using the PWM driver. An LED connected to the PWM output pin blinks at 2 Hz. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the use of SPI (HAL) resource in Master mode. The SPI master is configured to send command packets to control a user LED on the slave. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates the use of SPI (HAL) resource in Slave mode. The SPI slave is configured to receive command packets to control a user LED on the kit. For more details, see the README on GitHub. | |
✓ | ✓ | This code example generates an interrupt every second with the timer driver, and toggles the user LED when a timer interrupt is generated. For more details, see the README on GitHub. | |
✓ | ✓ | This example explains how to set up a Watchdog Timer (WDT) using the WDT HAL resource. The WDT resets the device if it is not serviced or "kicked" within the configured timeout interval. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the use of I2C (HAL) resource in Master mode with an EzI2C slave. The I2C master is configured to send command packets to control a user LED on the slave. Both the slave and the master can be configured on the same kit. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the operation of the I2C (HAL) resource in Slave mode using callbacks. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates XMC7000 MCU how to enter the DeepSleep and Hibernate mode, and wake-up using the RTC alarm. For more details, see the README on GitHub. | |
✓ | ✓ | This code example shows how to configure low-voltage detection (LVD) in XMC7000 MCU to monitor VDDD and generate an interrupt when VDDD drops below the configured threshold. For more details, see the README on GitHub. | |
✓ | ✓ | This example shows how to configure XMC7000 MCWDT Subcounter0/1 and Subcounter2 operation with interrupt. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates how to use the inter-processor communication (IPC) driver to implement a message pipe in XMC7000 MCU. The pipe is used to send messages between CPUs. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the usage of the real-time clock (RTC) in Infineon MCU. It shows how to get and set the time in the RTC using the RTC HAL API. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the use of the SPI Serial Communication Block (SCB) resource for XMC7000 MCU in master and slave mode using DMA. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the UART transmit and receive operation using DMA in XMC7000 MCU. For more details, see the README on GitHub. | |
✓ | ✓ | This example uses the smart I/O peripheral in XMC7000 MCU to connect the button input pin to an output pin to toggle an external LED. There is no CPU usage except for the initialization of GPIO and smart I/O. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates how to use the tcpwm counter on the XMC7000 MCU. The counter is started by pwm signal and work with 200KHz clock frequency. Enable the counter CC0 match interrupt, when counter up to CC0 match value generates the interrupt to toggle user LED. For more details, see the README on GitHub. | |
✓ | ✓ | This code example shows TCPWM dead-time mode function. PWM line and PWM COMPL pins output the 1-kHz frequency wave and 1-kHz frequency wave with PWM leftalign 250 us in PWM dead-time mode. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates how to use the SysTick timer to generate a timer interrupt on XMC7000 MCU. For more details, see the README on GitHub. | |
✓ | ✓ | This example demonstrates the UART (HAL) transmit and receive operation in an Infineon MCU. For more details, see the README on GitHub. |
Additional Code Examples
Example | Supported Kit | Description | |
---|---|---|---|
KIT_T2G-B-H_EVK | KIT_T2G-B-H_LITE | ||
✓ | ✓ | This code example demonstrates how to convert multiple SAR ADC (Successive Approximation Register Analog-to-Digital Converter) channels simultaneously by triggering the TCPWM (Timer, Counter and PWM) counter. In this example, three SAR-ADC channels ADC[0]_0, ADC[1]_0 and ADC[2]_0 are configured to get trigger from the TCPWM counter. The trigger from the TCPWM counter is connected in parallel to the SAR sequencer of each channel using trigger multiplexer. All the ADC conversion of each channel will start simultaneously as soon as the counter reaches its terminal count. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates the use of the ADC HAL driver to perform voltage measurements. In this example, the driver is configured to sample the input voltage periodically and display the sampled voltage on the UART terminal. By default, the ADC is configured to use one channel in single-ended mode. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates the ADC calibration algorithm. In this example, the ADC calibration algorithm is executed to find an optimal offset and gain compensation for the ADC. It is also providing the options for decalibration by setting different offset and gain values (boundary values) which result in a decalibrated analog-to-digital transfer curve. A single ADC conversion is showing the voltage level of a potentiometer output while the calibration is done on a different logical ADC channel. For more details, see the README on GitHub. | |
✓ | ✓ | This code example shows how the conversion results of the SAR ADC change depending on the various conversion output methods. In this example, the results of various ADC conversion output methods (Averaging, Alignment, Sign Extension) are executed. The KIT potentiometer is set as the ADC input and the conversion is performed. The results are sent to the terminal each time according to the user's input, which includes the average count and the output format. For more details, see the README on GitHub. | |
✓ | ✓ | This code example demonstrates the usage of the diagnostic reference for debugging the functionality of the on-chip ADC (Analog-to-Digital Converter) module. In this example, the diagnostic reference module is used to provide a known voltage as an input to the ADC module. The purpose of this setup is to test the ADC's functionality. The output count of the ADC is converted to equivalent voltage. The ADC is working correctly, if the measured voltage matches the input voltage within an acceptable margin of error. For more details, see the README on GitHub. | |
✓ |