DM5210 analog input module 4-18 RTD Embedded Technologies, Inc.
Example Programs and Flow Diagrams
Included with the 210/5210 is a set of example programs that demonstrate the use of many of the module’s
features. These examples are in written in C and BASIC. Also included is an easy-to-use menu-driven diagnostics
program, 5210DIAG, which is especially helpful when you are first checking out your module after installation and
when calibrating the module (Chapter 5).
Before using the software included with your module, make a backup copy of the disk. You may make as many
backups as you need.
C Programs
These programs are source code files so that you can easily develop your own custom software for the 210/5210.
In the C directory, DM5210.H and DM5210.INC contain all the functions needed to implement the main C pro-
grams. H defines the addresses and INC contains the routines called by the main programs.
Analog-to-Digital:
SOFTTRIG
Demonstrates how to use a software trigger for acquiring data.
Timer/Counters:
TIMER
A short program demonstrating how to program the 8254 for use as a timer.
Digital I/O:
DIGITAL
Simple program that shows how to read and write the digital I/O lines.
Interrupts:
INTRPTS
Shows the bare essentials required for using interrupts.
INTSTR
A complete program showing interrupt-based streaming to disk.
BASIC Programs
These programs are source code files so that you can easily develop your own custom software for the 210/5210.
Analog-to-Digital:
SINGLE
Demonstrates how to perform single conversions.
SCAN
Demonstrates how to change channels while acquiring data.
Timer/Counters:
TIMER
A short program demonstrating how to program the 8254 for use as a timer.
Digital I/O:
DIGITAL
Simple program that shows how to read and write the digital I/O lines.
Flow Diagrams
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com