manufacturer of I/O-rich SBCs, operator interfaces, handheld instruments, and development tools for embedded control low cost single board computers, embedded controllers, and operator interfaces for scientific instruments & industrial control development tools for embedded control order our low cost I/O-rich embedded control products embedded controller manufacturer profile single board computers & embedded controllers development tools & starter kits for your embedded design operator interfaces with touchscreens and graphical user interface plug-in expansion modules for digital & analog I/O C language & Forth language integrated development tools, IDE single board and embedded computer accessories embedded controller enclosures, bezels, environmental gaskets
Table of Contents

Introduction

Analog I/O Wildcard Hardware

Connecting To Mosaic Controller

Selecting the Wildcard Address

Selecting the Reference Voltage

Analog I/O Wildcard Field Header

Software

Overview of the Software Device Driver Functions

Initializing the Analog I/O Software Drivers

Using the DAC Drivers

Using the A/D Drivers

Installing the Analog I/O Wildcard Driver Software

Using the Driver Code with C

Using the Driver Code with Forth

Glossary

Overview of Glossary Notation

Glossary Quick Reference

Glossary Entries

Hardware Schematics (pdf, 38.3KB)

Analog I/O Wildcard User Guide

<< Previous | Next>>

Glossary Entries (continued)

C: AD16_CH5_CH4
4th: AD16_CH5_CH4 ( -- n )
A constant (= 0x60) that, when passed as a parameter to AD16_Sample or AD16_Multiple, configures the 16-bit A/D to perform differential conversions between Channel 5 and Channel 4 (pins 9 and 10) on the Analog I/O Field Header. See also AD16_Sample and AD16_Multiple.

C: AD16_CH6
4th: AD16_CH6 ( -- n )
A constant (= 0x34) that, when passed as a parameter to AD16_Sample or AD16_Multiple, configures the 16-bit A/D to perform single-ended conversions on Channel 6, pin 8, on the Analog I/O Field Header. See also AD16_Sample and AD16_Multiple.

C: AD16_CH6_CH7
4th: AD16_CH6_CH7 ( -- n )
A constant (= 0x30) that, when passed as a parameter to AD16_Sample or AD16_Multiple, configures the 16-bit A/D to perform differential conversions between Channel 6 and Channel 7 (pins 8 and 7) on the Analog I/O Field Header. See also AD16_Sample and AD16_Multiple.

C: AD16_CH7
4th: AD16_CH7 ( -- n )
A constant (= 0x74) that, when passed as a parameter to AD16_Sample or AD16_Multiple, configures the 16-bit A/D to perform single-ended conversions on Channel 7, pin 7, on the Analog I/O Field Header. See also AD16_Sample and AD16_Multiple.

C: AD16_CH7_CH6
4th: AD16_CH7_CH6 ( -- n )
A constant (= 0x70) that, when passed as a parameter to AD16_Sample or AD16_Multiple, configures the 16-bit A/D to perform differential conversions between Channel 7 and Channel 6 (pins 7 and 8) on the Analog I/O Field Header. See also AD16_Sample and AD16_Multiple.

C: void AD16_Multiple ( xaddr buffer, uint timing, uint samples, int channel, int module )
4th: AD16_Multiple ( xaddr\timing\num_samples\channel_num\module_num -- )
Acquires num_samples from the specified channel of the 16-bit A/D on the specified module and stores the samples as sequential unsigned 16-bit values starting at the specified buffer address. The timing parameter specifies the timing of the samples. The eight valid module numbers are 0 to 7. For single-ended conversions, the channel is selected using one of the following constants: AD16_CH0, AD16_CH1, AD16_CH2, AD16_CH3, AD16_CH4, AD16_CH5, AD16_CH6, and AD16_CH7. Single-ended sampling means that the input voltage of the specified channel is referenced to ADCGND (pins 5 or 6 on the Field Header). For differential conversions, the channel is selected using one of the following constants: AD16_CH0_CH1, AD16_CH1_CH0, AD16_CH2_CH3, AD16_CH3_CH2, AD16_CH4_CH5, AD16_CH5_CH4, AD16_CH6_CH7, and AD16_CH7_CH6. Differential sampling means that the voltage of the second specified channel is subtracted from the voltage of the first specified channel and the resulting voltage is digitized by the A/D. Be sure that the second specified channel’s voltage does not exceed 1.25 volts and the second specified channel’s voltage does not exceed the first specified channel’s voltage (i.e. the 16-bit A/D can only operate in unipolar mode). Init_Analog_IO must be called before calling AD16_Multiple. Unlike the routines for the 8-bit DAC and 12-bit A/D, a resource variable is not required for the 12-bit DAC and the 16-bit A/D in multitasking systems. If the specified buffer is in common memory, the first sample is taken after 32.5 microseconds and subsequent samples are taken every (57.5+2.5*timing parameter) microseconds. If the specified buffer is in paged memory, the first sample is taken after 32.5 microseconds and subsequent samples are taken every (82.5+2.5*timing parameter) microseconds. If the buffer crosses a page boundary, the sampling interval increases by approximately 4 microseconds for the sample stored after the page boundary was crossed. Of course, the operation of interrupts (including timesliced multitasking) will affect these sampling times. Disables interrupts for 27 microseconds per sample. See also AD16_Sample and Init_Analog_IO.

C: uint AD16_Sample ( int channel_num, int module_num )
4th: AD16_Sample ( channel_num\module_num -- 16-bit_result )
Returns a single 16-bit sample from the specified channel of the 16-bit A/D on the specified module. The eight valid module numbers are 0 to 7. For single-ended conversions, the channel is selected using one of the following constants: AD16_CH0, AD16_CH1, AD16_CH2, AD16_CH3, AD16_CH4, AD16_CH5, AD16_CH6, and AD16_CH7. Single-ended sampling means that the input voltage of the specified channel is referenced to ADCGND (pins 5 or 6 on the Field Header). For differential conversions, the channel is selected using one of the following constants: AD16_CH0_CH1, AD16_CH1_CH0, AD16_CH2_CH3, AD16_CH3_CH2, AD16_CH4_CH5, AD16_CH5_CH4, AD16_CH6_CH7, and AD16_CH7_CH6. Differential sampling means that the voltage of the second specified channel is subtracted from the voltage of the first specified channel and the resulting voltage is digitized by the A/D. Be sure that the second specified channel’s voltage does not exceed 1.25 volts and the second specified channel’s voltage does not exceed the first specified channel’s voltage (i.e. the 16-bit A/D can only operate in unipolar mode). Init_Analog_IO must be called before calling AD16_Sample. Unlike the routines for the 8-bit DAC and 12-bit A/D, a resource variable is not required for the 12-bit DAC or the 16-bit A/D in multitasking systems. AD16_Sample executes in 52.25 microseconds and disables interrupts for 27 microseconds. See also AD16_Multiple and Init_Analog_IO.

<< Previous | Next>>


Home|Site Map|Products|Manuals|Resources|Order|About Us
Copyright (c) 2012 Mosaic Industries, Inc.
Your source for single board computers, embedded controllers, and operator interfaces for instruments and automation