uniqueid 2.0.0.0
|
Unique ID click carries DS2401, an enhanced silicon serial number IC. It’s a low cost solution for providing a unique registration number to your design. The chip consists of a factory-lasered 64-bit ROM that includes a uniques a 48-bit serial number, an 8-bit CRC, and an 8-bit family code. It uses 1-wire communications for interfacing with the target board microcontroller, either through a GP1 or GP0 pin (here in place of the default AN and PWM mikroBUS pins). The board is designed to use either a 3.3V or 5V power supply.
We provide a library for the UNIQUE ID 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 UNIQUE ID click driver.
uniqueid_cfg_setup
Config Object Initialization function. uniqueid_init
Initialization function. uniqueid_read_id
This function reads Family Code and Serial Number of device's ROM memory. This example demonstrates the use of UNIQUE ID click board by reading and displaying Family Code and Serial Number on the UART Terminal.
The demo application is composed of two sections :
Initionalizes both logger config object and click config object.
Demonstrates the usage of uniqueid_read_id function,
which stores the Family Code and Serial Number of the click in family_code and serial_num variables. Both values will be displayed on the UART Terminal.
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.