background image

DM5210 analog input module                                          5-5                             RTD Embedded Technologies, Inc.

Data Values for Calibrating Unipolar Range (0 to +10 volts)

Offset (TR4)

Input Voltage = +1.22070 mV

Converter Gain (TR1)

Input Voltage = +9.99634 V

A/D Converted Data

0000   0000   0000
0000   0000   0001

1111   1111   1110
1111   1111   1111

Bipolar Calibration

Two adjustments are made to calibrate the A/D converter for the bipolar ranges of ±5 and ±10 volts. One is the

offset adjustment, and the other is the full scale, or gain, adjustment. Trimpot TR2 is used to make the offset adjust-
ment, and trimpot TR1 is used for gain adjustment. These adjustments are made with the module set for a range of -5
to +5 volts. Before making these adjustments, make sure that the jumpers on P5 and P6 are set for this range.

Use analog input channel 1 (gain = 1) while calibrating the module. Connect your precision voltage source to

channel 1. Set the voltage source to -4.99878 volts, start a conversion, and read the resulting data. Adjust trimpot
TR2 until it flickers between the values listed in the table below. Next, set the voltage to +4.99634 volts, and repeat
the procedure, this time adjusting TR1 until the data flickers between the values in the table.

Data Values for Calibrating Bipolar Ranges (Using -5 to +5 volts)

Offset (TR2)

Input Voltage = -4.99878V

Converter Gain (TR1)

Input Voltage = +4.99634V

A/D Converted Data

0000   0000   0000
0000   0000   0001

1111   1111   1110
1111   1111   1111

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Summary of Contents for DM210

Page 1: ...rutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing Rentals Demos In sto...

Page 2: ...M5210 User s Manual Real Time Devices RTD Embedded Technologies Inc Accessing the Analog World BDM 610010022 Rev A Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisan...

Page 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 4: ...INC 103 Innovation Blvd State College PA 16803 0906 Phone 1 814 234 8087 FAX 1 814 234 5218 E mail sales rtd com techsupport rtd com web site http www rtd com Artisan Technology Group Quality Instrum...

Page 5: ...ule 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 I...

Page 6: ...rrupt Source Factory Setting OT2 6 P8 8255 Port B Bits 4 7 Pads Factory Setting No Connections 6 S1 Base Address Factory Setting 300 hex 768 decimal 7 Pull up Pull down Resistors on Digital I O Lines...

Page 7: ...nes 4 12 8259 Programmable Interrupt Controller 4 13 Interrupt Mask Register IMR 4 13 End of Interrupt EOI Command 4 13 What Exactly Happens When an Interrupt Occurs 4 13 Using Interrupts in Your Prog...

Page 8: ...1 10 Pull up Pull down Resistors for the 8255 1 8 1 11 Adding Pull ups and Pull downs to Digital I O Lines 1 9 1 12 Gain Circuitry and Formulas for Calculating Gx and f 1 10 1 13 Diagram for Removal o...

Page 9: ...iv Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 10: ...DM5210 analog input module i 1 RTD Embedded Technologies Inc INTRODUCTION Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 11: ...DM5210 analog input module i 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 12: ...mple and hold amplifier preceding it make sure that dynamic input voltages are accurately digitized The resolution of a 12 bit conversion is 2 4414 millivolts and the maximum throughput is 40 000 samp...

Page 13: ...signal access and prototype development the DM14 extender board for testing your module in a conventional desktop computer and XP50 flat ribbon cable assembly for external interfacing Optional Config...

Page 14: ...ou install the module in your system By installing resistor packs and soldering jumpers in the de sired locations in the associated pads as described near the end of the chapter you can configure 16 o...

Page 15: ...DM5210 analog input module 1 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 16: ...ed Factory Settings Jumpers Installed P3 Selects the active interrupt channel pulls tri state buffer to ground G for multiple interrupt applications Interrupt channels disabled jumper installed on G g...

Page 17: ...tor the interrupt status through bit 1 in the status word I O address location BA 10 After the interrupt has been serviced the reset command returns the IRQ line low disabling the tri state buffer and...

Page 18: ...select the clock sources for the 8254 timer counters TC0 TC1 and TC2 The factory setting cascades all three timer counters with the clock source for TC0 being the on board 8 MHz oscillator the output...

Page 19: ...ry Setting 5V Fig 1 6b Inputs Connected for 10V Fig 1 6c Inputs Connected for 0 to 10V P7 Interrupt Source Factory Setting OT2 This header connector shown in Figure 1 7 lets you select any one of thre...

Page 20: ...hrough 5 before setting them When the switches are pulled forward they are OPEN or set to logic 1 as labeled on the DIP switch package When you set the base address for your module record the value in...

Page 21: ...ines to operate erratically By pulling these lines down when the data acquisition system is first turned on the motors will not switch on before the 8255 is initialized To use the pull up pull down fe...

Page 22: ...The resistors and trimpot combine to set the gain as shown in the formula in Fig ure 1 12 Capacitor C21 is provided so that you can add low pass filtering in the gain circuit If your input signal is...

Page 23: ...1 R2 TR3 3 2 1 TR3 R2 R1 U8 C21 Remove solder short see Figure 1 13 Fig 1 12 Gain Circuitry and Formulas for Calculating Gx and f U16 Remove Solder Short from U11 on Bottom Side of Module Fig 1 13 Dia...

Page 24: ...chapter tells you step by step how to install and connect the module After you have installed the module and made all of your connections you can turn your system on and run the 5210DIAG diagnostics p...

Page 25: ...DM5210 analog input module 2 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 26: ...lding the module by its edges orient it so that the P1 bus connector s pin 1 lines up with pin 1 of the expansion connector onto which you are installing the module 5 After carefully positioning the m...

Page 27: ...ur results Connect the high side of the analog input to one of the analog input channels AIN1 through AIN16 and connect the low side to the corresponding dedicated ANALOG GND for the selected channel...

Page 28: ...s Inc I O CONNECTOR P2 PIN 22 SIGNAL SOURCE 1 OUT PIN 1 SIGNAL SOURCE 15 OUT PIN 14 AIN 1 AIN 15 AIN 16 PIN 16 MUX OUT OUT GND GND Fig 2 2 Analog Input Connections Artisan Technology Group Quality Ins...

Page 29: ...DM5210 analog input module 2 6 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 30: ...he features of the 210 5210 hardware The major circuits are the A D the 8254 timer counters and the programmable peripheral interface which provides the digital I O lines Module interrupts are also de...

Page 31: ...DM5210 analog input module 3 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 32: ...are available on the 210 5210 The analog input range is jumper selectable for 5 to 5 volts 10 to 10 volts or 0 to 10 volts with 35 Vdc overvoltage protection The channels are connected to a sample and...

Page 33: ...d Port C Upper 4 lines Group B Port B 8 lines and Port C Lower 4 lines Sixteen lines Port A Port C Lower and Port C Upper are brought out to the I O connector Four of Port B s lines are used to contro...

Page 34: ...a detailed description of programming operations and operating modes and flow diagrams to aid you in programming The example programs included on the disk in your module package are listed at the end...

Page 35: ...DM5210 analog input module 4 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 36: ...ning the I O Map The I O map for the 210 5210 is shown in Table 4 1 below As shown the module occupies 12 consecutive I O port locations The base address designated as BA can be selected using DIP swi...

Page 37: ...the module and an external device A read transfers data from the external device through P2 and into PPI Port C a write transfers the written data from Port C through P2 to an external device BA 3 825...

Page 38: ...Output Output Output Input 1 0 0 0 0 0 0 1 129 81 Output Output Input Output 1 0 0 0 0 0 1 0 130 82 Output Output Input Input 1 0 0 0 0 0 1 1 131 83 Output Input Output Output 1 0 0 0 1 0 0 0 136 88...

Page 39: ...with a new value Counting begins as soon as the count is loaded BA 6 8254 Timer Counter 2 Read Write A read shows the count in the counter and a write loads the counter with a new value Counting begi...

Page 40: ...D0 Bit 3 Bit 2 Bit 1 Bit 0 X X X X LSB BA 10 Read Status Clear IRQ Read Write A read provides the two status bits defined below The end of convert bit goes high when a conversion is complete The IRQ...

Page 41: ...ite the I O ports on the 210 5210 you must be able to perform a variety of operations that you might not normally use in your programming The table below shows you some of the operators discussed in t...

Page 42: ...all the bits in the range then setting only those bits that must be set using the method shown above for setting multiple bits in a port The following example shows how this two step operation is done...

Page 43: ...a Channel To select a conversion channel you must assign values to bits 0 through 3 in the PPI Port B port at BA 1 The bit structure diagram above shows you the four bit instruction for each of the 16...

Page 44: ...e right The MSB must also be weighted correctly result msb 16 lsb 16 For a 12 bit conversion the A D data read is left justified in a 16 bit word with the least significant four bits equal to zero Bec...

Page 45: ...errupts on the same computer the PC bus has eight different interrupt request IRQ lines A transition from low to high on one of these lines generates an interrupt request which is handled by the PC s...

Page 46: ...ts are enabled for that IRQ and then checks to see if other interrupts are active or requested and determines which interrupt has priority The interrupt controller then interrupts the processor The cu...

Page 47: ...functions are not written to support it This is a complex concept and you do not need to understand it Just make sure that you do not call any DOS functions from within your ISR The one wrinkle is tha...

Page 48: ...rite the new value to I O port 21H With the startup IMR saved and the interrupts on your IRQ temporarily disabled you can assign the interrupt vector to point to your ISR Again you can overwrite the a...

Page 49: ...imer counters can be cascaded by connecting TC0 s output to TC1 s clock input and TC1 s output to TC2 s clock input The diagram shows how these clock sources are connected to the timer counters An ext...

Page 50: ...r of the count The timer counter reloads and the output goes high again This process repeats indefinitely Mode 4 Software Triggered Strobe The output is initially high When the initial count expires t...

Page 51: ...ddresses 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 demonst...

Page 52: ...you change the channel by writing a new value to the bottom four bits in the PPI Port B register BA 1 Changing this value before each Start Convert command is issued lets you take the next reading fr...

Page 53: ...is started ensures that enough time is allowed for the new channel to settle before the next conversion is started regardless of your PC type Except for the initial delay between the starting channel...

Page 54: ...you how to calibrate the 210 5210 using the 5210DIAG calibration program included in the example software package and the three trimpots on the module These trimpots calibrate the A D converter gain a...

Page 55: ...DM5210 analog input module 5 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 56: ...led in your system You can access the trimpots at the edge of the module Power up the system and let the board circuitry stabilize for 15 minutes before you start calibrating Required Equipment The fo...

Page 57: ...s range Use analog input channel 1 gain 1 while calibrating the module Connect your precision voltage source to channel 1 Set the voltage source to 1 22070 millivolts start a conversion and read the r...

Page 58: ...volts Before making these adjustments make sure that the jumpers on P5 and P6 are set for this range Use analog input channel 1 gain 1 while calibrating the module Connect your precision voltage sourc...

Page 59: ...DM5210 analog input module 5 6 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 60: ...DM5210 analog input module A 1 RTD Embedded Technologies Inc APPENDIX A DM210 DM5210 SPECIFICATIONS Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 61: ...DM5210 analog input module A 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 62: ...t Isource 100 A max Low level output current Isink 1 7 mA max Darlington drive current I DAR 1 0 mA min 5 0 mA max Available on any 8 pins from port B and port C Input load current 10 A Input capacita...

Page 63: ...pin right angle header Environmental Operating temperature 0 to 70 C Storage temperature 40 to 85 C Humidity 0 to 90 non condensing Size 3 55 L x 3 775 W x 0 6 H 90mm x 96mm x 15mm Artisan Technology...

Page 64: ...DM5210 analog input module B 1 RTD Embedded Technologies Inc APPENDIX B P2 CONNECTOR PIN ASSIGNMENTS Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 65: ...DM5210 analog input module B 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 66: ...5 6 3 4 1 2 49 50 47 48 45 46 43 44 41 42 AIN9 AIN10 AIN11 AIN12 AIN13 AIN14 AIN15 AIN16 ANALOG GND ANALOG GND ANALOG GND PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0 T C OUT 0 T C OUT 1 T C OUT 2 EXT GATE 2 5 VO...

Page 67: ...DM5210 analog input module B 4 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 68: ...DM5210 analog input module C 1 RTD Embedded Technologies Inc APPENDIX C COMPONENT DATA SHEETS Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 69: ...DM5210 analog input module C 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 70: ...analog input module C 3 RTD Embedded Technologies Inc Intel 82C54 Programmable Interval Timer Data Sheet Reprint Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisant...

Page 71: ...DM5210 analog input module C 4 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 72: ...alog input module C 5 RTD Embedded Technologies Inc Intel 82C55A Programmable Peripheral Interface Data Sheet Reprint Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www arti...

Page 73: ...DM5210 analog input module C 6 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 74: ...ist the name of a contact person familiar with technical details of the problem or situation along with their phone and fax numbers address and e mail address if available List your shipping address I...

Page 75: ...DM5210 analog input module D 2 RTD Embedded Technologies Inc Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Page 76: ...es OR AS A RESULT OF SERVICE OR MODIFICATION BY ANYONE OTHER THAN RTD Embedded Technologies EXCEPT AS EXPRESSLY SET FORTH ABOVE NO OTHER WAR RANTIES ARE EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED...

Page 77: ...4 RTD Embedded Technologies Inc RTD Embedded Technologies Inc 103 Innovation Blvd State College PA 16803 0906 USA Our website www rtd com Artisan Technology Group Quality Instrumentation Guaranteed 88...

Page 78: ...2 5 M D 0 1 2 M D s s e r d d A O I e s a B x e h l a m i c e d d e t c e l e S l e n n a h C e c r u o S Q R I 7 P e c r u o S 3 P l e n n a h C Q R I Artisan Technology Group Quality Instrumentation...

Page 79: ...uipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentat...

Reviews: