expand19
2.1.0.0
|
Expand 19 Click is an add-on board that provides additional input/output capabilities for various applications. This board features the TCAL9538, an 8-bit I2C-bus I/O expander from Texas Instruments. The board features eight configurable I/O pins that can be set as inputs or outputs, with polarity inversion, programmable output drive strength, and interrupt functionality for real-time event handling. It operates using a standard 2-wire I2C communication interface, supporting clock frequencies up to 1MHz, and includes an onboard interrupt pin for efficient system integration.
We provide a library for the Expand 19 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Expand 19 Click driver.
expand19_cfg_setup
Config Object Initialization function. expand19_init
Initialization function. expand19_default_cfg
Click Default Configuration function. expand19_set_pin_direction
This function sets the direction of the selected pins. expand19_set_all_pins_value
This function sets the value of all output pins. expand19_read_port_value
This function reads the value of all input pins. This example demonstrates the use of Expand 19 click board by setting and reading the port state.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets the pins 0-3 as output and others as input with pull-up enabled.
Sets the output pins and then reads the status of all pins and displays the results on the USB UART approximately once per second.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.