element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Think ON Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Think ON Design Challenge
  • More
  • Cancel
Think ON Design Challenge
Blog ADS1115 (16-Bit ADC) Interfacing with ON Semiconductor RSL10-SENSE-GEVK
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mahmood.hassan
  • Date Created: 19 Mar 2020 9:33 PM Date Created
  • Views 1092 views
  • Likes 2 likes
  • Comments 0 comments
  • rsl10-sense-gevk
  • ble 5.0
  • ads1115
  • on semiconductor
  • adc
  • diy project
Related
Recommended

ADS1115 (16-Bit ADC) Interfacing with ON Semiconductor RSL10-SENSE-GEVK

mahmood.hassan
mahmood.hassan
19 Mar 2020

image

ADS1115 C library and main.c is attached below

OnSemi RSL-10 module has 4 ADC inputs but on RSL10-Sense-GEVK only one ADC input is available. Due to the availability of only 1 ADC pin user has only 2 options either use this single analog input with any analog mux (i.e. CD4051BE) or use an external ADC to measure multiple analog inputs. And here ADS1115 16-bit ADC is used to measure up to 4 single ended or 2 differential analog signals.

Details:

In order to use I2C interface of RSL10 module we need to enable the CMSIS driver for I2C interface as shown below. The CMSIS I2C driver also require device DMA and GPIO libraries and these two should be enabled from RTEConfig.

image

After enabling all the required interfaces and corresponding libraries when we will built the code, it will result in similar error as shown below.

image

And the reason of above errors is that DMA is disabled from RTE device header file and we need to modify the RTE_DMA configuration in RTE_Device.h (../RTE/Device/RSL10/RTE_Device.h) file as given below. After enabling the DMA from RTE device header file, above errors will disappear and code will build successfully.

 

// <e> DMA Configuration
// =======================
//
//   <i> Defines if DMA driver should be enabled.
//   <i> Default: 1
#ifndef RTE_DMA
 #define RTE_DMA     1     // Change to 1 if 0
#endif
// <e>DMA 0 enabled

 

Using the ADS1115 C library and main.c files attached below we can print the ADC values using Segger J-Link RTT viewer or Telnet terminal from within the ON-Semi eclipse IDE. RTT viewer is displaying the 6 analog readings and first four are single ended analog values at each channel and last 2 readings are differential values between channels 0 & 1 and 2 & 3.

image

 

ADS1115 details: ADS1115 16-Bit 860SPS 4-Ch Delta-Sigma ADC With PGA, Oscillator, Vref, Comparator, and I2C | TI.com

ADS1115 datasheet: http://www.ti.com/lit/ds/symlink/ads1114.pdf

Attachments:
ADS1115.zip
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube