MEILHAUS REDLAB 1024LS Instructions

Page 1
Page 2
RedLab 1024LS
USB-based Digital I/O Module
User's Guide
Document Revision 1.4 E, January, 2008
© Copyright 2008, Meilhaus Electronic
Page 3
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.
Important note:
All the information included in this user’s guide were put together with utmost care and to best knowledge. However, mistakes may not have been erased completely.
For this reason, the firm Meilhaus Electronic GmbH feels obliged to point out that they cannot be take on neither any warranty (apart from the claims for warranty as agreed) nor legal responsibility or liability for consequences caused by incorrect instructions.
We would appreciate it if you inform us about any possible mistakes.
The trademark Personal Measurement Device, TracerDAQ, Universal Library, InstaCal, Harsh Environment Warranty, Measurement Computing Corporation, and the Measurement Computing logo are either trademarks or registered trademarks of Measurement Computing Corporation.
Windows, Microsoft, and Visual Studio are either trademarks or registered trademarks of Microsoft Corporation.
LabVIEW is a trademark of National Instruments.
CompactFlash is a registered trademark of SanDisk Corporation.
XBee is a trademark of MaxStream, Inc.
All other trademarks are the property of their respective owners.
3
Page 4
Table of Contents
Preface
About this User's Guide .......................................................................................................................5
What you will learn from this user's guide .........................................................................................................5
Conventions in this user's guide .........................................................................................................................5
Where to find more information.........................................................................................................................5
Chapter 1
Introducing the RedLab 1024LS ..........................................................................................................6
RedLab 1024LS block diagram..........................................................................................................................7
Software features................................................................................................................................................7
Connecting a RedLab 1024LS to your computer is easy....................................................................................8
Chapter 2
Installing the RedLab 1024LS ..............................................................................................................9
What comes with your RedLab 1024LS shipment?............................................................................................9
Hardware .......................................................................................................................................................................... 9
Additional documentation................................................................................................................................................. 9
Unpacking the RedLab 1024LS........................................................................................................................10
Installing the software ......................................................................................................................................10
Installing the hardware .....................................................................................................................................10
Chapter 3
Functional Details ...............................................................................................................................12
External components ........................................................................................................................................12
USB connector.................................................................................................................................................................12
LED .................................................................................................................................................................................12
Screw terminal wiring......................................................................................................................................................13
Main connector and pin out .............................................................................................................................................14
Digital I/O terminals (Port A0 to A7, Port B0 to B7, Port C0 to C7)...............................................................................14
Power terminals ...............................................................................................................................................................15
Ground terminals .............................................................................................................................................................16
Counter terminal ..............................................................................................................................................................16
Chapter 4
Specifications......................................................................................................................................17
Digital input / output.........................................................................................................................................17
Counter .............................................................................................................................................................17
Power................................................................................................................................................................17
General .............................................................................................................................................................18
Environmental ..................................................................................................................................................18
Mechanical .......................................................................................................................................................18
Main connector and pin out..............................................................................................................................19
4
Page 5
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 1024LS so that you get the most out of its USB digital I/O features.
This user's guide also refers you to related documents available on our web site, and to technical support resources.
Conventions in this user's guide
For more information on …
Text presented in a box signifies additional information and helpful hints related to the subject matter you are reading.
Caution! Shaded caution statements present information to help you avoid injuring yourself and others,
damaging your hardware, or losing your data.
<#:#> Angle brackets that enclose numbers separated by a colon signify a range of numbers, such as those assigned
to registers, bit settings, etc.
bold text Bold text is used for the names of objects on the screen, such as buttons, text boxes, and check boxes. For
example:
1. Insert the disk or CD and click the OK button.
italic text Italic text is used for the names of manuals and help topic titles, and to emphasize a word or phrase. For
example: The InstaCal installation procedure is explained in the Quick Start Guide. Never touch the exposed pins or circuit connections on the board.
Where to find more information
The following electronic documents provide helpful information relevant to the operation of the RedLab 1024LS.
The Quick Start Guide is available on our RedLab CD in the root directory.
The Guide to Signal Connections is available on our RedLab CD under „ICalUL\Documents“.
The Universal Library User's Guide is available on our RedLab CD under „ICalUL\Documents“.
The Universal Library Function Reference is available on our RedLab CD under „ICalUL\Documents“.
The Universal Library for LabVIEW
„ICalUL\Documents“.
User’s Guide is available on our RedLab CD under
5
Page 6
Chapter 1
Introducing the RedLab 1024LS
This user's guide contains all of the information you need to connect the RedLab 1024LS measurement and automation device to your computer and to other data acquisition hardware.
The RedLab 1024LS is a USB 1.1 low-speed module supported under popular Microsoft 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.
The RedLab 1024LS features 24 bits of digital I/O and one 32-bit external event counter. The device is powered by the +5 volt USB supply. No external power is required.
An on-board industry standard 82C55 programmable peripheral interface chip provides the 24 discrete digital I/O lines in four ports. You can configure each digital port independently for either input or output.
The RedLab 1024LS USB device is shown in Figure 1. All I/O connections are made to the screw terminals located along each side of the RedLab 1024LS.
®
Windows® operating
Figure 1. RedLab 1024LS
6
Page 7
RedLab 1024LS User's Guide Introducing the RedLab 1024LS
A
RedLab 1024LS block diagram
RedLab 1024LS functions are illustrated in the block diagram shown here.
USB
Compliant
Interface
1.1
USB
Microcontroller
82C55 DIO
Port
8
Screw terminal I/O connector
Figure 2. RedLab 1024LS functional block diagram
Port
B
8
Port C HI
4
Port
C LO
-
32
4
Event Counter
1 channel
bit
1
Software features
For information on the features of InstaCal and the other software included with your RedLab 1024LS, refer to the Quick Start Guide that shipped with your device. The Quick Start Guide is also available in PDF on our RedLab CD (root directory).
7
Page 8
RedLab 1024LS User's Guide Introducing the RedLab 1024LS
Connecting a RedLab 1024LS to your computer is easy
Installing a data acquisition device has never been easier.
The RedLab 1024LS 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 1024LS. No third-party device driver is required.
The RedLab 1024LS is plug-and-play. There are no jumpers to position, DIP switches to set, or interrupts
to configure.
You can connect the RedLab 1024LS before or after you install the software, and without powering down
your computer first. When you connect an HID to your system, your computer automatically detects it and configures the necessary software. You can connect and power multiple HID peripherals to your system using a USB hub.
You can connect your system to various devices using a standard four-wire cable. The USB connector
replaces the serial and parallel port connectors with one standardized plug and port combination.
You do not need a separate power supply module. The USB automatically delivers the electrical power
required by each peripheral connected to your system.
Data can flow two ways between a computer and peripheral over USB connections.
.
8
Page 9
Installing the RedLab 1024LS
What comes with your RedLab 1024LS shipment?
The following items are shipped with the RedLab 1024LS:
Hardware
RedLab 1024LS
Chapter 2
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)). This booklet supplies a brief description of the software you received with your RedLab 1024LS and information regarding installation of that software. Please read this booklet completely before installing any software or hardware.
9
Page 10
RedLab 1024LS User's Guide Installing the RedLab 1024LS
Unpacking the RedLab 1024LS
As with any electronic device, you should take care while handling to avoid damage from static electricity. Before removing the RedLab 1024LS 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 1024LS is damaged, notify Measurement Computing Corporation immediately by phone, fax, or e-mail. For international customers, contact your local distributor where you purchased the RedLab 1024LS.
Phone: +49 (0) 89/8901660
Fax: +49 (0) 89/89016628
E-Mail: support@meilhaus.com
Installing the software
Refer to the Quick Start Guide for instructions on installing the software Guide (available on our RedLab CD (root directory).
Installing the hardware
Be sure you are using the latest system software
Before you connect the RedLab 1024LS, make sure that you are using the latest versions of the USB drivers.
Before installing the RedLab 1024LS, download and install the latest Microsoft Windows updates. In particular, when using Windows XP, make sure you have XP Hotfix KB822603 installed. This update is intended to address a serious error in Usbport.sys when you operate a USB device. You can run Windows Update or download the update from www.microsoft.com/downloads/details.aspx?familyid=733dd867-56a0-4956-b7fe-
e85b688b7f86&displaylang=en. For more information, refer to the Microsoft Knowledge Base article
"Availability of the Windows XP SP1 USB 1.1 and 2.0 update." This article is available at
support.microsoft.com/?kbid=822603.
To connect the RedLab 1024LS to your system, turn your computer on, and connect the USB cable to a USB port on your computer or to an external USB hub that is connected to your computer. The USB cable provides power and communication to the RedLab 1024LS.
When you connect the RedLab 1024LS for the first time, a XP) or dialog (other Windows version) displays as the RedLab 1024LS is detected by your computer.
Found New Hardware popup balloon (Windows
Another Found New Hardware balloon or dialog opens after the first closes that identifies the RedLab 1024LS as a USB Human Interface Device. This balloon or dialog indicates that your RedLab 1024LS is installed and ready to use.
When the balloon or dialog closes, the LED on the RedLab 1024LS should flash and then remain lit. This indicates that communication is established between the RedLab 1024LS and your computer.
Caution! Do not disconnect any device from the USB bus while the computer is communicating with the
RedLab 1024LS, or you may lose data and/or your ability to communicate with the RedLab 1024LS.
10
Page 11
RedLab 1024LS User's Guide Installing the RedLab 1024LS
If the LED turns off
If the LED is illuminated but then turns off, the computer has lost communication with the RedLab 1024LS. To restore communication, disconnect the USB cable from the computer, and then reconnect it. This action should restore communication, at which time the LED will turn on.
11
Page 12
Functional Details
External components
The RedLab 1024LS has the following external components, as shown in Figure 3.
USB connector
LED
Screw terminal banks (2)
Chapter 3
Screw terminal Pins 21 to 40
Figure 3. RedLab 1024LS external components
LED
Screw terminal Pins 1 to 20
USB Connector / cable
USB connector
The USB connector is on the right side of the RedLab 1024LS housing. This connector provides +5 V power and communication. The voltage supplied through the USB connector is system-dependent, and may be less than +5 V. No external power supply is required.
LED
The LED on the front of the housing indicates the communication status of the RedLab 1024LS. It uses up to 5 mA of current and cannot be disabled. The table below explains the function of the RedLab 1024LS LED.
LED Illumination
LED Illumination Indication
Steady green The RedLab 1024LS is connected to a computer or external USB hub.
Blinks continuously Data is being transferred.
Blinks three times Initial communication is established between the RedLab 1024LS and the computer.
12
Page 13
RedLab 1024LS User's Guide Functional Details
Screw terminal wiring
The RedLab 1024LS has two rows of screw terminals – one row on the top edge of the housing, and one row on the bottom edge. Each screw terminal bank provides 20 connections. Pin numbers are identified in Figure 4.
Pin 1 Pin 20
Pin 21 Pin 40
Figure 4. RedLab 1024LS screw terminal pin numbers
Screw terminal – pins 1-20
The screw terminals on the top edge of the RedLab 1024LS (pins 1 to 20) provide the following connections:
Eight digital I/O connections (
One counter connection (
Five ground connections (
Port C0 to Port C7)
CTR)
GND)
Screw terminal – pins 21-40
The screw terminals on the bottom edge of the RedLab 1024LS (pins 21 to 40) provide the following connections:
16 digital I/O connections (
One power connection (
Three ground connections (
Port A0 to Port A7, and Port B0 to Port B7)
PC+5 V)
GND)
13
Page 14
RedLab 1024LS User's Guide Functional Details
Main connector and pin out
Connector type Screw Terminal
Wire gauge range 16 AWG to 30 AWG
20 CTR
19 GND
18 n/c
17 GND
16 n/c
15 GND
14 n/c
13 n/c
12 GND
11 n/c
10 n/c
9GND
8Port C7
7Port C6
6Port C5
5Port C4
4Port C3
3Port C2
2Port C1
1Port C0
GND 40
Port B7 39
Port B6 38
Port B5 37
Port B4 36
GND 31
PC+5V 30
GND 29
Port B3 35
Port B2 34
Port B1 33
Port A7 28
Port B0 32
Port A6 27
Port A5 26
Port A4 25
Port A3 24
Port A2 23
Port A1 22
Port A0 21
Digital I/O terminals (Port A0 to A7, Port B0 to B7, Port C0 to C7)
Connect up to 24 digital I/O lines to the screw terminal containing pins 1 to 8 (Port C0 to Port C7), pins 21 to 28 (
Port A0 to Port A7), and pins 32 to 39, (Port B0 to Port B7). Refer to the pinout diagram above for the
location of these pins. You can configure each digital port for either input or output.
When configured for input, you can use the RedLab 1024LS digital I/O terminals to detect the state of any TTL level input. Refer to the switch shown in Figure 5 and the schematic shown in Figure 6. If the switch is set to the +5 V input, Port A0 reads TRUE (1). If you move the switch to GND, Port A0 reads FALSE.
Pin 40 GND
Pin 30
PC +5V
Pin 21 Port A0
Figure 5. Digital connection of Port A0 detecting the state of a switch
14
Page 15
RedLab 1024LS User's Guide Functional Details
Port A0
+5V+GND
Figure 6. 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 RedLab CD (root directory).
Power terminals
The PC +5 V connection (pin 30) is on the bottom screw terminal of the RedLab 1024LS. Refer to the pinout
diagram on page 14 for the location of this pin. This terminal draws power from the USB connector. The +5 V
screw terminal is a +5 volt output that is supplied by the computer.
Caution! The +5 V terminal is an output. Do not connect to an external power supply or you may damage
the RedLab 1024LS and possibly the computer.
The maximum total output current that can be drawn from all RedLab 1024LS connections (power and digital outputs) is 500 mA. This maximum applies to most personal computers and self-powered USB hubs. Bus-powered hubs and notebook computers may limit the maximum available output current to 100 mA.
Just connecting the RedLab 1024LS to your computer draws 18 mA of current from the USB +5 V supply. Once you start running applications with the RedLab 1024LS, each DIO bit can draw up to 2.5 mA. The maximum amount of +5V current available for external use, over and above that required by the RedLab 1024LS, is the difference between the total current requirement of the RedLab 1024LS (based on the application), and the allowed current draw of the PC platform (500 mA for desktop PCs and self-powered hubs, or 100 mA for bus-powered hubs and notebook computers).
With all outputs at their maximum output current, you can calculate the total current requirement of the RedLab 1024LS USB +5 V as follows:
(RedLab 1024LS @ 18 mA) + (24 DIO @ 2.5 mA ea) = 78 mA
For an application running on a PC or powered hub, this value yields a maximum user current of 500 mA−78 mA = 422 mA. This number is the total maximum available current at the PC+5V screw terminals. Measurement Computing highly recommends that you figure in a safety factor of 20% below this maximum current loading for your applications. A conservative, safe user maximum in this case would be 330 mA.
Since laptop computers typically allow up to 100 mA, the RedLab 1024LS in a fully-loaded configuration may be above that allowed by the computer. In this case, you must determine the per-pin loading in the application to ensure that the maximum loading criteria is met. The per-pin loading is calculated by simply dividing the +5 V by the load impedance of the pin in question.
15
Page 16
RedLab 1024LS User's Guide Functional Details
Ground terminals
The 8 ground (GND) connections are identical, and provide a common ground for all RedLab 1024LS functions. Refer to the pinout diagram on page 3-14 for the location of the GND terminal pins.
Counter terminal
Pin 20 (CTR) is the input to the 32-bit external event counter. Refer to the pinout diagram on page 14 for the location of this pin. The internal counter increments when the TTL levels transition from low to high. The counter can count frequencies of up to 1 MHz.
16
Page 17
Specifications
Typical for 25 °C unless otherwise specified.
Specifications in italic text are guaranteed by design.
Digital input / output
Table 1. Digital I/O specifications
Digital type 82C55
Number of I/O 24 (Port A0 through Port C7)
Configuration 2 banks of 8 and 2 banks of 4, or
3 banks of 8
Pull up/pull-down configuration
Input high voltage 2.0 V min, 5.5 V absolute max
Input low voltage 0.8 V max, –0.5 V absolute min
Output high voltage (IOH = -2.5 mA) 3.0 V min
Output low voltage (IOH = -2.5 mA) 0.4 V max
Power up / reset state Input mode
All pins pulled up to Vs via 47K resistors (default). Selection available for pull down to ground. Hardware selectable via zero ohm resistor.
Chapter 4
Counter
Table 2. Counter specifications
Counter type Event counter
Number of channels 1
Input source CTR screw terminal
Input type TTL, rising edge triggered
Resolution 32 bits
Schmidt trigger hysteresis 20 mV to 100 mV
Input leakage current ±1 µA
Maximum input frequency 1 MHz
High pulse width 500 ns min
Low pulse width 500 ns min
Input low voltage 0 V min, 1.0 V max
Input high voltage 4.0 V min, 15.0 V max
Power
Table 3. Power specifications
Parameter Conditions Specification
Supply current (Note 1) 20 mA typ, 40 mA max
Connected to Self-Powered Hub 4.5 V min, 5.25 V max +5V USB power available (Note 2)
Connected to Bus-Powered Hub 4.1 V min, 5.25 V max
Connected to Self-Powered Hub 460 mA max Output Current (Note 3)
Connected to Bus-Powered Hub 60 mA max
Note 1: This is the total current requirement for the RedLab 1024LS which includes up to 5mA for the status
LED.
17
Page 18
RedLab 1024LS User's Guide Specifications
Note 2: Self-powered refers to USB hubs and hosts with a power supply. Bus-powered refers to USB hubs and
hosts without their own power supply.
Note 3: This refers to the total amount of current that can be sourced from the USB +5V and digital outputs.
General
Table 4. General specifications
Parameter Conditions Specification
25 °C ±30 ppm max USB controller clock error
0 to 70 °C ±50 ppm max
Device type USB 1.1 low-speed
Device compatibility USB 1.1, USB 2.0
Environmental
Table 5. Environmental specifications
Operating temperature range -0 to 70 °C Storage temperature range -40 to 70 °C Humidity 0 to 90% non-condensing
Mechanical
Table 6. Mechanical specifications
Dimensions 79 mm (L) x 82 mm (W) x 25 mm (H)
USB cable length 3 meters max
User connection length 3 meters max
18
Page 19
RedLab 1024LS User's Guide Specifications
Main connector and pin out
Table 7. Connector specifications
Connector type Screw terminal
Wire gauge range 30-16 AWG
Table 8. Connector pin out
Pin Signal Name Pin Signal Name
1 Port C0 21 Port A0 2 Port C1 22 Port A1 3 Port C2 23 Port A2 4 Port C3 24 Port A3 5 Port C4 25 Port A4 6 Port C5 26 Port A5 7 Port C6 27 Port A6 8 Port C7 28 Port A7 9 GND 29 GND 10 n/c 30 PC+5V 11 n/c 31 GND 12 GND 32 Port B0 13 n/c 33 Port B1 14 n/c 34 Port B2 15 GND 35 Port B3 16 n/c 36 Port B4 17 GND 37 Port B5 18 n/c 38 Port B6 19 GND 39 Port B7 20 CTR 40 GND
19
Page 20
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.com
Loading...