rtd DM6210 User manual

Revision History
Rev. A New manual naming method
Published by:
RTD Embedded Technologies, Inc.
103 Innovation Blvd.
StateCollege,PA 16803-0906
Copyright1999,2002,2003byRTDEmbeddedTechnologies,Inc.
All rights reserved
PrintedinU.S.A.
The RTD Logo is a registered trademark of RTD Embedded Technologies. cpuModule and utilityModule are trademarks
of RTD Embedded Technologies. PhoenixPICO and PheonixPICO BIOS are trademarks of Phoenix Technologies Ltd. PS/
2, PC/XT, PC/AT and IBM are trademarks of International Business Machines Inc. MS-DOS, Windows, Windows 95,
Windows 98 and Windows NT are trademarks of Microsoft Corp. PC/104 is a registered trademark of PC/104 Consortium.
All other trademarks appearing in this document are the property of their respective owners.

Table of Contents
i
INTRODUCTION .................................................................................................................................... i-1
Analog-to-Digital Conversion..............................................................................................................................i-3
8254 Timer/Counter ..............................................................................................................................................i-3
Digital I/O...............................................................................................................................................................i-3
What Comes With Your Module ..........................................................................................................................i-3
Module Accessories ..............................................................................................................................................i-4
Hardware Accessories.......................................................................................................................................i-4
Optional Configurations .......................................................................................................................................i-4
Using This Manual ................................................................................................................................................i-4
When You Need Help............................................................................................................................................i-4
CHAPTER 1 MODULE SETTINGS ............................................................................................... 1-1
Factory-Configured Switch and Jumper Settings ..............................................................................................1-3
JP1 8254 Timer/Counter Clock Sources (Factory Settings: CLK0-OSC, CLK1-OT0, CLK2-OT1) ....1-4
P5 Analog Input Voltage Range (Factory Setting: 10V) ........................................................................1-5
P6 Analog Input Voltage Polarity (Factory Setting: BIP (Bipolar)) ......................................................1-5
S1 Base Address (Factory Setting: 300 hex (768 decimal)) ....................................................................1-6
JS3, JS4, JS5 and JS6, Pull-up/Pull-down Resistors on Digital I/O Lines .......................................................1-7
Gx, Resistor Configurable Gain ..........................................................................................................................1-8
CHAPTER 2 MODULE INSTALLATION ..................................................................................... 2-1
Module Installation ..............................................................................................................................................2-3
External I/O Connections.....................................................................................................................................2-4
Connecting the Analog Inputs ........................................................................................................................2-4
Connecting the Timer/Counters and Digital I/O............................................................................................2-4
Running the 6210DIAG Diagnostics Program ...................................................................................................2-4
CHAPTER 3 HARDWARE DESCRIPTION .................................................................................. 3-1
A/D Conversion Circuitry ....................................................................................................................................3-3
Analog Inputs ...................................................................................................................................................3-3
A/D Converter ..................................................................................................................................................3-3
Timer/Counters .....................................................................................................................................................3-4
Digital I/O..............................................................................................................................................................3-4
Interrupts ...............................................................................................................................................................3-4
CHAPTER 4 MODULE OPERATION AND PROGRAMMING ................................................. 4-1
Defining the I/O Map ...........................................................................................................................................4-3
BA + 0: Read A/D Data / Start Convert (Read/Write 16-bit) .......................................................................4-3
BA + 1: Reserved ............................................................................................................................................4-3
BA + 2: Read Board ID LSB (Read Only 8-bit) ............................................................................................4-3
BA + 3: Read Board ID MSB (Read Only 8-bit) ...........................................................................................4-3
BA + 4: Channel Select (Read/Write 8-bit) ..................................................................................................4-3
BA + 5: IRQ Select (Read/Write 8-bit) ..........................................................................................................4-4
BA + 6: Read Status / Clear IRQ (Read/Write 8-bit) ....................................................................................4-4
BA + 7: Reserved ............................................................................................................................................4-6
BA + 8: 8254 Timer/Counter 0 (Read/Write 8-bit) ......................................................................................4-6
BA + 9: 8254 Timer/Counter 1 (Read/Write 8-bit) ......................................................................................4-6

ii
BA + 10: 8254 Timer/Counter 2 (Read/Write 8-bit) ....................................................................................4-6
BA + 11: 8254 Control Word (Write Only 8-bit) .........................................................................................4-6
BA + 12: Digital I/O Port 0 (Read/Write 8-bit) ............................................................................................4-7
BA + 13: Digital I/O Port 1 (Read/Write 8-bit) ............................................................................................4-7
BA + 14: Digital I/O Strobe Select (Read/Write 8-bit) ................................................................................4-7
BA + 15: Digital I/O Control (Read/Write 8-bit) ..........................................................................................4-8
Programming the DM6210 ..................................................................................................................................4-9
Clearing and Setting Bits in a Port ..................................................................................................................4-9
CHAPTER 5 A/D CONVERSIONS ................................................................................................. 5-1
Selecting a Channel..........................................................................................................................................5-3
Starting an A/D Conversion ............................................................................................................................5-3
Monitoring Conversion Status ........................................................................................................................5-3
Reading the Converted Data ...........................................................................................................................5-4
Channel Scanning ............................................................................................................................................5-5
CHAPTER 6 INTERRUPTS ............................................................................................................ 6-1
Software Selectable Interrupt Sources ...........................................................................................................6-3
Software Selectable Interrupt Channel ...........................................................................................................6-3
Basic Programming For Interrupt Handling ..................................................................................................6-4
What Is an Interrupt? ...................................................................................................................................6-4
Interrupt Request Lines ...............................................................................................................................6-4
8259 Programmable Interrupt Controller ..................................................................................................6-4
Interrupt Mask Register (IMR) ...................................................................................................................6-4
End-of-Interrupt (EOI) Command ..............................................................................................................6-5
What Exactly Happens When an Interrupt Occurs? .................................................................................6-5
Using Interrupts in Your Programs ............................................................................................................6-5
Writing an Interrupt Service Routine (ISR) ...............................................................................................6-5
Saving the Startup Interrupt Mask Register (IMR) and Interrupt Vector ...............................................6-6
Restoring the Startup IMR and Interrupt Vector .......................................................................................6-7
Common Interrupt Mistakes .......................................................................................................................6-7
CHAPTER 7 TIMER / COUNTERS ............................................................................................... 7-1
CHAPTER 8 DIGITAL I/O .............................................................................................................. 8-1
BA + 12: Digital I/O Port 0 (Read/Write 8-bit) .................................................................................................8-3
BA + 13: Digital I/O Port 1 (Read/Write 8-bit) .................................................................................................8-3
BA + 14: Digital I/O Strobe Select (Read/Write 8-bit).....................................................................................8-3
BA + 15: Digital I/O Control (Read/Write 8-bit) ..............................................................................................8-4
Strobing Data into Port 0 or Port 1 ......................................................................................................................8-4
CHAPTER 9 EXAMPLE PROGRAMS .......................................................................................... 9-1
C Programs ............................................................................................................................................................9-3
Quick Basic Programs ..........................................................................................................................................9-3
CHAPTER 10 CALIBRATION ...................................................................................................... 10-1
Required Equipment .......................................................................................................................................... 10-3
A/D Calibration .................................................................................................................................................. 10-4
Unipolar Calibration ..................................................................................................................................... 10-5
Bipolar Calibration........................................................................................................................................ 10-5

APPENDIX A DM6210 SPECIFICATIONS ................................................................................... A-1
APPENDIX B CN3 CONNECTOR PIN ASSIGNMENTS ............................................................ B-1
APPENDIX C COMPONENT DATA SHEETS ............................................................................. C-1
APPENDIX D WARRANTY ............................................................................................................ D-1

iii
List of Illustrations
1-1 Module Layout Showing Factory-Configured Settings .......................................................................1-3
1-2 8254 Timer/Counter Clock Source Jumpers, JP1 .................................................................................1-4
1-3 8254 Timer/Counter Circuit Block Diagram ........................................................................................1-4
1-4 Analog Input Voltage Range and Polarity, P5 and P6 .........................................................................1-5
1-5 Base Address Switch, S1 ........................................................................................................................1-6
1-6 Pull-up/Pull-down Resistors for the Digital I/O ...................................................................................1-7
1-7 Gain Circuitry and Formulas for Calculating Gx and f .......................................................................1-9
1-8 Diagram for Removal of Solder Short ...................................................................................................1-9
2-1 CN3 I/O Connector Pin Assignments ....................................................................................................2-4
2-2 Analog Input Connections ..................................................................................................................... 2-5
3-1 DM6210 Block Diagram ........................................................................................................................3-3
7-1 Uset TC Circuitry ....................................................................................................................................7-3
10-1 Module Layout ..................................................................................................................................... 10-3
Other rtd Computer Hardware manuals

rtd
rtd FPGA35S6045HR User manual

rtd
rtd CMV6586DX133 User manual

rtd
rtd cpuModule CME37786HX User manual

rtd
rtd CMX58886CX User manual

rtd
rtd CMX34KB User manual

rtd
rtd cpuModule CMX47786HX User manual

rtd
rtd BDM-610000049 User manual

rtd
rtd DM5816 User manual

rtd
rtd CAN SPIDER User manual

rtd
rtd cpuModule CMi36786HX User manual
Popular Computer Hardware manuals by other brands

EMC2
EMC2 VNX Series Hardware Information Guide

Panasonic
Panasonic DV0PM20105 Operation manual

Mitsubishi Electric
Mitsubishi Electric Q81BD-J61BT11 user manual

Gigabyte
Gigabyte B660M DS3H AX DDR4 user manual

Raidon
Raidon iT2300 Quick installation guide

National Instruments
National Instruments PXI-8186 user manual
























