Sep 12

DLN-series Adapters Interfaces and Modules Overview: ADC.

Diolan DLN-series adapters have very impressive functionality. By using DLN-4M adapter you can use PC-I2C, USB-SPI and USB-GPIO interfaces. Also there are pulse counter, PWM and ADC module. DLN-4S has the same capabilities as DLN-4M but it also has slave capabilities of USB-I2C and USB-SPI interfaces.

There are available large amount of demo examples which show all the possibilities of Diolan DLN-series adapters and were created to help your software and hardware development with latest Diolan products.

Lets look on USB-ADC (analog to digital convertor) module. This module has many applications. You can acquire data from wide range of analog sensors and save it at PC for further processing. Analog to digital conversion is well utilized for external analog signal reading such as current, voltage, temperature, distance, pressure, or even color information.

To begin usage of DLN USB-ADC module you need simply enable ADC channel and its port by using DlnAdcChannelEnable() and DlnAdcEnable() functions.

You can acquire ADC values or value by DlnAdcGetAllValues() and DlnAdcGetValue() functions.

To set resolution simply call DlnAdcSetResolution() function to get current resolution simply call DlnAdcGetResolution() function.

There are 5 event types and event periods you can set for the ADC module. Simly call DlnAdcChannelSetCfg() function with proper parameters and DlnAdcChannelGetCfg() to take current values back.

You can share all this functions from the dln.dll library or by using static qt libdln.a and dln.lib libraries. Try to run “Adc Gui” application for testing installed by DLN setup package.

comments: 0 »