ibutton 2.1.0.0
|
iButton click - is an iButton™ probe Click board™. The iButton is a Analog Devices technology based on Analog's 1-Wire® communication protocol, and a chip usually packed in a robust stainless steel casing. The button-shaped iButton device has two contacts - the lid and the base. These contacts carry the necessary connections down to a sensitive silicone chip, embedded inside the metal button. When the iButton touches the reader probe on the Click board™, it establishes the communication with the host MCU, via the 1-Wire® interface. The communication is almost instant, so it is enough to press the iButton lightly to the probe contacts.
We provide a library for the iButton 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 iButton Click driver.
ibutton_cfg_setup
Config Object Initialization function. ibutton_init
Initialization function. ibutton_add_key
This function reads the ROM address from a DS1990A Serial Number iButton and stores it in the ctx->key_rom buffer. ibutton_remove_keys
This function removes all stored keys by clearing the ctx->key_rom buffer. ibutton_check_key
This function reads the ROM address from a DS1990A Serial Number iButton and checks if it is already stored in the ctx->key_rom buffer. This example demonstrates the use of the iButton click boards by registering a DS1990A Serial Number iButton
key and then waiting until a key is detected on the reader and identifying if the key matches one of those stored in RAM.
The demo application is composed of two sections :
Initializes the driver and registers a new DS1990A Serial Number iButton key and stores it in RAM.
Waits until a key is detected on the reader, and checks if there's a key found in the library that matches the one it has just read.
All data is being logged on the USB UART where you can track the program flow.
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.