Embedded Solutions P104-DIO-96 Скачать руководство пользователя страница 12

Manual P104-DIO-96 

12

Chapter 5: Programming

 

 

The board is an I/O mapped device that is easily configured from any language and any language can 
easily perform digital I/O through the board'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 Own Software

 

 
If you wish to gain a better understanding of the programs listed in the previous section, then the 
information in the following paragraphs will be of interest to you.  
  
Four register locations are required per 24-bit group. Thus the 96 uses a total of 16 registers for groups 0 
through 3. 
 

 

Standard 8255 Compatibility Option

 

Improved Speed Option

 

Offset

 

Write

 

Read

 

Write

 

Read

 

Base+0

 

Group 0 Port A

 

Group 0 Port A

 

Group 0 Port A

 

Group 0 Port A

 

Base+1

 

Group 0 Port B

 

Group 0 Port B

 

Group 0 Port B

 

Group 0 Port B

 

Base+2

 

Group 0 Port C

 

Group 0 Port C

 

Group 0 Port C

 

Group 0 Port C

 

Base+3

 

Group 0 CMD

 

 

Group 1 Port A

 

Group 1 Port A

 

Base+4

 

Group 1 Port A

 

Group 1 Port A

 

Group 1 Port B

 

Group 1 Port B

 

Base+5

 

Group 1 Port B

 

Group 1 Port B

 

Group 1 Port C

 

Group 1 Port C

 

Base+6

 

Group 1 Port C

 

Group 1 Port C

 

Group 2 Port A

 

Group 2 Port A

 

Base+7

 

Group 1 CMD

 

 

Group 2 Port B

 

Group 2 Port B

 

Base+8

 

Group 2 Port A

 

Group 2 Port A

 

Group 2 Port C

 

Group 2 Port C

 

Base+9

 

Group 2 Port B

 

Group 2 Port B

 

Group 3 Port A

 

Group 3 Port A

 

Base+A

 

Group 2 Port C

 

Group 2 Port C

 

Group 3 Port B

 

Group 3 Port B

 

Base+B

 

Group 2 CMD

 

 

Group 3 Port C

 

Group 3 Port C

 

Base+C

 

Group 3 Port A

 

Group 3 Port A

 

Group 0 CMD

 

 

Base+D

 

Group 3 Port B

 

Group 3 Port B

 

Group 1 CMD

 

 

Base+E

 

Group 3 Port C

 

Group 3 Port C

 

Group 2 CMD

 

 

Base+F

 

Group 3 CMD

 

 

Group 3 CMD

 

 

Base+10  
through  
Base+1E

 

Reserved

 

Reserved

 

 

 

Reserved

 

Reserved

 

Base+1F

 

Reset Card

 

 

 

Reset Card

 

 

 

Table 5-1

: Base Registers

  

 
 
 
 

Содержание P104-DIO-96

Страница 1: ...ße 316 D 57080 Siegen ADL Embedded Solutions Inc 4411 Morena Blvd Suite 101 Germany P 49 0 271 250 810 0 F 49 0 271 250 810 20 San Diego CA 92117 4345 P 1 858 490 0597 F 1 858 490 0599 e mail sales adl europe com web www adl europe com e mail sales adl usa com web www adl usa com EmbeddedSolutions ...

Страница 2: ...M PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright 2002 2006 by ADL Embedded Solutions Inc 4411 Morena Blvd Suite 101 San Diego CA 92117 All rights reserved WARNING ALWAYS CONNECT AND DISCONNECT YOUR FIELD CABLING WITH THE COMPUTER POWER OFF ALWAYS TURN COMPUTER POWER OFF BEFORE INSTALLING A BOARD CONNECTING AND DISCONNECTING ...

Страница 3: ...nformation 9 Chapter 3 Option Selection 10 Figure 3 1 Option Selection Map 10 Chapter 4 Address Selection 11 Chapter 5 Programming 12 Table 5 1 Base Registers 12 Table 5 2 Control Register Bit Assignments 13 Chapter 6 Connector Pin Assignments 15 ...

Страница 4: ... is achieved Outputs of the I O buffers are pulled up through 10KΩ resistors to 5VDC On power up all I O pins are inputs This means that the lines are at a logic HIGH The user may request the factory to remove these 10KΩ resistors so that the I O lines will not be driven on power up 10 uA leakage per pin I O wiring connections are via 50 pin headers on the board This provides compatibility with OP...

Страница 5: ...nector 24M bytes per second in 8255 emulation mode From I O connector to PCI bus 28M bytes per second with Fast PPI port map From PCI bus to I O connector 18M bytes per second with Fast PPI port map Digital Inputs TTL Compatible Logic High 2 0 to 5 0 VDC Logic Low 0 5 to 0 8 VDC Input Load High 10uA Input Load Low 10uA Digital Outputs Logic High 2 5 VDC min source 32 mA Logic Low 0 5 VDC max sink ...

Страница 6: ...Manual P104 DIO 96 6 Figure 1 1 Block Diagram ...

Страница 7: ... examples below CD Installation The following instructions assume the CD ROM drive is drive D Please substitute the appropriate drive letter for your system as necessary DOS 1 Place the CD into your CD ROM drive 2 Type d K to change the active drive to the CD ROM drive 3 Type installK to run the install program 4 Follow the on screen prompts to install the software for this board WINDOWS 1 Place t...

Страница 8: ...the memory map and I O map is reserved etc Similarly the CPU s interrupt controller resources INTA INTB INTC INTD will be distributed among the cards in the stack A set of four to one multiplexers and two slide switches are used to select which PCI clock IDSEL and INT lines are routed to the board s PCI bus interface Only four boards are allowed in a PCI Plus stack each board must get a specific s...

Страница 9: ...er 2 Position the slide switches to select the clock IDSEL and interrupt signal group 3 Install the card in a PC 104 Plus stack 4 Install I O cables at P1 and P2 5 Inspect for proper fit of the card and cable and then tighten the screws Figure 2 1 PC 104 Key Information ...

Страница 10: ...e common to all four boards in the PCI stack However there are four unique signal groups one for each board The slide switches select which signal group goes to each card The card in the stack closest to the CPU board must get signal group 0 Figure 3 1 Option Selection Map ...

Страница 11: ...the respective IRQs if any allotted Alternatively some operating systems Windows 95 98 2000 can be queried to determine which resources were assigned In these operating systems you can use either PCIFind DOS PCINT Windows95 98 NT or the Device Manager utility from the System Applet of the control panel The board is installed in the Data Acquisition class of the Device Manager list Selecting the ca...

Страница 12: ...roup 0 Port A Group 0 Port A Group 0 Port A Group 0 Port A Base 1 Group 0 Port B Group 0 Port B Group 0 Port B Group 0 Port B Base 2 Group 0 Port C Group 0 Port C Group 0 Port C Group 0 Port C Base 3 Group 0 CMD Group 1 Port A Group 1 Port A Base 4 Group 1 Port A Group 1 Port A Group 1 Port B Group 1 Port B Base 5 Group 1 Port B Group 1 Port B Group 1 Port C Group 1 Port C Base 6 Group 1 Port C Gr...

Страница 13: ...it assignments and functionality of the control register has been kept to maintain backward compatibility with existing software The emulated 8255 chips differ from the original in that when a port is configured to be outputs the I O pins default to a HIGH state rather than a LOW state A port that is programmed to be inputs may have a value written to it A READ of the port will return the state of...

Страница 14: ...D5 0 0 D4 1 Port A input D3 1 Port C Hi input D2 0 0 D1 0 Port B output D0 0 Port C Lo output This corresponds to 98 hex If the card base address is 2D00 hex use the BASIC OUT command to write to the control register as follows 10 BASEADDR H2D00 20 OUT BASEADDR 3 H98 To read the inputs at Port A and the upper nybble of Port C use the BASIC INPUT command 30 X INP BASEADDR Read Port A 40 Y INP BASEA...

Страница 15: ...gnment Pin Assignment Pin PC7 1 2 PC6 3 4 PC5 5 6 Port C Hi PC4 7 8 PC3 9 10 PC2 11 12 PC1 13 14 Port C Lo PC0 15 16 PB7 17 18 PB6 19 20 PB5 21 22 PB4 23 24 PB3 25 26 PB2 27 28 PB1 29 30 Port B PB0 31 32 PA7 33 34 PA6 35 36 PA5 37 38 PA4 39 40 PA3 41 42 PA2 43 44 PA1 45 46 Port A PA0 47 48 5 VDC 49 All Even Numbered Pins are GROUND 50 ...

Страница 16: ...d and include your mailing address so that we can send you any manual updates ADL Embedded Solutions GmbH Eiserfelder Straße 316 D 57080 Siegen ADL Embedded Solutions Inc 4411 Morena Blvd Suite 101 Germany P 49 0 271 250 810 0 F 49 0 271 250 810 20 San Diego CA 92117 4345 P 1 858 490 0597 F 1 858 490 0599 e mail sales adl europe com web www adl europe com e mail sales adl usa com web www adl usa c...

Отзывы: