TOP Contributors

  1. MIKROE (2656 codes)
  2. Alcides Ramos (353 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136870 times)
  2. FAT32 Library (70000 times)
  3. Network Ethernet Library (55999 times)
  4. USB Device Library (46303 times)
  5. Network WiFi Library (41910 times)
  6. FT800 Library (41206 times)
  7. GSM click (29012 times)
  8. PID Library (26423 times)
  9. mikroSDK (26394 times)
  10. microSD click (25385 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

ADC 7 click

Rating:

5

Author: MIKROE

Last Updated: 2018-08-03

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: ADC

Downloaded: 4789 times

Followed by: 1 user

License: MIT license  

ADC 7 click is an advanced 32-bit analog to digital converter (ADC) which uses the LTC2500-32, a 32-bit oversampling SAR ADC with a configurable digital filter.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "ADC 7 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "ADC 7 click" changes.

Do you want to report abuse regarding "ADC 7 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

ADC 7 click

ADC 7 click

Native view of the ADC 7 click board.

View full image
ADC 7 click

ADC 7 click

Front and back view of the ADC 7 click board.

View full image

Library Description

The library can perform 32bit AD conversion and can read this 32bit converted voltage value with or without configuration byte/bytes. Library also offers a choice to set configuration for the next conversion cycles. It is not necessary to set configuration for each conversion. A user always can perform conversion cycle/cycles with the last entered configurations. The user can read the converted voltage value as 32bit digital value or as a value calculated in the mV unit. For more details check the documentation.

Key functions:

  • uint8_t adc7_setConfig( uint8_t gainConfig, uint8_t downSampFactor, uint8_t filterType ) - The function performs the device configuration by sending configuration data to configure the next conversion cycle.
  • void adc7_startConvCycle( void ) - The function generates the clock signal on MCK pin and on that way starts and performs the desired number of conversion cycles, determined by Down Sampling Factor number.
  • uint8_t adc7_readResults( int16_t *voltage ) - The function reads 32bit converted voltage value from A/D converter and calculates this value to mV.

Example description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes SPI interface and performs configuration for conversion cycles.
  • Application Task - (code snippet) - Performs the determined number of conversion cycles which are necessary for averaging.
void applicationTask()
{
 adc7_startConvCycle();

 while (adc7_checkDataReady() == _ADC7_DATA_NOT_READY);

 adc7_readResults( &voltageData );

 LongToStr( voltageData, text );
 mikrobus_logWrite( "Voltage: ", _LOG_TEXT );
 mikrobus_logWrite( text, _LOG_TEXT );
 mikrobus_logWrite( "mV", _LOG_LINE );

 Delay_ms( 200 );
}


Other mikroE Libraries used in the example:

  • Conversions
  • SPI
  • UART

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

Thermo 16 click

5

Thermo 16 Click is a Click board™ equipped with the sensor IC, which can measure temperature measurements between -40°C and +150°C so that the temperature measurement data can be processed by the host MCU.

[Learn More]

Ammeter click

1

Ammeter click is a mikroBUS add-on board with circuitry for measuring electric current ( both AC and DC ).

[Learn More]

Comparator click

5

Comparator click can be used with a single or dual power supply. If a single power supply is used, the offset voltage can be as low as 2.0 mV, with a range from 2.0 VDC to 36 VDC. For dual supplies, the range is from ±1.0 VDC to ±18 VDC. The resulting output is compatible with TTL, DTL, ECL, MOS and CMOS logic systems.

[Learn More]