background image

Manual PCI-DIO-24DH 

15

Chapter 6: Programming

 

  
These cards are I/O-mapped devices that are 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.  
 

Developing Your Application Software

 

  
If you wish to gain a better understanding of the programs on diskette, 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 register locations are used by these cards. With all counters (S03), the total becomes 32 
register locations.  
 

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 byte 

Write Only 

Base A4 

Unused 

  

Base A5 

Unused 

  

Base A6 

Unused 

  

Base A7 

Unused 

  

Base A8 

Unused 

  

Base A9 

Unused 

  

Base AC 

Enable/Disable Buffer 

Write Only 

Base AD 

Disable Interrupts 

Write Only 

Base AE 

Enable Interrupts 

Write Only 

Base AF 

Clear Interrupt latch 

Write Only 

Base A10  Counter/Timer A0 

Read/Write 

Base A11  Counter/Timer A1 

Read/Write 

Base A12  Counter/Timer A2 

Read/Write 

Base A13  Counter/Timer A Control 

Read/Write 

Base A14  Counter/Timer B0 

Read/Write 

Base A15  Counter/Timer B1 

Read/Write 

Base A16  Counter/Timer B2 

Read/Write 

Base A17  Counter/Timer B Control 

Read/Write 

Base A18  Counter/Timer C0 

Read/Write 

Base A19  Counter/Timer C1 

Read/Write 

Base A1A  Counter/Timer C2 

Read/Write 

Base A1B  Counter/Timer C Control 

Read/Write 

 

Table 6-1:

 Address Assignment Table 

  
 
 

Содержание PCI-DIO-24D

Страница 1: ...10623 Roselle Street San Diego CA 92121 858 550 9559 FAX 858 550 7322 contactus accesio com www accesio com MODELS PCI DIO 24D and PCI DIO 24H Digital I O Cards USER MANUAL FILE MPCI DIO 24DH G1q...

Страница 2: ...S 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 2001 2005 by ACCES I O Products Inc 10623 Rosell...

Страница 3: ...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 reasonable...

Страница 4: ...ction Map version D 12 Figure 3 2 Option Selection Map version H 12 Chapter 4 Address Selection 13 Chapter 5 Software 14 Chapter 6 Programming 15 Table 6 1 Address Assignment Table 15 Table 6 2 Contro...

Страница 5: ...while I O connections to the H are via a 50 pin connector The cards are 4 8 inches long and may be installed in any 5V PCI bus slot in IBM and compatible personal computers These cards provide 24 bit...

Страница 6: ...3 of Port C if the IRQD jumper is installed and the INTSEL0 jumper is installed in the INT position When bit C3 goes high edge triggering an interrupt is requested For the H model card a rising edge...

Страница 7: ...MHz crystal controlled oscillator Active Count Edge Negative edge falling edge Min Clock Pulse Width 30 ns high 40 ns low Timer Range 16 bits x3 per i8254 Power Output Resettable 0 5A fused 5 VDC from...

Страница 8: ...Manual PCI DIO 24DH 8 Figure 1 1 Card D or H Block Diagram...

Страница 9: ...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 necessar...

Страница 10: ...nding on the operating system and automatically finish installing the drivers 9 Run PCIfind exe to complete installing the card into the registry for Windows only and to determine the assigned resourc...

Страница 11: ...er must be installed in EITHER the TST or the BEN position for the card to function Interrupt Mode Jumpers Place the Interrupt Select 0 jumper in the INT position to select the Digital I O interrupt p...

Страница 12: ...Manual PCI DIO 24DH 12 3 9 4 8 IRQD INT EXT IRQT INTEN INTSEL0 TST BEN Figure 3 1 Option Selection Map version D Figure 3 2 Option Selection Map version H...

Страница 13: ...cards and the respective IRQs if any allotted Alternatively some operating systems Windows95 98 2000 can be queried to determine which resources were assigned In these operating systems you can use ei...

Страница 14: ...tory as a tool for you to use in configuring jumpers on the card It is menu driven and provides pictures of the card on the computer monitor You make simple keystrokes to select functions The picture...

Страница 15: ...up 0 Read Write Base Address 2 PC Group 0 Read Write Base Address 3 Control byte Write Only Base Address 4 Unused Base Address 5 Unused Base Address 6 Unused Base Address 7 Unused Base Address 8 Unuse...

Страница 16: ...0 If your card has been modified for use in Mode 1 then there will be an Addenda sheet in the front of this manual These cards cannot be used in PPI Mode 2 because of byte nibble wide buffering Note...

Страница 17: ...oller is addressed If for example a control byte 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 groups then it is necessa...

Страница 18: ...in BASIC is provided as a guide to assist you in developing your working software In this example the card base address is 2D0 hex and the I O lines of group 0 are to be setup as follows Port A Input...

Страница 19: ...te to the card 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...

Страница 20: ...ount and starting the cycle over If a trigger occurs before the counter decrements to zero a new count is loaded This forms a retriggerable one shot In mode 1 a low output pulse is provided with a per...

Страница 21: ...e Read Counter A1 See description for Base 10 Write Read Base 12 Write Read Counter A2 See description for Base 10 Write Read Base 13 Write Counter Control Register The control byte specifies the coun...

Страница 22: ...1 M0 BCD SC0 SC1 These bits select the counter that the control byte is destined for SC1 SC0 Function 0 0 Program Counter 0 0 1 Program Counter 1 1 0 Program Counter 2 1 1 Read Write Cmd See section o...

Страница 23: ...is most generally used and is selected for each counter by setting the RW1 and RW0 bits to ones Subsequent read load operations must be performed in pairs in this sequence or the sequencing flip flop...

Страница 24: ...ditional parameter that identifies which features should be implemented on this call to the function Each feature can be identified by its unique integer value Multiple features can be run in a single...

Страница 25: ...s fall effectively one half the period The Base Address of the card is required as input to the function The signal should be applied to the CLOCK IN pin of the card Software latency will be affected...

Страница 26: ...I Gate 4 PC5 5 Counter A2 Freq Out 6 Port C Hi PC4 7 Counter B0 Freq in 8 PC3 9 Ctr B1 P W I Gate 10 PC2 11 Counter B2 Freq Out 12 PC1 13 Counter C0 Freq In 14 Port C Lo PC0 15 Ctr C1 P W I Gate 16 P...

Страница 27: ...rt C 7 Hi 3 Port B 7 22 Port C 6 Hi 4 Port B 6 23 Port C 5 Hi 5 Port B 5 24 Port C 4 Hi 6 Port B 4 25 Port C 3 Lo 7 Port B 3 26 Port C 2 Lo 8 Port B 2 27 Port C 1 Lo 9 Port B 1 28 Port C 0 Lo 10 Port...

Страница 28: ...anual 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 R...

Отзывы: