RedLab 1208LS USB-based Analog and Digital I/O Module User's Guide Document Revision 1.
Imprint User’s Guide RedLab® Series Document Revision 1.4 E Revision Date: January 2008 Meilhaus Electronic GmbH Fischerstraße 2 D-82178 Puchheim near Munich, Germany http://www.meilhaus.de © Copyright 2008 Meilhaus Electronic GmbH All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form by any means, electronic, mechanical, by photocopying, recording, or otherwise without the prior written permission of Meilhaus Electronic GmbH.
Table of Contents Preface About this User's Guide .......................................................................................................................6 What you will learn from this user's guide .........................................................................................................6 Conventions in this user's guide .........................................................................................................................6 Where to find more information ...
RedLab 1208LS User's Guide Mechanical .......................................................................................................................................................29 Main connector and pin out ..............................................................................................................................29 4-channel differential mode .......................................................................................................................................
Preface About this User's Guide What you will learn from this user's guide This user's guide explains how to install, configure, and use the RedLab 1208LS so that you get the most out of its USB data acquisition features. This user's guide also refers you to related documents available on our web site, and to technical support resources that can also help you get the most out of the RedLab 1208LS.
Chapter 1 Introducing the RedLab 1208LS This user's guide contains all of the information you need to connect the RedLab 1208LS to your computer and to the signals you want to measure. The RedLab 1208LS is a USB 1.1 low-speed device supported under popular Microsoft® Windows® operating systems. It is designed for USB 1.1 ports, and was tested for full compatibility with both USB 1.1 and USB 2.0 ports.
RedLab 1208LS User's Guide Introducing the RedLab 1208LS RedLab 1208LS block diagram RedLab 1208LS functions are illustrated in the block diagram shown here. USB1.1 Compliant Interface Analog Input 8 SE (11-bit ) channels or 4 Diff. (12-bit ) channels USB Microcontroller Analog Output 10-bit 2 channels 82C55 DIO 32-bit Event Counter 1 channel Port A Port B 8 8 2 1 8 Screw terminal I/O connector Figure 2.
RedLab 1208LS User's Guide Introducing the RedLab 1208LS Connecting a RedLab 1208LS to your computer is easy Installing a data acquisition device has never been easier. The RedLab 1208LS relies upon the Microsoft Human Interface Device (HID) class drivers. The HID class drivers ship with every copy of Windows that is designed to work with USB ports. We use the Microsoft HID because it is a standard, and its performance delivers full control and maximizes data transfer rates for your RedLab 1208LS.
Chapter 2 Installing the RedLab 1208LS What comes with your RedLab 1208LS shipment? As you unpack your RedLab 1208LS, verify that the following components are included. Hardware RedLab 1208LS USB cable (2 meter length) Additional documentation In addition to this hardware user's guide, you should also receive the Quick Start Guide (available on our RedLab CD (root directory)).
RedLab 1208LS User's Guide Installing the RedLab 1208LS Unpacking the RedLab 1208LS As with any electronic device, you should take care while handling to avoid damage from static electricity. Before removing the RedLab 1208LS from its packaging, ground yourself using a wrist strap or by simply touching the computer chassis or other grounded object to eliminate any stored static charge. If your RedLab 1208LS is damaged, notify Meilhaus Electronic immediately by phone, fax, or e-mail.
RedLab 1208LS User's Guide Installing the RedLab 1208LS Caution! Do not disconnect any device from the USB bus while the computer is communicating with the RedLab 1208LS, or you may lose data and/or your ability to communicate with the RedLab 1208LS. If the LED turns off If the LED is illuminated but then turns off, the computer has lost communication with the RedLab 1208LS. To restore communication, disconnect the USB cable from the computer, and then reconnect it.
Chapter 3 Functional Details Theory of operation - analog input acquisition modes The RedLab 1208LS can acquire analog input data in three different modes – software paced, continuous scan, and burst scan. Software paced mode In software paced mode, you can acquire one analog sample at a time. You initiate the A/D conversion by calling a software command. The analog value is converted to digital and returned to the computer.
RedLab 1208LS User's Guide Functional Details External components The RedLab 1208LS has the following external components, as shown in Figure 3. USB connector LED Screw terminal banks (2) LED Screw terminal Pins 1 to 20 Screw terminal Pins 21 to 40 USB Connector / cable Figure 3. RedLab 1208LS external components USB connector The USB connector is on the right side of the RedLab 1208LS housing. This connector provides +5V power and communication.
RedLab 1208LS User's Guide Functional Details Screw terminal wiring The RedLab 1208LS has two rows of screw terminals—one row on the top edge of the housing, and one row on the bottom edge. Each row has 20 connections. Pin numbers are identified in Figure 4. Pin 20 Pin 1 Pin 40 Pin 21 Figure 4.
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 GND Port B7 Port B6 Port B5 Port B4 Port B3 Port B2 Port B1 Port B0 GND PC+5V GND Port A7 Port A6 Port A5 Port A4 Port A3 Port A2 Port A1 Port A0 GND Port B7 Port B6 Port B5 Port B4 Port B3 Port B2 Port B1 Port B0 GND PC+5V GND Port A7 Port A6 Port A5 Port A4 Port A3 Port A2 Port A1 Port A0 CTR GND TRIG_IN GND CAL GND D/A OUT 1 D/A OUT 0 GND CH3 IN LO CH3 IN HI GND CH2 IN LO CH2 IN HI
RedLab 1208LS User's Guide Functional Details Analog input terminals (CH0 IN - CH7 IN) You can connect up to eight analog input connections to the screw terminal containing pins 1 to 20 (CH0 IN through CH7 IN). Refer to the pinout diagrams on page 16 for the location of these pins. You can configure the analog input channels as eight single-ended channels or four differential channels. When configured for differential mode, each analog input has 12-bit resolution.
RedLab 1208LS User's Guide Functional Details A low-noise precision programmable gain amplifier (PGA) is available on differential channels to provide gains of up to 20 and a dynamic range of up to 12-bits. Differential mode input voltage ranges are ±20 V, ±10 V, ±5 V, ±4 V, ±2.5 V, ±2.0 V, 1.25 V, and ±1.0 V. In differential mode, the following two requirements must be met for linear operation: Any analog input must remain in the −10V to +20V range with respect to ground at all times.
RedLab 1208LS User's Guide Functional Details -3V CHHI -7V Measured Signal 3V -11V +/-7V 8V Differential -3V CHLO -7V -11V Figure 8. Differential voltage example: common mode voltage of -7 V Since the analog inputs are restricted to a −10 V to +20 V signal swing with respect to ground, all ranges except ±20V can realize a linear output for any differential signal with zero common mode voltage and full scale signal inputs. The ±20 V range is the exception.
RedLab 1208LS User's Guide Functional Details Pin 40 GND Pin 30 PC +5 V) Pin 21 Port A0 Figure9. Digital connection Port A0 detecting the state of a switch Port A0 +GND +5V Figure 10. Schematic showing switch detection by digital channel Port A0 For more information on digital signal connections For more information on digital signal connections and digital I/O techniques, refer to the Guide to Signal Connections (available on our web site at www.mccdaq.com/signals/signals.pdf).
RedLab 1208LS User's Guide Functional Details With all outputs at their maximum output current, you can calculate the total current requirement of the RedLab 1208LS USB +5 V as follows: (RedLab 1208LS @ 20 mA) + (16 DIO @ 2.5 mA ea) + (2 AO @ 30 mA ea ) = 120 mA For an application running on a PC or powered hub, the maximum available excess current is 500 mA−120 mA = 380 mA. This number is the total maximum available current at the PC+5V screw terminals.
RedLab 1208LS User's Guide Functional Details Figure 11 shows an ideal, error-free, RedLab 1208LS transfer function. The typical calibrated accuracy of the RedLab 1208LS is range-dependent, as explained in the "Specifications" chapter of this document. We use a ±10 V range here as an example of what you can expect when performing a measurement in this range. Input Voltage + FS Output Code 0 2048 4095 -FS Figure 11. Ideal ADC transfer function The RedLab 1208LS offset error is measured at mid-scale.
RedLab 1208LS User's Guide Functional Details The accuracy plots in Figure 12 are drawn for clarity and are not drawn to scale. Input Voltage + FS Ideal 2 Offset= 9.77mV 2048 0 Output Code 9.77mV 4095 Ac tual -FS Figure 12. ADC transfer function with offset error Gain error is a change in the slope of the transfer function from the ideal, and is typically expressed as a percentage of full-scale. Figure 13 shows the RedLab 1208LS transfer function with gain error.
RedLab 1208LS User's Guide Functional Details For example, the RedLab 1208LS exhibits a typical calibrated gain error of ±0.2% on all ranges. For the ±10 V range, this would yield 10 V × ±0.002 = ±20 mV. This means that at full scale, neglecting the effect of offset for the moment, the measurement would be within 20 mV of the actual value. Note that gain error is expressed as a ratio.
RedLab 1208LS User's Guide Functional Details this condition does not damage the RedLab 1208LS, it does produce a useless full-scale reading. It can also introduce a long recovery time from saturation, which can affect the next measurement in the queue.
Chapter 4 Specifications Typical for 25°C unless otherwise specified. Specifications in italic text are guaranteed by design.
RedLab 1208LS User's Guide Specifications Table 1. Accuracy, differential mode Range Accuracy (LSB) ±20 V ±10 V ±5 V ±4 V ±2.5 V ±2 V ±1.25 V ±1 V 5.1 6.1 8.1 9.1 12.1 14.1 20.1 24.1 Table 2. Accuracy, single-ended mode Range Accuracy (LSB) ±10 V 4.0 Table 3. Accuracy components, differential mode - all values are (±) Range % of Reading Gain Error at FS (mV) Offset (mV) Accuracy at FS (mV) ±20 V ±10 V ±5 V ±4 V ±2.5 V ±2 V ±1.25 V ±1 V 0.2 0.2 0.2 0.2 0.2 0.2 0.2 0.2 40 20 10 8 5 4 2.
RedLab 1208LS User's Guide Specifications Digital input/output Digital type Number of I/O Configuration Pull up/pull-down configuration Input high voltage Input low voltage Output high voltage (IOH = -2.5 mA) Output low voltage (IOL = 2.5 mA) 82C55 16 (Port A0 through A7, Port B0 through B7 2 banks of 8 All pins pulled up to Vs via 47K resistors (default). Positions available for pull down to ground. Hardware selectable via zero ohm resistors as a factory option. 2.0 V min, 5.5 V absolute max 0.
RedLab 1208LS User's Guide Specifications Power Parameter Supply current (Note 5) +5V USB power available (Note 6) Output current (Note 7) Conditions Specification Connected to Self-Powered Hub Connected to Bus-Powered Hub Connected to Self-Powered Hub Connected to Bus-Powered Hub 20 mA 4.5 V min, 5.25 V max 4.1 V min, 5.25 V max 450 mA min, 500 mA max 50 mA min, 100 mA max Note 5: This is the total current requirement for the RedLab 1208LS which includes up to 5mA for the status LED.
RedLab 1208LS User's Guide Specifications 4-channel differential mode Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Signal Name CH0 IN HI CH0 IN LO GND CH1 IN HI CH1 IN LO GND CH2 IN HI CH2 IN LO GND CH3 IN HI CH3 IN LO GND D/A OUT 0 D/A OUT 1 GND CAL GND TRIG_IN GND CTR Pin 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Signal Name Port A0 Port A1 Port A2 Port A3 Port A4 Port A5 Port A6 Port A7 GND PC+5V GND Port B0 Port B1 Port B2 Port B3 Port B4 Port B5 Port B6 Port B7 GND Pin
Meilhaus Electronic GmbH Fischerstrasse 2 D-82178 Puchheim, Germany Phone: +49 (0)89 89 01 66-0 Fax: +49 (0)89 89 01 66-77 E-Mail: sales@meilhaus.com http://www.meilhaus.