Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 90965

Wiki Page: ADS1220 Example Code

$
0
0

Example code for the ADS1220 resides in the zip file.  The example is based on communication using the MSP430F5528.  The code can be easily adapted to other micro controllers by changing a few definitions in the header and altering 'main' for the correct compiler definitions based on the device used.  The zip file contains the following files:

Main.c - contains start-up code for the microcontroller, intializing calls for the ADS1220 and an interrupt servicing routine.  The main processing loop shows an example of waiting for conversion completion then reading out the data results by command.  The interrupt service routine could be altered to retrieve the data automatically, but this is a generic call that does not require any special function to retrieve the data so it is not shown.  Look for generic functions in Generic functions page.

ADS1220.h - contains register and bit specic definitions as well as prototypes for the functions used.

ADS1220.c - contains the actual lower and higher level calls.  Functions for reading and writing registers, and calls for setting and getting specific ADS1220 settings are also included.

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 90965

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>