background image

PA 200 

Functions of the board 

 

  25

9.3

 

Programming examples in C, Pascal, Assembler, Basic 

/* 

TURBO C

                                                             */ 

/* Writes digital outputs of a PA200 board                             */ 
/* Used compiler: TURBO C version 2.0 mode SMALL                       */ 
 
 
#define Basic_Adr_PA200  0x390          /* Basic address of PA200 board*/ 
 
void main (void)                       /*    ***** Main program  ***** */ 
   { 
 
 
/* Example 1 :                             

                */ 

/* Writing occurs in 4 x 8 bits                        

*/ 

 
   outportb (Basic_Adr_PA200, 0xAA);        /* Bit 0 of value 0xAA on   */ 
                                            /* digital output number 1  */ 
 
   outportb (Basic_Adr 1, 0x55);   * Bit 7 of value 0x55 on   

*/ 

                                           /* digital output number 16  */ 
 
   outportb (Basic_Adr 2, 0xAA);   /* Bit 0 of value 0xAA on    */ 
                                          /* digital output number 17   */ 
 
   outportb (Basic_Adr 3, 0x55);  /* Bit 7 of value 0x55 on digital 
*/ 
                                        /* output number 32            */ 
   } 
 
 
 
 
 
 
 
 
 
(* 

TURBO PASCAL

                                  

        *) 

(* Writes digital outputs of a PA200 board             

     *) 

(* Used compiler: TURBO PASCAL version 4.0                         

*) 

PROGRAM  PA200; 
 
USES DOS; 
 
CONST 
    Basic_Adr_PA200 = $390;           (* Basic address of PA200 board 

*) 

 
BEGIN                                 (*    ****  Main program  ****    *) 
 
(* Example 1 :                                                          *) 
(* Writing occurs in 4 x 8 bits                                         *) 
 
   PORT [Basic_Adr_PA200]     := $0AA;      (* Bit 0 of value $0AA      *) 
                                       (* on digital output number 1 

*) 

   PORT [Basic_Adr 1] := $055;      (* Bit 7 of value $055   

*) 

                                            (* on digital output number 
16       *) 
   PORT [Basic_Adr 2] := $0AA;      (* Bit 0 of value $0AA      *) 
                                            (* on digital output number 
17       *) 
   PORT [Basic_Adr 3] := $055;  (* Bit 7 of value $055    *) 
                                (* on digital output number 32    *) 
END. 

Содержание ADDINUM PA 200

Страница 1: ...5th edition 10 2004 ADDI DATA GmbH Dieselstraße 3 D 77833 OTTERSWEIER 49 0 7223 9493 0 Technical description ADDINUM PA 200 Digital output board ...

Страница 2: ...only is protected by copyright Duplication of the information contained in the operating instructions and of any other product information or disclosure of this information for use by third parties is not permitted unless this right has been granted by the product licence issued Non compliance with this could lead to civil and criminal proceedings ADDI DATA software product licence Please read thi...

Страница 3: ...safety precautions yellow leaflet If this leaflet is not with the documentation please contact us and ask for it Observe the instructions of the manual Make sure that you do not forget or skip any step We are not liable for damages resulting from a wrong use of the board Used symbols i IMPORTANT designates hints and other useful information WARNING It designates a possibly dangerous situation If t...

Страница 4: ...5 1 Setting the base address through DIP switches 12 5 1 1 Windows NT 12 5 1 2 Windows XP 2000 9x 12 5 1 3 Decoding the base address 13 6 INSTALLATION OF THE BOARD 14 6 1 Opening the PC 14 6 2 Selecting a free slot 14 6 3 Plugging the board into the slot 15 6 4 Closing the PC 15 7 SOFTWARE 16 7 1 Board registration with ADDIREG 16 7 1 1 Installing a new board 16 7 1 2 Registering a new board 19 7 ...

Страница 5: ... Block of DIP switches S1 13 Fig 6 1 PCI 5V slot 32 bit 14 Fig 6 2 Opening the blister pack 14 Fig 6 3 Inserting the board 15 Fig 6 4 Fastening the board at the back cover 15 Fig 7 1 ADDIREG registration program example 17 Fig 8 1 37 pin SUB D male connector 21 Fig 8 2 Connection examples 22 Fig 9 1 Connection to the screw terminal board PX 901Functions of the board 23 Tables Table 5 1 Decoding ta...

Страница 6: ...ard PX 8500 allow to connect the 24 V supply voltage through a shielded cable The connection with our standard cable ST010 complies with the following specifications metallized plastic hoods shielded cable cable shield folded back and firmly screwed to the connector housing The use of the board in a PC could change the PC features regarding noise emission and immunity Increased noise emission or d...

Страница 7: ...d in electronics are entitled to perform the following works installation use maintenance 2 2 Personal protection Consider the country specific regulations about the prevention of accidents electrical and mechanical installations radio interference suppression ...

Страница 8: ...Handling of the board PA 200 8 3 HANDLING OF THE BOARD Fig 3 1 Correct handling ...

Страница 9: ...it values set by the norms IEC61326 as follows True value Set value ESD Discharge by contact air 4 8 kV 4 8 kV Fields 10 V m 10 V m Burst 4 kV 2 kV Conducted radio interferences 10 V 10 V 4 2 Physical set up of the board The board is assembled on a 4 layer printed circuit card Dimensions 230 mm 99 mm Installation in XT AT slot Connection to the peripheral 37 pin SUB D male connector Accessories1 S...

Страница 10: ... BIOS from Version 1 0 ISA bus interface 8 MHz Operating system MS Dos Windows NT 98 95 Output current logic 1 200 mA Signal delay 35 µs nominal Output current limit 1 A 1s Maximum authorized total current 1 6A Voltage drop at the output transistor at 200 mA 0 5 V Limit of the operating voltage switched by the output 30 V Test voltage of individual outputs against PC side 0 5 V Fuse slow 1 6A ...

Страница 11: ...PA 200 Technical data 11 4 4 Component scheme Fig 4 1 Component scheme ...

Страница 12: ... PC Check if the required address range is not already used by the PC or by another inserted board 5 1 1 Windows NT To check it open Start Programs Administrative tools common Windows NT diagnostics Click on I O Port 5 1 2 Windows XP 2000 9x To check it start the device manager under Start Settings Control Panel System Hardware Set the view to resources by type If the set base address is not displ...

Страница 13: ... designated S1 to S10 can be switched ON or OFF Caution A switch in ON position is equivalent to logic 0 A switch in OFF position is equivalent to logic 1 Switch J4 J3 J2 J1 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 Address bit A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 Table 5 1 Decoding table 0390H Switch J4 J3 J2 J1 S10 S9 S8 S7 S6 S5 S4 S3 S2 S1 State 0 0 0 0 0 0 1 1 1 0 0 1 0 0 Solder straps perman...

Страница 14: ...pen your PC as described in the manual of the PC manufacturer 6 2 Selecting a free slot Insert the board in a free ISA XT AT slot Fig 6 1 PCI 5V slot 32 bit Remove the back cover of the selected slot according to the instructions of the PC manufacturer Keep the back cover You will need it if you remove the board Discharge yourself from electrostatic charges Take the board out of its protective bli...

Страница 15: ...into the chosen slot Fig 6 3 Inserting the board Fasten the board to the rear of the PC housing with the screw which was fixed on the back cover Fig 6 4 Fastening the board at the back cover Tighten all the loosen screws 6 4 Closing the PC Close your PC as described in the manual of the PC manufacturer ...

Страница 16: ...with a CD ROM CD1 containing the driver and software samples for Windows NT 4 0 and Windows XP 2000 98 the ADDIREG registration program for Windows NT 4 0 and Windows XP 2000 98 7 1 Board registration with ADDIREG The ADDIREG registration program is a 32 bit program for Windows NT XP 2000 NT 4 0 9x The user can register all hardware information necessary to operate the ADDI DATA PC boards i IMPORT...

Страница 17: ...ess set in ADDIREG must correspond to the one set through DIP switches Access Selection of the access mode for the ADDI DATA digital boards Access in 8 bit or 16 bit or 32 bit mode PCI bus device slot Number of the used PCI bus slot and device If the board is no PCI board the message NO is displayed Interrupt Used interrupt of the board If the board supports no interrupt the message Not available ...

Страница 18: ...own menu The corresponding interrupt line is displayed in the field below Interrupt DMA name for ISA boards only When the board supports 2 DMA channels you can select which DMA channel is to be changed DMA channel for ISA boards only Selection of the used DMA channel Buttons Edit Selection of the highlighted board with the different parameters set in the text boxes Set Sets the parametered board c...

Страница 19: ...trations of all board listed in the table Print registration Prints the registration parameter on your standard printer Quit Quits the ADDIREG program 7 1 2 Registering a new board i IMPORTANT To register a new board you must have administrator rights Only an administrator is allowed to register a new board or change a registration Call up the ADDIREG program Fig 7 1 is displayed on the screen Cli...

Страница 20: ...hange a registration Call up the ADDIREG program Select the board to be changed The board parameters Base address DMA channel are listed in the lower fields Click on the parameter s you want to set and open the scroll function s Select a new value Activate it with a click Repeat the operation for each parameter to be modified Once the wished configuration is set click on Set Save the configuration...

Страница 21: ...PA 200 Connecting the peripheral 21 8 CONNECTING THE PERIPHERAL 8 1 Connector pin assignment Fig 8 1 37 pin SUB D male connector ...

Страница 22: ...Connecting the peripheral PA 200 22 8 2 Connection examples Fig 8 2 Connection examples ...

Страница 23: ...PA 200 Connecting the peripheral 23 8 3 Connection to the screw terminal boards Fig 8 3 Connection to the screw terminal board PX 901Functions of the board ...

Страница 24: ... transistors 9 2 Programming For information exchange between the CPU and the board 4 addresses are assigned which are differentiated through the 2 lowest address bits The highest address bits A2 A15 are compared with the DIP switch as described in chapter 7 The board needs no software initialization It can be directly selected over its adjusted address with the basic command OUT for example Suppo...

Страница 25: ...sic_Adr_PA200 2 0xAA Bit 0 of value 0xAA on digital output number 17 outportb Basic_Adr_PA200 3 0x55 Bit 7 of value 0x55 on digital output number 32 TURBO PASCAL Writes digital outputs of a PA200 board Used compiler TURBO PASCAL version 4 0 PROGRAM PA200 USES DOS CONST Basic_Adr_PA200 390 Basic address of PA200 board BEGIN Main program Example 1 Writing occurs in 4 x 8 bits PORT Basic_Adr_PA200 0A...

Страница 26: ...17 MOV AL AH INC DX OUT DX AL Bit 7 of value AL on digital output number 32 MOV AH 4CH Back to DOS INT 21H END TURBO BASIC Writes digital outputs of a PA200 board Used compiler TURBO BASIC version 1 00 Basic_AddressPA200 H390 Basic address of PA200 board Writing value H0AA on Less Significant Byte Writing value H055 on Most Significant Byte 16 Bit LSW Writing value H0AA on Less Significant Byte Wr...

Отзывы: