expand13 2.0.0.0
|
Expand 13 Click is a compact add-on board that contains a multi-port I/O expander. This board features the PI4IOE5V96248, a 48-bit general-purpose I/O expander providing remote I/O expansion for most MCU’s families from Diodes Incorporated. The PI4IOE5V96248 comes in a 6-channel configuration and allows easy addition of I/O through a standard I2C serial interface. It has a built-in level shifting feature that makes it highly flexible in power supply systems where communication between incompatible I/O voltages is required.
We provide a library for the Expand13 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 Expand13 Click driver.
expand13_cfg_setup
Config Object Initialization function. expand13_init
Initialization function. expand13_enable_device
This function enables the device by setting the RST pin to high logic state. expand13_write_all_ports
This function writes a desired data to all 6 ports. expand13_read_all_ports
This function reads the state of all 6 ports. This example demonstrates the use of Expand 13 click board, by writing data to all six ports and then reading back the status of the ports.
The demo application is composed of two sections :
Initializes the driver and enables the click board.
Sets the pins of all ports and then reads and displays their status 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.