expand14 2.0.0.0
|
Expand 14 Click is a compact add-on board that contains a multi-port I/O expander. This board features the CAT9555, a CMOS device that provides 16-bit parallel input/output port expansion from ON Semiconductor. The CAT9555 contains two 8-bit configuration ports (input or output), input, output, and polarity inversion registers, alongside an I2C-compatible serial interface. Any of the sixteen I/Os can be configured as an input or output by writing to the configuration register. It also features an active-low interrupt output, indicating to the host controller that an input state has been changed.
We provide a library for the Expand 14 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 14 Click driver.
expand14_cfg_setup
Config Object Initialization function. expand14_init
Initialization function. expand14_default_cfg
Click Default Configuration function. expand14_set_pin_direction
This function sets the direction of the selected pins. expand14_set_all_pins_value
This function sets the value of all output pins. expand14_read_port_value
This function reads the value of the selected port input pins. This example demonstrates the use of Expand 14 click board by setting and reading the ports state.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which sets the port 0 as output and the port 1 as input.
Sets the pins of the port 0 and then reads the status of both ports 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.