background image

Page 6-1

Manual 00650-526-1

Chapter 6:  Programming 

The DIO48S/AT-P is an I/O-mapped device that is easily configured from any language and any
language can easily perform digital I/O through the card's ports.  This is especially true if the form
of the data is byte or word wide.  All references to the I/O ports would be in absolute port
addressing.  However, a table could be used to convert the byte or word data ports to a logical
reference.

Developing Your Application Software

If you wish to gain a better understanding of the programs, then the information in the following
paragraphs will be of interest to you.  Refer to the data sheets and 8255-5 specification in
Appendix A.

A total of 16 address locations are used by the DIO48S/AT-P.  The PPIs are addressed
consecutively with Address bits A3 through A0 as follows:

Address

Port Assignment

Operation

Base Address

PA Group 0

Read/Write

Base A1

PB Group 0

Read/Write

Base A2

PC Group 0

Read Write

Base A3

Control Group 0

Write Only

Base A4

PA Group 1

Read/Write

Base A5

PB Group 1

Read/Write

Base A6

PC Group 1

Read/Write

Base A7

Control Group 1

Write Only

Base A8

Enable/Disable Buffer, Grp 0

Write Only

Base A9

Enable/Disable Buffer, Grp 1

Write Only

Base AB

Enable Chg-of-St. Interrupt

Write Only

Base AF

Clear Chg-of-St. Interrupt

Write Only

Table 6-1:

  Address Selection Table

The DIO48S/AT-P card uses two 8255-5 PPIs to provide a total of 48 bits input/output capability.
The card is designed to use each of these PPIs in Mode 0 wherein:

a.

There are two 8-bit ports (A and B) and two 4-bit ports (C Hi and C Lo).

b.

Any port can be configured as an input or an output.

c.

Outputs are latched.

d.

Inputs are not latched.

Summary of Contents for DIO48S/AT-P Series

Page 1: ...DIO48S AT P Series Product Manual MANUAL NUMBER 00650 526 1B...

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: ...stalling the Card 2 4 Chapter 3 Option Selection 3 1 Chapter 4 Address Selection 4 1 Chapter 5 Software 5 1 Setup 5 1 Chapter 6 Programming 6 1 Developing Your Application Software 6 1 Programming Exa...

Page 9: ...ap 3 2 List of Tables Table 4 1 Standard Address Assignments for 286 386 486 Computers 4 1 Table 6 1 Address Selection Table 6 1 Table 6 2 Control Register Bit Assignment 6 2 Table 6 3 Change of state...

Page 10: ...Automation Robotics Machine Control Security Systems Energy Management Relay Monitoring and Control Parallel Data Transfer to PC Sensing Switch Closures or TTL DTL CMOS Logic Driving Indicator Lights...

Page 11: ...rdware logic for input or output use according to direction assignment from a control register in the PPI Further if a jumper is properly placed on the card the tristate buffers are enabled disabled u...

Page 12: ...200 uA Digital Outputs Logic High 2 5 VDC min source 15 mA Logic Low 0 5 VDC max sink 24 mA 64 mA optional Power Output 5 VDC from computer bus ext 1A fast blow fuse recommended Power Required 5 VDC...

Page 13: ...DIO48S AT P Manual Page 1 4 Manual 00650 526 1 Figure 1 1 DIO48S AT P Block Diagram...

Page 14: ...mpts to install the software for this card WIN95 98 NT 1 Place the CD into your CD ROM drive 2 The CD should automatically run the install program after 30 seconds If the install program does not run...

Page 15: ...ME that contains C samples Win32 language Subdirectories containing samples for Win95 98 and NT WinRisc exe A Windows dumb terminal type communication program designed for RS422 485 operation Used pri...

Page 16: ...ograms in DOS PCIFind exe A utility for DOS and Windows to determine what base addresses and IRQs are allocated to installed PCI cards This program runs two versions depending on the operating system...

Page 17: ...n Sections of this manual and configure the card according to your requirements Use the special software program called SETUP provided on CD with the card It supplies visual aids to configure all area...

Page 18: ...ts that are marked for CE European Certification and for these units CE certifiable cable and break out methodology cables connect to chassis ground at the aperture shielded twisted pair wiring etc mu...

Page 19: ...g section of this manual for a description An LED CR1 is provided at the top center of the card to assist you in program development Each time an interrupt is generated the LED will illuminate and rem...

Page 20: ...DIO48S AT P Manual Page 3 2 Manual 00650 526 1 Figure 3 1 DIO48S AT P Option Selection Map...

Page 21: ...Keyboard 070 07F Real Time Clock NMI Mask 080 09F DMA Page Register 0A0 0BF INT Controller 2 0C0 0DF DMA Controller 2 0F0 Clear Math Coprocessor Busy 0F1 Reset Coprocessor 0F8 0FF Arithmetic Processor...

Page 22: ...OFF Switch Identification A9 A8 A7 A6 A5 A4 Address Line Controlled A9 A8 A7 A6 A5 A4 The following example illustrates switch selection corresponding to hex 2D0 or binary 10 1101 xxxx The xxxx repre...

Page 23: ...ram is under a directory titled CSAMPLES It is a C language software program that demonstrates how to program the change of state function SETUP This program is supplied with the DIO48S AT P as a tool...

Page 24: ...vely with Address bits A3 through A0 as follows Address Port Assignment Operation Base Address PA Group 0 Read Write Base Address 1 PB Group 0 Read Write Base Address 2 PC Group 0 Read Write Base Addr...

Page 25: ...ort A 1 Input 0 Output D5 D6 Mode Select 00 Mode 0 01 Mode 1 1X Mode 2 D7 Mode Set Flag 1 Active Table 6 2 Control Register Bit Assignment Note Mode 1 and Mode 2 cannot be used by the DIO48S AT P with...

Page 26: ...te of hex 80 has been sent as previously described and the data to be output are correct and it is now desired to open the three ports then it is necessary to send a control byte of hex 00 to base add...

Page 27: ...____ Port B output ___________ Mode 0 ________________ Port C Hi input _____________________ Port A input __________________________ Mode 0 _______________________________ Mode 0 _____________________...

Page 28: ...esolved as follows Two computer I O bus addresses are available that permit you to enable or disable the I O buffers at will without programming the PPI mode Buffers for Goup 0 bits are enabled disabl...

Page 29: ...nge of state interrupts or by ports that are programmed as outputs To program this Change of State Interrupt Enable Register write to it at Base Address B Data bits D0 through D5 control ports A B and...

Page 30: ...that it generated the interrupt There is an exception to this rule This is the case where only one card of those sharing the interrupt level does not provide a status bit to indicate that it asserted...

Page 31: ...d 6 Port C Hi PC4 7 Ground 8 Port C Lo PC3 9 Ground 10 Port C Lo PC2 11 Ground 12 Port C Lo PC1 13 Ground 14 Port C Lo PC0 15 Ground 16 Port B PB7 17 Ground 18 Port B PB6 19 Ground 20 Port B PB5 21 Gr...

Page 32: ...reprinted with permission of Mitsubishi Electric Corp 1987 The information diagrams and all other data included are believed to be correct and reliable However no responsibility is assumed by Mitsubi...

Page 33: ...1995RadiatedRFFieldImmunity EN61000 4 4 1995EFTImmunityforACandI OLines EN 60950 1992 Safety of InformationTechnology Equipment Thetechnicaldocumentationrequiredtodemonstratethisproductmeetstherequir...

Reviews: