background image

5-5

A/D Converter Bit Weights

A/D Bit Weight

Ideal Input Voltage (millivolts)

-5 to +5 Volts

-10 to +10 Volts

0 to +10 Volts

4095 (full-scale)

+4997.56

+9995.12

+9997.56

2048

  0000.00

0000.00

+5000.00

1024

-2500.00

-5000.00

+2500.00

512

-3750.00

-7500.00

+1250.00

256

-4375.00

-8750.00

    +625.00

128

-4687.50

-9375.00

    +312.50

64

-4843.75

-9687.50

    +156.25

32

-4921.88

-9843.75

      +78.13

16

-4960.94

-9921.88

      +39.06

8

-4980.47

-9960.94

      +19.53

4

-4990.23

-9980.47

        +9.77

2

-4995.12

-9990.23

        +4.88

1

-4997.56

-9995.12

        +2.44

0

-5000.00

-10000.00

          0.00

• Channel Scanning

If you want to sample a sequence of channels, you can set up the DM6210 for channel scanning. The

main concern when you scan channels is that you allow enough settling time between the selection of the

channel and the start of the A/D conversion. After making your initial channel selection, you must allow for

enough of a delay in your program for the selected channel to settle before starting the first A/D conversion.

As soon as the first conversion is started, you can then immediately select your next channel in the sequence.

Once the conversion is started, the signal on the sampled channel has been “locked in”, and you do not have

to wait for an end-of-convert transition before programming the next channel. Selecting the next channel as

soon as the conversion of the previous channel 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 selection and first conversion, you do not have to be concerned with building

delays into your program and the accuracy of the conversions when following this program structure. Note

that the data you read will always be the data from the previously selected channel, not the data from the

currently selected channel.

           

Содержание DM6210

Страница 1: ...DM6210 User s Manual BDM 610010009 Rev A Real Time Devices RTDEmbeddedTechnologies Inc Accessing the Analog World...

Страница 2: ......

Страница 3: ...DM6210 User s Manual RTDEmbeddedTechnologies INC 103InnovationBlvd StateCollege PA16803 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...

Страница 4: ...ded 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 tradem...

Страница 5: ...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...

Страница 6: ...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 Interrup...

Страница 7: ...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...

Страница 8: ...g 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...

Страница 9: ...i 1 INTRODUCTION...

Страница 10: ...i 2...

Страница 11: ...n is 2 4414 millivolts on the 5 to 5 volt range and the maximum throughput is 40 000 samples per second The converted data is read and or transferred to PC memory one byte at a time through the PC dat...

Страница 12: ...r configurations of the DM6210 are available such as vertical connectors on some or all I O connec tors or a non stackthrough bus connector If you need an optional configuration for your requirements...

Страница 13: ...asy to follow instructions before you install the module in your system By soldering jumpers in the desired locations in the associated pads as described near the end of the chapter you can configure...

Страница 14: ...1 2...

Страница 15: ...gs Switch Jumper Function Controlled Factory Settings Jumpers Installed JP1 Sets the clock sources for the 8254 timer counters TC0 TC2 Jumpers installed on CLK0 OSC CLK1 OT0 CLK2 OT1 cascaded P5 Sets...

Страница 16: ...of the sources to an external clock input through the CN3 I O connector or you can set TC1 and TC2 to be clocked by the 8 MHz oscillator Figure 1 3 shows a block diagram of the timer counter circuitr...

Страница 17: ...range Note that when you place a jumper across 20V you must place the jumper on P6 across the BIP pins bipolar range of 10 to 10 volts The UNI setting on P6 cannot be used with 20V P6 Analog Input Vol...

Страница 18: ...on the switch 1 through 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 re...

Страница 19: ...the module and a solder connection must be made on the bottom of the board to configure their operation The solder connections are made at JS3 for Port 0 low JS4 for Port 0 high JS5 for Port 1 low and...

Страница 20: ...he formula in Figure 1 7 Capacitor C31 is provided so that you can add low pass filtering in the gain circuit If your input signal is a slowly changing one and you do not need to measure it at a highe...

Страница 21: ...R15 1 To calculate frequency f 1 2pC31 R14 TR3 Fig 1 7 Gain Circuitry and Formulas for Calculating Gx and f Fig 1 8 Diagram for Removal of Solder Short Remove Solder Short from JS2 on Bottom Side of M...

Страница 22: ...1 10...

Страница 23: ...sed system This 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 6210DI...

Страница 24: ...2 2...

Страница 25: ...harge any static buildup and then remove the module from its antistatic bag 3 Use the appropriate standoffs for your application to secure the module when you install it in your system 4 Holding the m...

Страница 26: ...external signal source or destination device is connected to the appropriate signal pin on the I O connector and the low side is connected to any DIGITAL GND Running the 6210DIAG Diagnostics Program N...

Страница 27: ...2 5 Fig 2 2 Analog Input Connections I O CONNECTOR CN3 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...

Страница 28: ...2 6...

Страница 29: ...HARDWARE DESCRIPTION This chapter describes the features of the DM6210 hardware The major circuits are the A D the 8254 timer counters and the digital I O lines Module interrupts are also described in...

Страница 30: ...3 2...

Страница 31: ...Chapter 4 The S H amplifier captures and holds the input signal at a constant level while the conversion is per formed ensuring that dynamic analog signals are accurately digitized This capacitive cir...

Страница 32: ...L CMOS compatible digital I O lines which can be directly interfaced with external devices or signals to sense switch closures trigger digital events or activate solid state relays The lines can be pr...

Страница 33: ...4 1 CHAPTER 4 I O MAPPING This chapter provides a complete description of the I O map for the DM6210 general programming information and how to set and clear bits in a port...

Страница 34: ...4 2...

Страница 35: ...BA 2 Board ID MSB Read Board ID MSB Reserved BA 3 Channel Register Read current channel Write current channel BA 4 IRQ Register Read IRQ settings Write IRQ settings BA 5 Read Status Clear IRQ Read sta...

Страница 36: ...oftware trigger The data written is irrelevant BA 1 Reserved BA 2 Read Board ID LSB Read Only 8 bit A read at this address returns the LSB of the board ID register The value returned should be hex 10...

Страница 37: ...Reserved Bit 6 Reserved Bit 7 Reserved IRQ Status 0 no interrupt 1 interrupt P0 Latch Status 0 Data is not latched 1 Data is latched P1 Latch Status 0 Data is not latched 1 Data is latched End of Con...

Страница 38: ...54 TC Counter 2 A read shows the count in the counter and a write loads the counter with a new value Counting begins as soon as the count is loaded BA 11 8254 Control Word Write Only 8 bit This addres...

Страница 39: ...e and external devices The bits are programmed as input or output in groups of 4 P1 0 P1 3 and P1 4 P1 7 by writing to the Direction Register at BA 15 For all bits set as inputs a read reads the input...

Страница 40: ...of the strobe signal selected at BA 14 Bit 5 Enables latch mode for the Port 1 input lines When this mode is enabled data can be strobed and latched into Port 1 on either the rising edge or the falli...

Страница 41: ...es Port for 8 bit port operations and PortW for 16 bits Turbo C uses inportb for an 8 bit read of a port and inport for a 16 bit read Be sure to use the correct operation for each register on the DM62...

Страница 42: ...et or clear each bit individually or use a faster method of first clearing all the bits in the range then setting only those bits that must be set using the method shown above for setting multiple bit...

Страница 43: ...5 1 CHAPTER 5 A D CONVERSIONS This chapter shows you how to program your DM6210 to perform A D conversions and read the results...

Страница 44: ...5 2...

Страница 45: ...rsion Status The A D conversion status can be monitored through the end of convert EOC signal bit 0 at BA 6 This signal is low when a conversion is in progress and goes high when the conversion is com...

Страница 46: ...gain you have installed in the resistor configurable gain The formulas for calculating voltage are shown below 5 volt range A D Value 2048 bits 10 volts 4096 bits input volts For example if the A D r...

Страница 47: ...t allow for enough of a delay in your program for the selected channel to settle before starting the first A D conversion As soon as the first conversion is started you can then immediately select you...

Страница 48: ...5 6...

Страница 49: ...6 1 CHAPTER 6 INTERRUPTS This chapter explains software selectable interrupts and basic interrupt programming techniques...

Страница 50: ...6 2...

Страница 51: ...External Clock 2 an interrupt is generated when the external clock 2 CN3 45 line is pulsed P0 Latch Status an interrupt is generated when data has been latched into Port 0 P1 Latch Status an interrup...

Страница 52: ...ntrollers check to see if interrupts are to be acknowledged from that IRQ and if another interrupt is already in progress they decide if the new request should supersede the one in progress or if it h...

Страница 53: ...tically be executed each time an interrupt request occurs on the specified IRQ An ISR is different than standard routines that you write First on entrance the processor registers should be pushed onto...

Страница 54: ...0H to port 20H and port A0H if you are using IRQ8 IRQ15 Pop all registers pushed on entrance Most C and Pascal interrupt routines automatically do this for you The following C and Pascal examples show...

Страница 55: ...mber that vectors 8 15 are for IRQ0 IRQ7 and vectors 70H 77H are for IRQ8 IRQ15 If you need to program the source of your interrupts do that next For example if you are using the program mable interva...

Страница 56: ...6 8...

Страница 57: ...7 1 CHAPTER 7 TIMER COUNTERS This chapter explains the 8254 timer counter circuits on the DM6210...

Страница 58: ...7 2...

Страница 59: ...oes high The output stays high until a new Mode 0 control word is written to the timer counter Mode 1 Hardware Retriggerable One Shot The output is initially high and goes low on the clock pulse follo...

Страница 60: ...he output goes high again This process repeats indefinitely Mode 4 Software Triggered Strobe The output is initially high When the initial count expires the output goes low for one clock pulse and the...

Страница 61: ...8 1 CHAPTER 8 DIGITAL I O This chapter explains the digital I O circuitry on the DM6210...

Страница 62: ...8 2...

Страница 63: ...Read Write 8 bit This port transfers the 8 bit Port 1 digital input output data between the module and external devices The bits are programmed as input or output in groups of 4 P1 0 P1 3 and P1 4 P1...

Страница 64: ...elect Port 1 strobe polarity This bit has no meaning if latching is disabled on Port 1 Strobing Data into Port 0 or Port 1 If you enable latch mode for either Port 0 or Port 1 data can be strobed into...

Страница 65: ...9 1 CHAPTER 9 EXAMPLE PROGRAMS This chapter discusses the example programs included with the DM6210...

Страница 66: ...9 2...

Страница 67: ...C and PCUTILS C These files contain all of the routines for setting up the board and acquiring data DRVR6210 C contains all the functions needed to control the A D converter the Digital I O and the T...

Страница 68: ...9 4...

Страница 69: ...This chapter tells you how to calibrate the DM6210 using the 6210DIAG calibration program included in the example software package and the three trimpots on the module These trimpots calibrate the A...

Страница 70: ...10 2...

Страница 71: ...n is done with the module installed 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 calib...

Страница 72: ...ll three input ranges Table 10 1 A D Converter Bit Weights A D Bit Weight Ideal Input Voltage millivolts 5 to 5 Volts 10 to 10 Volts 0 to 10 Volts 4095 full scale 4997 56 9995 12 9997 56 2048 0000 00...

Страница 73: ...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 adjustment and trimpot TR1 is used for gain adjustment These adju...

Страница 74: ...10 6...

Страница 75: ...A 1 APPENDIX A DM6210 SPECIFICATIONS...

Страница 76: ...A 2...

Страница 77: ...High level output current Isource 4 ma max Low level output current Isink 8 ma max Timer Counter CMOS 82C54 Three 16 bit down counters binary or BCD counting Programmableoperatingmodes 6 Interruptont...

Страница 78: ...A 4...

Страница 79: ...B 1 APPENDIX B CN3 CONNECTOR PIN ASSIGNMENTS...

Страница 80: ...B 2...

Страница 81: ...2 9 10 7 8 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 P1 7 P1 6 P1 5 P1 4 P1 3 P1 2 P1 1 P1 0 T C OUT 0 T C OUT 1 T C OUT...

Страница 82: ...B 4...

Страница 83: ...APPENDIX C COMPONENT DATA SHEETS C 1...

Страница 84: ......

Страница 85: ...Intel 82C54 Programmable Interval Timer Data Sheet Reprint...

Страница 86: ......

Страница 87: ...ard s behavior List 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 Listyourship...

Страница 88: ...D 2...

Страница 89: ...echnologies acts of God or other contingencies beyond the control of RTD Embedded Technologies ORASARESULTOFSERVICEORMODIFICATIONBYANYONEOTHERTHANRTDEmbedded Technologies EXCEPTASEXPRESSLYSETFORTHABOV...

Страница 90: ...D 4 RTD Embedded Technologies Inc 103InnovationBlvd StateCollegePA16803 0906 USA Ourwebsite www rtd com...

Страница 91: ...DM6210 User Settings Base I O Address hex decimal IRQ Channel...

Отзывы: