i2c1wire2
2.1.0.0
|
I2C 1-Wire 2 Click is a compact add-on board bridging I2C master interfaces with 1-Wire slave devices, ideal for simplifying complex communication protocols. This board features the DS2485, an advanced 1-Wire master with memory from Analog Devices. It features adjustable internal timers for precise 1-Wire signal management, relieving the host processor of timing-sensitive operations, and supports standard and overdrive communication speeds.
We provide a library for the I2C 1-Wire 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 I2C 1-Wire 2 Click driver.
i2c1wire2_cfg_setup
Config Object Initialization function. i2c1wire2_init
Initialization function. i2c1wire2_default_cfg
Click Default Configuration function. i2c1wire2_master_reset
This function is used to reset device, and return all configuration registers to the default values. i2c1wire2_write_port_cfg
This function is used to write a 1-Wire configuration register. i2c1wire2_search
This function is used to perform 1-Wire Search algorithm and return one device ROMID. This example demonstrates the use of the I2C 1-Wire 2 Click board
by searching if a device is connected and reading its ROMID.
The demo application is composed of two sections :
Initialization of I2C module, log UART and perform Click default configuration.
Performing 1-Wire Search algorithm to find if any device is connected.
If a device is connected and detected, its ROMID will be read and displayed.
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.