background image

Manual Number: 00431-024-14

Page 2-2

DIO24-P Manual

Setting Base Address

It is easier to think in hexadecimal when determining I/O address.  This avoids the decimal-to-hex or

decimal-to-binary conversion required to set the switch.  The following example shows how to set

the switches:

1. Desired I/O address:  &Hex 300
2. Binary value of address  &Hex number

&Hex 300 = 0011 0000 0000 Binary

3. Set switches with ON = 0 and OFF = 1.  The lower 2 bits are factory set and are discarded while

the upper two bits are always 0 and are not provided for on the switch.  The switch is then set to

(for Hex 300):

The switch positions mirror the bit pattern above with OFF = 1 = DOWN.

Interrupts

The DIO24-P provides for input channels 22 and 23 to generate hardware interrupts.  These inter-

rupts can be directed to any of the Interrupt Request Lines (IRQ 2, 3, 4, 5, 6, and 7) available on the

8-bit PC/XT/AT I/O expansion bus.

Pin 1 (Channel 23 is configured as an INTERRUPT INPUT and Pin 3 (Channel 22) is the INTER-

RUPT ENABLE on the DB37 connector.  To use the interrupts, simply insert the appropriate IRQ

jumper to select the desired interrupt channel.  To determine which input generated the interrupt, read

Port C Upper, bits 6 and 7, to read the current state of the inputs.

Jumper block J2 allows the user to “customize” the interrupt inputs to use pins 1 and 2 of the I/O

connector.  These jumpers are not normally used and interested users are directed to the schematic

for additional details.

You should be aware that an interrupt will be generated if the IRQ jumper is inserted and Port C

Upper is used as an output.  This feature could be used to test an interrupt routine without external

connections being required.

Summary of Contents for DIO24-P

Page 1: ...Model DIO24 P Product Manual MANUAL NUMBER 00431 024 14B...

Page 2: ...ual in our online Support Library Thank you The information in this document is provided for reference only ICS Advent does not assume any liability arising from the application or use of the informat...

Page 3: ...Page iv This page intentionally left blank...

Page 4: ...ts which are not in an as new and re saleable condition are not eligible for credit return and will be returned to the customer Limited Warranty Effective April 1 1998 all products carry a 2 year limi...

Page 5: ...made by various manufacturers in performing warranty repairs and building replacement products If ICS Advent repairs or replaces a product its warranty term is not extended ICSAdvent will normally re...

Page 6: ...Cautions and Warnings are accented with triangular symbols The exclamation symbol is used in all cautions and warnings to help alert you to the important instructions The lightning flash symbol is us...

Page 7: ...Page viii This page intentionally left blank...

Page 8: ...Register Access 3 1 Control Register 3 2 8255 Mode Definition Format 3 2 Modes of Operation 3 2 Mode 0 3 2 Mode 1 3 3 Mode 2 3 3 Bit Set Reset 3 3 Bit Set Reset Format 3 3 Chapter 4 Peek and Poke Driv...

Page 9: ...x CE Declaration of Conformity List of Figures Figure 1 DIO24 P Block Diagram 1 2 Figure 2 DIO24 Layout 2 3 List of Tables Table 4 1 Peek and Poke Library Functions 4 2 Current Revision 14B December...

Page 10: ...complete technical description and summary of the various operating modes of the 8255 Interrupt handling is via a tristate driver with separate enable interrupt enable active low This may be connecte...

Page 11: ...Computer Source The Model DIO24 P is designed to be CE Compliant when used in an CE compliant chassis Maintaining CE Compliance also requires proper cabling and termination techniques The user is adv...

Page 12: ...umidity 0 to 90 non condensing Inputs and Outputs Input Output Lines 24 Input Logic Low Voltage 0 5V Min to 0 8V Max Input Logic High Voltage 2 0V Min to 5 0V Max Input Load Current 10uA Min to 10uA M...

Page 13: ...ll drive 1 standard TTL load or 4 LSTTL loads CMOS compatiblity can be obtained by connecting a 10k Ohm pullup resistor from the input or output to 5V I O Address Requirement 4 Bytes I O Connector DB3...

Page 14: ...mputer Some of the address locations commonly used are listed in the table that follows Refer to the IBM Technical Reference Manual for additional details ADDRESS DEVICE ADDRESS DEVICE 000 0FF Interna...

Page 15: ...upts These inter rupts can be directed to any of the Interrupt Request Lines IRQ 2 3 4 5 6 and 7 available on the 8 bit PC XT AT I O expansion bus Pin 1 Channel 23 is configured as an INTERRUPT INPUT...

Page 16: ...on Manual Number 00431 024 14 Page 2 3 Figure 2 DIO24 Layout Connector Pin Assignments All digital I O is through a standard DB37 male connector A listing of all pinouts is shown on the schematic incl...

Page 17: ...e address definitions are BASE ADDRESS 0 Port A Read Write 1 Port B Read Write 2 Port C Read Write 3 Control Register Write Only To access the board from BASIC for example 1 Determine which ports are...

Page 18: ...r this mode even if that is the one you intend to use 8255 Mode Definition Format Modes of Operation The 8255 offers 3 MODES of operation as set by bits 3 6 and 7 Bit 3 sets the mode for port B and bi...

Page 19: ...eceiving data bidirectional bus I O Handshaking signals are provided to maintain proper bus flow discipline in a similar manner to MODE 1 Interrupt generation and enable disable functions are also ava...

Page 20: ...o dynamic linked libraries are used to access the Peek and Poke driver under Windows 95 or Windows NT pplib95 lib and pplibnt lib pplib95 dll pplibnt dll To use a library add pplib95 lib or pplibnt li...

Page 21: ...UH WR UHOHDVH WKLV PHPRU UHJLRQ EDFN WR WKH V VWHP DV IROORZV ics_pp_release_pointer void ics_pp_release_pointer void address int length 7KLV IXQFWLRQ UHOHDVHV D PHPRU PDSSLQJ PDGH ZLWK ics_pp_make_po...

Page 22: ...Long Private Declare Function ICS_PP_OUTPW Lib pplib95 ByVal port As Long ByVal data As Long As Long Private Declare Function ICS_PP_OUTPL Lib pplib95 ByVal port As Long ByVal data As Long As Long Pri...

Page 23: ...ng Private Declare Function ICS_PP_INPW Lib pplibnt ByVal port As Long As Long Private Declare Function ICS_PP_INPL Lib pplibnt ByVal port As Long As Long Installing the Windows NT Peek and Poke Drive...

Page 24: ...hardware types and select System devices Click the Next button Click the Have Disk button Insert the disk labeled Windows NT Windows 95 PeekPoke Driver Disk Make sure A Windows95 is selected as the so...

Page 25: ...Device Manager tab Click Expand System Devices The system displays a list of devices Click the PeekPoke driver NOTE If the driver does not appear check whether the registry has been set to Read Only C...

Page 26: ...A 8255 Data Sheet Manual Number 00431 024 14 Page A 1 Appendix A 8255 Data Sheet The 8255 Data Sheet is available on request Please contact Industrial Computer Source Post Sales Support Line at 800 4...

Page 27: ...Appendix B Pinout Drawing Manual Number 00431 024 14 Page B 1 Appendix B Pinout Drawing...

Page 28: ...995RadiatedRFFieldImmunity EN61000 4 4 1995EFTImmunityforACandI OLines EN 60950 1992 Safety of InformationTechnology Equipment Thetechnicaldocumentationrequiredtodemonstratethisproductmeetstherequirem...

Reviews: