background image

Manual PCI-DIO-48JP/JPS 

16

 

To set outputs high (1) at Port B and the lower nybble of Port C:  
 

50OUT B1,&HFF'Turn on all Port B bits 
60OUT B2,&HF'Turn on all bits of Port C 
lower nybble  

 

ENABLING/DISABLING I/O BUFFERS

 

 
When using the tristate mode (Jumper in the TST position), the method to disable the I/O buffers involved 
writing a control word to the Control Register at Base A3 and Base A7. This control word 
was required to have bit D7 (the most significant bit) set. That meant that the PPI translated it as an “active 
mode set” and reset the output data latches to “zero” on all output ports 

and

 the output buffers were 

disabled. However, if the buffers are to be enabled at a later time, the output latches will be in a “zero” 
state. For example, if all the outputs were 1's, they will now be 0's and the output buffers will be disabled. 
This can be resolved 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 Port 0 bits are enabled/disabled at Base A8 and 

buffers for Port 1 bits are enabled/disabled at Base A9. To enable the buffers and to set outputs to 
the desired state, you can write to the Control Register with bit D7 low. If you wish to subsequently disable 
the buffers, you can write to the Control Register with bit D7 high. In this way you can enable/disable the 
output buffers without programming the PPI mode.  
 
Note   When writing a command byte to these cards while the TST jumper is installed, the PPI output 
buffers are disabled. Thus, when you desire to to change the mode, you must first set the new mode and 
then enable the buffers. Enabling the buffers can be done at either Base A3 (or +7) or Base 
A8 (or +9). 
 

CHANGE-OF-STATE INTERRUPTS

 (Model 48JPS only) 

 
At power-up or Reset, a register that enables change-of-state interrupts is set to zero. This 

enables all 

inputs to generate change-of-state interrupts.

 During initialization this register should be programmed to 

prevent interrupt generation by inputs that you do not want to cause change-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 B. Data bits D0 through D5 control ports A, B, and C of the 8255 PPIs as shown in Table 4. 
 

Bit Port 

Controlled 

D0 
D1 
D2 
D3 
D4 
D5 

Group 0, Port A 
Group 0, Port B 

Group 0, Port C 

Group 1, Port A 
Group 1, Port B 

Group 1, Port C 

Table 6-4: Change-of-State Interrupt Enable Register 

 

Writing a “one” disables the port; writing a “zero” enables it. This register is latched. To clear the latch, write 
anything at Base F. 

Содержание PCI-DIO-48S

Страница 1: ...3 Roselle Street San Diego CA 92121 858 550 9559 FAX 858 550 7322 contactus accesio com www accesio com DIGITAL INPUT OUTPUT CARD Models PCI DIO 48JP and PCI DIO 48JPS USER MANUAL File MPCI DIO 48JPS...

Страница 2: ...CES nor the rights of others IBM PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright 1998 2005 by ACCES I O Products Inc 10623 Rose...

Страница 3: ...or parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonabl...

Страница 4: ...ss Selection 10 Chapter 5 Software 11 Chapter 6 Programming 13 Table 6 1 Address Assignment Table 13 Table 6 2 Control Register Bit Assignment 14 Table 6 3 Control Register Configuration 15 Table 6 4...

Страница 5: ...interface to 48 lines Each PPI provides three 8 bit ports A B and C Each 8 bit port can be software configured to function either as inputs or as latched outputs Port C can also be software configured...

Страница 6: ...ddress space The base address is selected by the system An illustrated setup program is provided on the diskette or CD shipped with your card Interactive displays show locations and proper configurati...

Страница 7: ...ns for usage of the various card options CD Software Installation The following instructions assume the CD ROM drive is drive D Please substitute the appropriate drive letter for your system as necess...

Страница 8: ...ned resources 10 Run one of the provided sample programs that was copied to the newly created card directory from the CD to test and validate your installation The base address assigned by BIOS or the...

Страница 9: ...ng or disabling the 74LS245 input output buffers under program control is provided at the jumper position labeled TST BEN When the jumper is in the BEN Buffer Enable position the I O buffers are alway...

Страница 10: ...of the cards and the respective IRQs allotted Alternatively some operating systems Windows95 and WindowsNT 5 0 can be queried to determine which resources were assigned In these operating systems you...

Страница 11: ...ions are in the form of a DLL a GBL and a VisualBASIC sample Together these files allow you to access the port and main memory space in a fashion similar to BASIC QuickBASIC Pascal C C Assembly and mo...

Страница 12: ...t less intuitive All integers in BASIC are signed numbers wherein data are stored in two s complement form All bit patterns must be converted to and from this two s complement form if meaningful displ...

Страница 13: ...0 Port C Group 0 Control Group 0 Port A Group 1 Port B Group 1 Port C Group 1 Control Group 1 Enable Disable Buffer Grp 0 Enable Disable Buffer Grp 1 Enable Chg of St Interrupt Clear Chg of St Interru...

Страница 14: ...sociated PPI chip as well as the mode can be set For example a write to Base Address 3 with data bit D7 high programs port direction at group 0 ports A B and C If for example hex 80 is sent to Base Ad...

Страница 15: ...ow See item d above outportb BASE_ADDRESS 3 0x09 PROGRAMMING EXAMPLE BASIC The following example in BASIC is provided as a guide to assist you in developing your working software In this example the c...

Страница 16: ...ite to the Control Register with bit D7 low If you wish to subsequently disable the buffers you can write to the Control Register with bit D7 high In this way you can enable disable the output buffers...

Страница 17: ...dress Bh Toggle bit C3 high for at least 1 uS then low Note that this pulse will show up at pin 5 or 41 of the connector Example 2 External interrupt The interrupt option jumper for the group must be...

Страница 18: ...0 Port B Group 0 Port B Group 0 Port B Group 0 Port B Group 0 Port B Group 0 Port B Group 0 Port B Group 0 Port B Group 0 Port A Group 0 Port A Group 0 Port A Group 0 Port A Group 0 Port A Group 0 Po...

Страница 19: ...rt B Group 1 Port B Group 1 Port B Group 1 Port B Group 1 Port A Group 1 Port A Group 1 Port A Group 1 Port A Group 1 Port A Group 1 Port A Group 1 Port A Group 1 Port A 5 VDC PC7 PC6 PC5 PC4 PC3 PC2...

Страница 20: ...manual or just want to give us some feedback please email us at manuals accesio com Please detail any errors you find and include your mailing address so that we can send you any manual updates 10623...

Отзывы: