Real Time Devices DM5854HR User Manual

Isolated digital i/o-module

Advertisement

Quick Links

DM5854HR/DM6854HR
Isolated digital I/O-module
User's Manual
Real Time Devices Finland Oy
DM5854HR/DM6854HR
Real Time Devices Finland Oy
Lepolantie 14
FIN-00660 Helsinki, Finland
Tel: (+358) 9 346 4538
Fax: (+358) 9 346 4539
Email: sales@rtdfinland.fi
URL: www.rtdfinland.fi
(c) RTD Finland Oy 1996-2001

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DM5854HR and is the answer not in the manual?

Questions and answers

Summary of Contents for Real Time Devices DM5854HR

  • Page 1 DM5854HR/DM6854HR Isolated digital I/O-module User's Manual Real Time Devices Finland Oy Real Time Devices Finland Oy Lepolantie 14 FIN-00660 Helsinki, Finland Tel: (+358) 9 346 4538 Fax: (+358) 9 346 4539 Email: sales@rtdfinland.fi URL: www.rtdfinland.fi DM5854HR/DM6854HR (c) RTD Finland Oy 1996-2001...
  • Page 2 Published by Real Time Devices Finland Oy Lepolantie 14 FIN-00660 Helsinki, Finland Copyright © 1996-2001 by RTD Finland Oy...
  • Page 3: Table Of Contents

    Board installation External I/O connections Isolated Input/Output Connector 50-pin RTD Expansion Connector CHAPTER 3 - HARDWARE DESCRIPTION Digital I/O, 8255 Programmable digital I/O Isolated optocoupler inputs Isolated optocoupler outputs Trigger output Interrupts DM5854HR/DM6854HR Page 1 (c) RTD Finland Oy 1996-2001...
  • Page 4 What exactly happens when an interrupt occurs? Using interrupts in your program Writing an interrupt service routine (ISR) Saving the startup IMR and interrupt vector Common Interrupt mistakes APPENDIX A - DM5854HR/6854HR Specifications DM5854HR/DM6854HR Page 2 (c) RTD Finland Oy 1996-2001...
  • Page 5 List of Illustrations =============================================================== DM5854HR/DM6854HR Page 3 (c) RTD Finland Oy 1996-2001...
  • Page 6: General Purpose Digital I/O

    This user's manual describes the operation of the DM5854HR/DM6854HR Isolated Digital Interface board. Some of the key properties of the DM5854HR/DM685HR include: * 8 channel-by-channel isolated digital inputs with masking modes * 4 Optocoupled digital outputs with open collector configuration, 30V range...
  • Page 7: Mechanical Description

    * DM5854HR or DM6854HR Isolated digital interface module * User's manual Note: Latest software and drivers can be downloaded from our website. If any item is missing or damaged, please call Real Time Devices Finland Customer service department at (+358) 9 346 4538. Board accessories In addition to the items included in your DM6854HR delivery several software and hardware accessories are available.
  • Page 8: Using This Manual

    Real Time Devices can supply a complete set of accessories to your DM6854HR card. These include enclosures, power supplies, terminal boards (TB50) and other interconnection systems. Using this manual This manual is intended to help you install your new DM6854HR card and get it running quickly, while also providing enough detail about the board and it's functions so that you can enjoy maximum use of it's features even in the most demanding applications.
  • Page 9: Chapter 1 - Board Settings

    I/O configuration setup. The board is factory configured with a +24V input range configuration. The factory settings are listed and shown in the diagram in the beginning of this chapter. DM5854HR/DM6854HR Page 7 (c) RTD Finland Oy 1996-2001...
  • Page 10: Factory-Configured Jumper Settings

    JUMPERS INSTALLED BASE BASE ADDRESS 300h INSTALLED INTERRUPT CHANNEL PU/PD PU/PD FOR PPI PORTS 3-Terminal PULLDOWN IN1-8 INPUT RANGE FOR +24V RANGE ISOLATED INPUTS 1-8 Figure 1-1 - Board layout showing jumper locations DM5854HR/DM6854HR Page 8 (c) RTD Finland Oy 1996-2001...
  • Page 11: Base Address Jumpers

    When you set the base address of the module, record the setting in the table inside the back cover of this manual after the Appendices. DM5854HR/DM6854HR Page 9 (c) RTD Finland Oy 1996-2001...
  • Page 12 1 1 1 1 0 2F0 / (752) 0 1 1 1 1 3F0 / (1008) 1 1 1 1 1 Fig. 1-2 Base Address jumper block (A4 to top, A8 to bottom; open <-> 0) DM5854HR/DM6854HR Page 10 (c) RTD Finland Oy 1996-2001...
  • Page 13 6 interrupt channels available on the XT/AT-bus. Fig. 1-3 Interrupt selection jumpers The interrupt is caused by an external trigger event that has transferred the storage latch data to the output latch of the isolated digital output stage. DM5854HR/DM6854HR Page 11 (c) RTD Finland Oy 1996-2001...
  • Page 14 The jumper topmost toward the spring loaded connectors selects +5V input range, the middle position +12V and the bottom most (toward the center of the board) +24V. The optocoupler forward current is 10mA for switching (max. 16mA). DM5854HR/DM6854HR Page 12 (c) RTD Finland Oy 1996-2001...
  • Page 15 Fig. 1-5 Optocoupler input range jumpers set for 24V input range Fig. 1-6 Optocoupler input stage layout of the DM6854HR DM5854HR/DM6854HR Page 13 (c) RTD Finland Oy 1996-2001...
  • Page 16: Chapter 2 - Board Installation

    Direct interface to PC/104 systems as well as EUROCARD boards is provided. This chapter tells you step-by-step how to install your board into your system. After completing the installation use the diagnostic software to fully verify that your board is working. DM5854HR/DM6854HR Page 14 (c) RTD Finland Oy 1996-2001...
  • Page 17 * Secure the four PC/104 installation holes with standoffs. * Connect the 50-pin expansion connector to your nonisolated digital signals and directly connect your isolated input and output control devices to the onboard I/Oconnectors. DM5854HR/DM6854HR Page 15 (c) RTD Finland Oy 1996-2001...
  • Page 18 Fig. 2-1 DM5854HR integrated with a PC/104 dataModule® stack. DM5854HR/DM6854HR Page 16 (c) RTD Finland Oy 1996-2001...
  • Page 19 3U rack or enclosure installation with a EUROCARD CPU with one DM5854HR. * The PC/104 system can easily be inserted into a 19" rack installation using the CPU as a "form factor adapter". Assemble your PC/104 dataModules® on a RTD single board EUROCARD computer and install the system in a 19"...
  • Page 20: External I/O Connections

    IN2+ IN2- IN3+ IN3- IN4+ IN4- IN5+ IN5- IN6+ IN6- IN7+ IN7- IN8+ IN8- OUT1_COLLECTOR OUT1_EMITTER OUT2_COLLECTOR OUT2_EMITTER OUT3_COLLECTOR OUT3_EMITTER OUT4_COLLECTOR OUT4_EMITTER Fig. 2-3a Isolated Input/Output interface using screw terminal block connector DM5854HR/DM6854HR Page 18 (c) RTD Finland Oy 1996-2001...
  • Page 21 #29,30 IN8+ #31,32 IN8- #33,34 OUT1_COLLECTOR #35,36 OUT1_EMITTER #37,38 OUT2_COLLECTOR #39,40 OUT2_EMITTER #41,42 OUT3_COLLECTOR #43,44 OUT3_EMITTER #45,46 OUT4_COLLECTOR #47,48 OUT4_EMITTER Fig. 2-3b Isolated Input/Output interface using a 48 - pin header connector DM5854HR/DM6854HR Page 19 (c) RTD Finland Oy 1996-2001...
  • Page 22 DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND DGND +5V (fused) DGND Fig. 2-4 50-pin expansion interface connector pinout DM5854HR/DM6854HR Page 20 (c) RTD Finland Oy 1996-2001...
  • Page 23: Chapter 3 - Hardware Description

    CHAPTER 3 - HARDWARE DESCRIPTION =============================================================== Chapter 3 - Hardware Description describes the major features of the DM6854HR: the 8255 based digital I/O, isolated optocoupler inputs, isolated optocoupler outputs, interrupts and output triggering. DM5854HR/DM6854HR Page 21 (c) RTD Finland Oy 1996-2001...
  • Page 24 Figure 3-1 shows the general block diagram of the DM6854HR. This chapter describes the major features of the DM6854HR: the 8255 based digital I/O, isolated optocoupler inputs, isolated optocoupler outputs, interrupts and output triggering. Fig. 3-1 DM6854HR Block diagram DM5854HR/DM6854HR Page 22 (c) RTD Finland Oy 1996-2001...
  • Page 25 Port A may be Inputs or Outputs Port C lower bits may be Inputs or Outputs Port C higher bits may be Inputs or Outputs All these modes are discussed in detail in the 8255 datasheet from Intel. DM5854HR/DM6854HR Page 23 (c) RTD Finland Oy 1996-2001...
  • Page 26 DM5854HR/DM6854HR Page 24 (c) RTD Finland Oy 1996-2001...
  • Page 27: Isolated Optocoupler Inputs

    Bit inversion is performed by writing to the input inversion register (BA+2). An input channel is inverted by writing "1" to the corresponding inversion register bit. Example: outp(BA+2,0x0f); will invert input channels 1-4. DM5854HR/DM6854HR Page 25 (c) RTD Finland Oy 1996-2001...
  • Page 28: Isolated Optocoupler Outputs

    Individual optocouplers are used for each channel. The optocouplers are directly connected to the Output data register. The optocouplers are connected in a non inverting configuration in open collector configuration. The maximum switching current is 8mA at 30V. DM5854HR/DM6854HR Page 26 (c) RTD Finland Oy 1996-2001...
  • Page 29: Trigger Output

    The DM6854HR has an interrupt available to indicate an external trigger. This interrupt can be used to tell the host computer that the pre-programmed input pattern condition has occurred. Chapter 4 will provide programming information on interrupts. DM5854HR/DM6854HR Page 27 (c) RTD Finland Oy 1996-2001...
  • Page 30 This chapter shows you how to program and use your DM6854HR. It provides a complete detailed description of the I/O-map and a detailed discussion of programming operations to aid you in application programming. DM5854HR/DM6854HR Page 28 (c) RTD Finland Oy 1996-2001...
  • Page 31 This is done with a write to BA+0. Example: outp(BA,data); // Clears trigger and interrupt; data is irrelevant. BA+0 Digital inputs (Read) The eight isolated digital input bits available in connector J4 can be read from address BA+0. DM5854HR/DM6854HR Page 29 (c) RTD Finland Oy 1996-2001...
  • Page 32 0->External trigger output active high BITS 3-7 4-bit isolated digital output port BA+3 Configuration / digital output register (Read) Performing a read to this register address will return the current data stored in the register. DM5854HR/DM6854HR Page 30 (c) RTD Finland Oy 1996-2001...
  • Page 33 0 = A Output Direction of Port A 1 = A Input 0 = C upper Output Direction of Port C Upper (bits 4-7) 1 = C upper Input Mode select for group #2 DM5854HR/DM6854HR Page 31 (c) RTD Finland Oy 1996-2001...
  • Page 34 When bit 7 is set to 0, a write can program individual lines of port C. 0 = Active Set Reset Function bit Bit Select 1 = Set bit to 1 0 = Set bit to 0 DM5854HR/DM6854HR Page 32 (c) RTD Finland Oy 1996-2001...
  • Page 35 To set multiple bits in a port, OR the current value of the port with the value "B", where B = (sum of the individual bits to be set). DM5854HR/DM6854HR Page 33 (c) RTD Finland Oy 1996-2001...
  • Page 36 // Now if any of bits 3,5,7 goes high or bit 1 goes low it will cause a hardware // interrupt. In your ISR. you will read the input data with " in_data = inp(BA);". DM5854HR/DM6854HR Page 34 (c) RTD Finland Oy 1996-2001...
  • Page 37 Now we must program the polarity of the trigger output to other devices if this function is used Clear interrupt and trigger register Enable trigger output tristate buffer Enable interrupts, this also enables the operation of the external trigger output DM5854HR/DM6854HR Page 35 (c) RTD Finland Oy 1996-2001...
  • Page 38 If a bit is set (equal to 1), then the corresponding IRQ is masked, and it will not generate an interrupt. If a bit is cleared (equal to 0), then the corresponding IRQ is not masked, and it can generate an interrupt. The interrupt mask register is programmed through port 21h. DM5854HR/DM6854HR Page 36 (c) RTD Finland Oy 1996-2001...
  • Page 39 EOI command to the function, you must do it yourself. Other than this and a few exceptions discussed below, you can write your ISR as any code routine. It can call other functions and DM5854HR/DM6854HR Page 37 (c) RTD Finland Oy 1996-2001...
  • Page 40 Put the body of your routine here Clear the interrupt bit by writing to address BA+3 Issue the EOI command to the 8259 by writing 20h to address 20h Pop all registers. Most C compilers do this automatically DM5854HR/DM6854HR Page 38 (c) RTD Finland Oy 1996-2001...
  • Page 41 DM6854HR as an interrupt source, program it to do that. Finally, clear the mask bit for your IRQ in the IMR. This will enable your IRQ. DM5854HR/DM6854HR Page 39 (c) RTD Finland Oy 1996-2001...
  • Page 42 Set the pointers in the interrupt table to point to our funtions ie. setup for ISR's. |----------------------------------------------------------------------*/ void init_irq_handlers(void) _disable(); old_IRQ1_handler = _dos_getvect(IRQ1_VECTOR + 8); _dos_setvect(IRQ1_VECTOR + 8, new_IRQ1_handler); Gi_old_mask = inp(0x21); outp(0x21,Gi_old_mask & ~(1 << IRQ1_VECTOR)); _enable(); DM5854HR/DM6854HR Page 40 (c) RTD Finland Oy 1996-2001...
  • Page 43 | Inputs: Nothing | Returns: Nothing | Purpose: Restore interrupt vector table. |----------------------------------------------------------------------*/ void restore(void) /* Restore the old vectors */ _disable(); _dos_setvect(IRQ1_VECTOR + 8, old_IRQ1_handler); outp(0x21,Gi_old_mask); _enable(); DM5854HR/DM6854HR Page 41 (c) RTD Finland Oy 1996-2001...
  • Page 44 APPENDIX A ===================================================================== DM5854HR/DM6854HR Specifications Interface Jumper-selectable base address, I/O mapped Jumper selectable interrupts Digital I/O (non isolated) Number of lines Logic compatibility TTL/CMOS (Pullup and Pulldown resistors are available) Digital inputs (isolated) Number of lines Input ranges (jumper selectable)
  • Page 45 NOTES: (C) RTD Finland Oy 1996-2001 DOC: DM6854.SAM DM5854HR/DM6854HR Page 43 (c) RTD Finland Oy 1996-2001...

This manual is also suitable for:

Dm6854hr

Table of Contents