digiin2
2.1.0.0
|
DIGI IN 2 Click is a compact add-on board designed for converting high-voltage industrial signals into logic-level outputs, ideal for enhancing industrial control systems. This board features the MAX22196, a high-performance octal industrial sink/source digital input IC from Analog Devices. This Click boardâ„¢ stands out for its ability to interface eight industrial inputs (8V-24V) via SPI, configurable as either sinking or sourcing with built-in current limiters, ensuring adherence to IEC 61131-2 standards.
We provide a library for the DIGI IN 2 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 DIGI IN 2 Click driver.
digiin2_cfg_setup
Config Object Initialization function. digiin2_init
Initialization function. digiin2_default_cfg
Click Default Configuration function. digiin2_get_flt_pin
This function is used to get state of the FLT pin. digiin2_write_reg
This function is used to write data into the selected register by using SPI serial interface. digiin2_read_reg
This function reads a data byte from the selected register by using SPI serial interface. This example demonstrates the use of DIGI IN 2 Click board by reading and displaying the state of the channels.
The demo application is composed of two sections :
Initializes the driver, performs the click default configuration.
Reads and displays on the USB UART the channel state every 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.