background image

4-3

Defining the I/O Map

The I/O map for the DM6210 is shown in Table 4-1 below. As shown, the module occupies 16 consecu-

tive I/O port locations.

 The base address (designated as BA) can be selected using DIP switch S1, located on the edge of the

module, as described in Chapter 1, 

Module Settings

. This switch can be accessed without removing the

module from the stack. The following sections describe the register contents of each address used in the I/O

map.

Table 4-1  DM6210 I/O Map

Register Description

Read Function

Write Function

Address *

(Decimal)

Read Data/
Start Conversion

Read A/D converted data

Start A/D conversion

BA + 0

Reserved

Reserved

Reserved

BA + 1

Board ID LSB

Read Board ID LSB

Reserved

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 status word

Clear interrupt line

BA + 6

Reserved

Reserved

Reserved

BA + 7

8254 Timer/Counter 0

Read count  value

Load count register

BA + 8

8254 Timer/Counter 1

Read count  value

Load count register

BA + 9

8254 Timer/Counter 2

Read count  value

Load count register

BA + 10

8254 Timer/Counter
Control Word

Reserved

Program counter mode

BA + 11

Digital I/O Port 0

Read Port 0 digital input
lines

Program Port 0 digital output
lines

BA + 12

Digital I/O Port 1

Read Port 1 digital input
lines

Program Port 1 digital output
lines

BA + 13

Digital I/O Strobe Select

Read strobe select register

Program strobe select
register

BA + 14

Digital I/O Control

Read control register

Program control register

BA + 15

* BA = Base Address

           

Summary of Contents for DM6210

Page 1: ...DM6210 User s Manual BDM 610010009 Rev A Real Time Devices RTDEmbeddedTechnologies Inc Accessing the Analog World...

Page 2: ......

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 9: ...i 1 INTRODUCTION...

Page 10: ...i 2...

Page 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...

Page 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...

Page 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...

Page 14: ...1 2...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 22: ...1 10...

Page 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...

Page 24: ...2 2...

Page 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...

Page 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...

Page 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...

Page 28: ...2 6...

Page 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...

Page 30: ...3 2...

Page 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...

Page 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...

Page 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...

Page 34: ...4 2...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 44: ...5 2...

Page 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...

Page 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...

Page 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...

Page 48: ...5 6...

Page 49: ...6 1 CHAPTER 6 INTERRUPTS This chapter explains software selectable interrupts and basic interrupt programming techniques...

Page 50: ...6 2...

Page 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...

Page 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...

Page 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...

Page 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...

Page 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...

Page 56: ...6 8...

Page 57: ...7 1 CHAPTER 7 TIMER COUNTERS This chapter explains the 8254 timer counter circuits on the DM6210...

Page 58: ...7 2...

Page 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...

Page 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...

Page 61: ...8 1 CHAPTER 8 DIGITAL I O This chapter explains the digital I O circuitry on the DM6210...

Page 62: ...8 2...

Page 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...

Page 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...

Page 65: ...9 1 CHAPTER 9 EXAMPLE PROGRAMS This chapter discusses the example programs included with the DM6210...

Page 66: ...9 2...

Page 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...

Page 68: ...9 4...

Page 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...

Page 70: ...10 2...

Page 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...

Page 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...

Page 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...

Page 74: ...10 6...

Page 75: ...A 1 APPENDIX A DM6210 SPECIFICATIONS...

Page 76: ...A 2...

Page 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...

Page 78: ...A 4...

Page 79: ...B 1 APPENDIX B CN3 CONNECTOR PIN ASSIGNMENTS...

Page 80: ...B 2...

Page 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...

Page 82: ...B 4...

Page 83: ...APPENDIX C COMPONENT DATA SHEETS C 1...

Page 84: ......

Page 85: ...Intel 82C54 Programmable Interval Timer Data Sheet Reprint...

Page 86: ......

Page 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...

Page 88: ...D 2...

Page 89: ...echnologies acts of God or other contingencies beyond the control of RTD Embedded Technologies ORASARESULTOFSERVICEORMODIFICATIONBYANYONEOTHERTHANRTDEmbedded Technologies EXCEPTASEXPRESSLYSETFORTHABOV...

Page 90: ...D 4 RTD Embedded Technologies Inc 103InnovationBlvd StateCollegePA16803 0906 USA Ourwebsite www rtd com...

Page 91: ...DM6210 User Settings Base I O Address hex decimal IRQ Channel...

Reviews: