AN220203 Smart I/O usage setup in TRAVEO™ T2G family
About this document
Introduction
This application note describes how to use and setup Smart I/O in Infineon TRAVEO™ T2G family CYT2/CYT3/CYT4/CYT6 series MCUs.
Smart I/O adds programmable logic to an I/O port. Smart I/O integrates Boolean logic functionality such as AND, OR, and XOR into a port. It also pre- or post-processes the signals between high-speed I/O matrix (HSIOM) and I/O port. For example, Smart I/O can enable digital glue logic for input signals using multiple flip-flops without CPU intervention. HSIOM multiplexes GPIOs sharing multiple functions into peripheral devices selected by the user. See the Architecture Reference Manual for details of HSIOM.
To understand the functionality described and terminology used in this application note, see the Smart I/O chapter in the Architecture Reference Manual . Figure 1 shows examples of typical signal paths.
Figure 1. Smart I/O interface
Path 1: Implements self-contained logic functions that directly operate on I/O port signals
Path 2: Implements self-contained logic functions that operate on HSIOM signals
Path 3: Logic conversed HSIOM output signals route to I/O port
Path 4: Logic conversed I/O port input signals route to HSIOM
For each signal path, the Smart I/O function gives an option for a programmable output. This application note shows the example usage and configuration of the Smart I/O function.
Applications of Smart I/O
Smart I/O can be used whenever simple logic operations and routing are required to be performed on signals to or from the I/O pins. Typical applications include the following:
Change routing to/from pins: This function allows rerouting signals from the fixed-function peripherals to non-dedicated pins on the same port.
Invert the polarity of signal: This function inverts the polarity of output signals, such as the SPI signal, before it goes out from a pin.
Clock or signal buffer: This function drives a GPIO input signal, which has to drive a heavier load for one pin, through two GPIO buffers.
Detect a pattern on pins: This function detects the patterns of several signal inputs and outputs the programmable signal depending on the result of detection.
These applications of Smart I/O can work in low-power mode (DeepSleep), therefore can be used as a wakeup interrupt.
Bypass of Smart I/O
When the Smart I/O function is not used, it will be automatically bypassed by setting the SMARTIO_PRTx_CTL.ENABLE 1 bit to “0”: Disabled. It is also possible to bypass any I/O pin in the Port group using the SMARTIO_PRTx_CTL.BYPASS bits. When BYPASS bits are set to “1”: Bypass, HSIOM and I/O port are connected directly.
Note that the bypass setting must be configured before enabling the Smart I/O. (SMARTIO_PRTx_CTL.ENABLE set to “1”: Enabled)
Table 1 shows the description of the SMARTIO_PRTx_CTL register for bypass setting. See the Registers Reference Manual for details.
Register | Bit Field | Setting |
|---|---|---|
SMARTIO_PRTx_CTL | BYPASS [7:0] | Bypass Smart I/O ‘0’: No bypass (Smart I/O is present in the signal path) ‘1’: Bypass (Smart I/O is absent in the signal path) |
ENABLED [31] | Enable Smart I/O 0: Disabled (Signals are bypassed: default) 1: Enabled (Should only be set to ‘1’ when Smart I/O is completely configured.) |