tdc2 2.1.0.0
|
TDC 2 Click is a compact add-on board that recognizes events and provides a digital representation of the time they occurred. This board features ScioSense’s AS6500, a four-channel time-to-digital converter (TDC) frontend with high measurement performance and high data throughput. The AS6500 is characterized by simple data post-processing thanks to calibrated results (calculates calibrated stop measurements referenced to the applied reference clock).
We provide a library for the TDC 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 TDC 2 Click driver.
tdc2_cfg_setup
Config Object Initialization function. tdc2_init
Initialization function. tdc2_default_cfg
Click Default Configuration function. tdc2_read_results
TDC 2 results data reading function. tdc2_start_measuring
TDC 2 start measuring function. tdc2_set_resolution
TDC 2 set resolution function. This library contains API for TDC 2 Click driver. The library initializes and defines the SPI bus drivers to write and read data from registers, as well as the default configuration for a reading time between two STOP signals.
The demo application is composed of two sections :
Initializes the driver after that resets the device and performs default configuration and sets the device in read mode.
This example demonstrates the use of the TDC 2 Click board by
measuring the time between two STOP signals. This example is set up to generate stop signals until FIFO fil's up which is indicated by interrupt pin going to low state. After that FIFO buffer is completely emptied by reading, and that data is used to calculate the time between STOP signals.
In order to test this example, you will need to connect STOP1 with the DIS pin. Disable pin is
disabled by software and it isn't going to affect the working state of the TDC 2 Click Bord.
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.