NuDAQ PET-48DIO User Manual Download Page 8

 Installation 

Logic level 1 : From 2.0 V to 5.0 V 

Input loading: 0.2 mA at 0.4 V 

Input hysteresis: From 0.2 V to 0.4 V 

Frequency Response: 500 KHZ 

Ø 

Digital Output 

Current sink of logic level 0 : 24 mA Max, 

Current source of logic level 1 : 15 mA Max. 

Driving capacity : 15 TTL's gate 

Frequency Respons e: 500 KHZ 

Ø 

Programmable Event counter 

Frequency Response : DC to 2 MHZ 

Counter ranger : From 1 to 65536 

Trigger edge : Rising edge or falling edge 

Ø 

Programmable Timer  Pacer  

Clock frequency : 32.768 KHZ or 2 MHZ 

Frequency divider : Programmable 

Counter : 32-bit ( two 16-bit counters cascaded together) 

Ø 

Source of Interrupt  

Event counter count up 

Timer time out 

Input from ports     

1.2  Applications 

Ø 

Digital Input 

Contact closure monitoring 

Switch status monitoring 

BCD interface receiver 

Digital signal interface 

Ø 

Digital Output 

Industrial ON / OFF control 

Digital signal interface  

BCD interface driver 

 

Summary of Contents for PET-48DIO

Page 1: ...NuDAQ PET 48DIO Programmable 48 bit DIO Event and Timer Cards User s Guide...

Page 2: ......

Page 3: ...arising out of the use or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copyright All ri...

Page 4: ...RO nupro Adlink com tw Software sw Adlink com tw AMB amb Adlink com tw TEL 886 2 82265877 FAX 886 2 82265717 Address 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan R O C Please inform or FAX us...

Page 5: ...nfiguration Setting 10 2 8 Interrupt IRQ Level Setting 11 2 9 Timer Event Interrupt Setting 11 2 9 1 Timer Interrupt Setting JP10 12 2 9 2 Event Counter Setting JP11 12 2 9 3 Timer Clock Source Settin...

Page 6: ...install the 7248 96 series products The layout of are shown the jumper settings the connectors specifications and the notes for installation are described Chapter 3 Register Structure Format describes...

Page 7: ...as programmable real time interrupt source Thes e functionality make the PET 48DIO are very powerful to support complex digital I O control applications Only two bytes of I O address are occupied by P...

Page 8: ...onse DC to 2 MHZ l Counter ranger From 1 to 65536 l Trigger edge Rising edge or falling edge Programmable Timer Pacer l Clock frequency 32 768 KHZ or 2 MHZ l Frequency divider Programmable l Counter 3...

Page 9: ...h digital I O Windows 3 1 95 98 NT ACLS DLL1 can be used for many programming environments such as VC VB Delphi The ACLS DLL1 included in the ADLINK CD is 2 hour demo version you can install it withou...

Page 10: ...duct in the future 2 2 Unpacking Your PET 48DIO card contains sensitive electronic components that can be easily damaged by static electricity The card should be done on a grounded anti static mat The...

Page 11: ...shown in the figure 2 1 below JP1 JP2 JP3 JP6 JP7 JP8 CN1 CN2 SW1 JP5 JP4 JP9 JP10 JP11 JP12 JP13 JP14 Fig 2 1 Layout of PET 48DIO 2 4 Jumper and DIP Switch Description You can change the PET 48DIO ch...

Page 12: ...ot conflict with any PC reserved I O address see Appendix A 3 The base address must not conflict with any add on card on your own PC Please check your PC before installing the PET 48DIO The PET 48DIO...

Page 13: ...N 0 ON 0 ON 0 ON 0 ON 0 ON 0 OFF 1 004 005 ON 0 ON 0 ON 0 ON 0 ON 0 ON 0 ON 0 OFF 1 ON 0 300 301 default OFF 1 OFF 1 ON 0 ON 0 ON 0 ON 0 ON 0 ON 0 ON 0 3FC 3FD OFF 1 OFF 1 OFF 1 OFF 1 OFF 1 OFF 1 OFF...

Page 14: ...p and pull down the I O ports The PET 48DIO can pull up PA PB PC to 5V and pull down PA PB and PC to ground A typical application where pull up resistors are used to monitor switch closure One network...

Page 15: ...tor I O Port Jumper PB1 JP1 CN1 PC1 JP2 PA1 JP4 PB0 JP6 CN2 PC0 JP7 PA0 JP9 Table 2 2 Jumper for Pull Up Pull Down Setting Jumper settting of for JP1 JP2 JP4 JP6 JP7 and JP9 Pull up to 5V Default Sett...

Page 16: ...pin 4 of CN1 and CN2 can be configuration as 12V or Ground GND The JP3 and JP8 are used for the configuration of CN1 and CN2 respectively The jumper settings are illustrated as below JP3 for CN1 JP8...

Page 17: ...ult interrupt jumper setting IRQ5 You should only remove the jumper from IRQ5 to other pins if you want to change to another IRQ level Note Be aware that there is no other add on card shares the same...

Page 18: ...rupt Setting JP10 The jumper JP10 is used for enabling or disabling timer interrupt and the default jumper setting is illustrated as below 2 9 2 Event Counter Setting JP11 The JP11 is for enabling or...

Page 19: ...000122 sec 131072 sec 2 MHZ 0 000002 sec 2147 4836 sec The following equation is to calculate timer setting range Timer range 1 Timer Clock source Divide 1 Divide 2 Divide 1 is loading data of 8253 co...

Page 20: ...ng PC0D3 to generate an interrupt when input is PC0D3 PC0D7 as programmable interrupt input refer to the table below 1 3 5 Disable PC0D3 PC0D7 as interrupt input ports factroy default PC0D3 PC0D7 GENE...

Page 21: ...ng PC1D3 to generate an interrupt when input is PC1D3 PC1D7 as programmable interrupt input refer to the table below 1 3 5 Disable PC1D3 PC1D7 as interrupt input ports factroy default PC1D3 PC1D7 GENE...

Page 22: ...y be individually programmed in 2 groups of 12 or 3 groups of 8 Figure shows PET 48DIO equally 8255 block diagram PORT A PORT C UPPER 4 PA 7 PA 0 PC 7 PC 4 Group B Control PORT C LOWER 4 PC 3 PC 0 POR...

Page 23: ...8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 Port C data 7 Port C data 6 Port B data 7 Port A data 7 5V Port B data 6 Port B data 5 Port B data 4 Port B data 3 Port B data 2 Port B...

Page 24: ...8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 Port C data 7 Port C data 6 Port B data 7 Port A data 7 5V Port B data 6 Port B data 5 Port B data 4 Port B data 3 Port B data 2 Port B...

Page 25: ...on programs which can help to reduce your programming effort 1 Turn your PC s power switch on 2 Put the ADLINK CD into the appropriate CD driver 3 Type the commands X indicates the CD ROM driver X CD...

Page 26: ...ched whereas inputs are not latched l 16 different input output configurations are available PC0 is used to generate a hardware interrupt and PC4 is used to control programmable interrupt The I O of P...

Page 27: ...0 1 I P I P O P I P 9AH 1 1 1 0 I P I P I P O P 9BH 1 1 1 1 I P I P I P I P Table 3 1 Summarize of control word D0 D4 and mode state Mode 0 Mode 15 3 3 Register Structure The PET 48DIO needs two byte...

Page 28: ...ELECT INDEX Description GROUP 0 PA0 0H EMULATE AS 8255 PA GROUP 0 PB0 1H EMULATE AS 8255 PB GROUP 0 PC0 2H EMULATE AS 8255 PC CONTROL WORD of GROUP 0 3H EMULATE AS 8255 CW GROUP 1 PA1 4H EMULATE AS 82...

Page 29: ...ed in the ACLS DLL1 Please contact your dealer of ADLINK products 3 4 1 Programming in Assembly Langrage The following parts are example programs written in assemble for reference To initial I O ports...

Page 30: ...AL INDEX TO PA0 JMP 2 DELAY INC DX POINT TO DATA READ WRITE ADDRESS MOV AL 55H OUT DX AL WRITE 55H TO PA0 JMP 2 DEC DX To access the port MOV DX INDEX DATA OF INDEX SAME AS I O ADDRESS THAT SET BY SW1...

Page 31: ...P 2 DELAY MOV AL CW1 CW1 01110100B OUT DX AL 8253 COUNT 1 AS MODE 2 RATE GENERATOR JMP 2 DELAY MOV AL CW2 CW2 10110000B OUT DX AL 8253 COUNT 2 AS MODE 0 INTERRUPT ON TERMINAL COUNT JMP 2 DELAY To set...

Page 32: ...NT TO DATA READ WRITE ADDRESS MOV AL 10H LOAD LEAST BYTE 10H OUT DX AL LOAD LEAST BYTE JMP 2 DELAY MOV AL 00H LOAD MOST BYTE 00H OUT DX AL LOAD MOST BYTE JMP 2 DELAY To clear and enable interrupt MOV...

Page 33: ...port 1 To write port define INDEX 0x300 INDEX same as SW setting define DATA 0x301 data R W port define CW1 0x3 port 0 CW define MOD0 0x0 8255 mode 0 Port A B C are output port define PA0 0x0 port A0...

Page 34: ...DATA CWD533 initial counter 3 To set event counter define INDEX 0x300 INDEX same as SW setting define DATA 0x301 data R W port define CW530 0x80 event counter index outportb INDEX CW530 index to coun...

Page 35: ...o h Constants Decalerations define LOBYTE arg unsigned char arg define HIBYTE arg unsigned char arg 1 define LOWORD arg unsigned int arg define HIWORD arg unsigned int arg 1 Define Relative Addresses...

Page 36: ...ia 0xbe ia 0x0 ia ia 5 inter 1 outp INDEX 0x3 inp DATA outp IC8259_1 0x20 Timer pacer interval is depend on the value of c1 and c2 void set_timer int c1 int c2 outp INDEX CCW outp DATA 0x76 outp DATA...

Page 37: ...ramming 31 outp INDEX CW0 outp DATA 0x09 mode 5 PA0 PB0 are output set_timer 1400 2400 do if inter 1 outp INDEX 0x03 inp DATA printf interrupt n inter 0 while kbhit 0 setvect 0x0d old_isr outp 0x21 0x...

Page 38: ...g its specifications or if the serial number has been removed Seller does not assume any liability for consequential damages as a result from our products use and in any event our liability shall not...

Reviews: