element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
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
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mahmood.hassan
  • Date Created: 19 Mar 2020 9:33 PM Date Created
  • Views 254 views
  • Likes 1 like
  • 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

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.

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

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.

 

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
Anonymous
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube