background image

DIO48S/AT-P Manual

Page 6-2 

Manual 00650-526-1

Each PPI contains a Control Register.  This write-only, 8-bit register is used to set the mode and
direction of the ports.  At Power-Up or Reset, all I/O lines are set as inputs.  Each PPI should be
configured during initialization by writing to the Control Registers even if the ports are only going
to be used as inputs.  Output buffers are automatically set by hardware according to the Control
Register states.  Note that Control Registers are located at base a3 and base a7.
Bit assignments in each of these Control Registers are as follows:

Bit

Assignment

Code

  D0 Bit

Port C Lo (C0-C3)

1=Input, 0=Output

  D1

Port B

1=Input, 0=Output

  D2

Mode Select

1=Mode 1, 0=Mode 0

  D3

Port C Hi (C4-C7)

1=Input, 0=Output

  D4

Port 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 without modification (Consult factory.).
Thus, bits D2, D5, and D6 should always be set to "0" and (when the TST/BEN jumper is in the
BEN position) Bit D7 to "1".

Note

In Mode 0, do not use the control register byte for the individual bit control feature.  The hardware
uses the I/O bits to control buffer direction on this card.  The control register should only be used
for setting up input and output of the ports and enabling the buffer.

DIO48S/AT-P provides a means to enable/disable the tristate I/O buffers under program control.
If the TST/BEN jumper on the card is installed in the BEN position, the I/O buffers are
permanently enabled.  However, if that jumper is in the TST position, enable/disable of the buffers
is software controlled via the control register as follows:

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: