ADLINK Technology NuDAQ cPCI-7249R Скачать руководство пользователя страница 59

C/C++ Libraries 

 45

72XX Series

User’s Manual

5.7

Configuration Channel

@ Description 

This function is used to configure the Input or Output of each 
Channel. Each I/O Port of PCI-7224/7248/7296 is either input or 
output, so it has to be configured as input or output before I/O 
operations are applied. 

@ Syntax

C/C++ (DOS)

U16  _7248_Config_Channel (U16 cardNo, U16 

channelNo, U16 ctrlValue)

U16  _7249_Config_Channel (U16 cardNo, U16 

channelNo, U16 ctrlValue)

U16  _7296_Config_ Channel (U16 cardNo, U16 

channelNo, U16 ctrlValue)

C/C++ (Windows 95)

U16  W_7248_Config_Channel (U16 cardNo, U16 

channelNo, U16 ctrlValue)

U16  W_7249_Config_Channel (U16 cardNo, U16 

channelNo, U16 ctrlValue)

U16  W_7296_Config_ Channel (U16 cardNo, U16 

channelNo, U16 ctrlValue)

Visual Basic (Windows 95)

W_7248_Config_Channel (ByVal cardNo As Integer, 

ByVal channelNo As Integer, ByVal ctrlValue 

As Integer) As Integer

W_7249_Config_Channel (ByVal cardNo As Integer, 

ByVal channelNo As Integer, ByVal ctrlValue 

As Integer) As Integer

W_7296_Config_ Channel (ByVal cardNo As Integer, 

ByVal channelNo As Integer, ByVal ctrlValue 

As Integer) As Integer

Содержание NuDAQ cPCI-7249R

Страница 1: ...Advance Technologies Automate the World Manual Revision 2 61 Revision Date July 4 2009 Part Number 50 11104 2020 72XX Series 24 48 96 CH Digital I O Card User s Manual...

Страница 2: ...72XX Series User s Manual ii...

Страница 3: ...e Support 5 1 4 1 Programming Library 5 2 Installation 7 2 1 What You Have 7 2 2 Unpacking 8 2 3 PCB Layout 9 2 3 1 PCI 7248 7224 PCB Layout 9 2 3 2 PCI 7296 PCB Layout 9 2 3 3 cPCI 7248 PCB Layout 10...

Страница 4: ...eory 25 4 1 Digital I O Ports 25 4 1 1 Introduction 25 4 1 2 8255 Mode 0 25 4 1 3 Special Function of the DIO Signals 25 4 1 4 Digital I O Port Programming 26 4 1 5 Control Word 27 4 1 6 Power On Conf...

Страница 5: ...Data Types 36 5 3 _7248 96_Initial 37 5 4 Digital Input 39 5 5 Digital Output 42 5 6 Configuration Port 43 5 7 Configuration Channel 45 5 8 Set Interrupt Control 47 5 9 Timer Start 49 5 10 Timer Read...

Страница 6: ...vi Table of Contents 72XX Series User s Manual This page intentionally left blank...

Страница 7: ...I 7249R Layout 10 Figure 2 5 PCIe 7248 7296 PCB Layout 11 Figure 2 6 Pin assignments and power signals of PCI PCIe 7224 7248 7296 14 Figure 2 7 Pinout and power signals of cPCI 7248 16 Figure 2 8 R724...

Страница 8: ...72XX Series User s Manual viii List of Figures This page intentionally left blank...

Страница 9: ...st of Tables Table 2 1 Jumpers and Port names list 19 Table 3 1 I O Address Map 24 Table 4 1 I O Port Names 26 Table 4 2 Summary of control word D0 D4 27 Table 4 3 ISC register format 33 Table 4 4 IRQ...

Страница 10: ...x List of Tables 72XX Series User s Manual This page intentionally left blank...

Страница 11: ...f such damages Trademarks Borland C C and Delphi are registered trademarks of the Borland Software Corporation Intel is a registered trademark of Intel Corporation LabVIEW is a trademark of National I...

Страница 12: ...5200 USA only Fax 1 408 360 0222 Email info adlinktech com ADLINK Technology Beijing Address 1 E 801 100085 Rm 801 Power Creative E No 1 B D Shang Di East Rd Beijing 100085 China Tel 86 10 5885 8666...

Страница 13: ...151 0072 Japan Tel 81 3 4455 3722 Fax 81 3 5333 6040 Email japan adlinktech com ADLINK Technology Inc Korean Liaison Office Address 60 12 4 402 No 402 Dongsung B D 60 12 Nonhyeon Dong Gangnam gu Seoul...

Страница 14: ...xiv 72XX Series User s Manual This page intentionally left blank...

Страница 15: ...uced version of PCI 7248 where all functions are exactly the same as PCI 7248 with the exception that there are only 24 channels The cPCI 7248 is the 3U CompactPCI version of the PCI 7248 The software...

Страница 16: ...r driving Direct interface with OPTO 22 compatible I O module Output status read back 1 1 2 Timer Counter and Interrupt System A 32 bits timer to generate watchdog timer interrupt A 16 bits event coun...

Страница 17: ...mum 2 4 V Logic Low Voltage Maximum 0 5V Logic High Current 2 6 mA Logic Low Current 24 0 mA Digital Output Signal Port C Logic High Voltage Minimum 2 4 V Logic Low Voltage Maximum 0 4V Logic High Cur...

Страница 18: ...PCIe 7248 350 mA 12VDC 280 mA 3 3VDC PCIe 7296 590 mA 12VDC 280 mA 3 3VDC cPCI 7248 470mA 5VDC Typical 560mA 5VDC Maximum cPCI 7249R 700mA 5VDC Typical Transfer Rate 500 K bytes s Maximum PCB Dimensio...

Страница 19: ...al code 1 4 1 Programming Library For customers who are writing their own programs we provide function libraries for many different operating systems including DOS Library Borland C C and Microsoft C...

Страница 20: ...that allows linking to a shared library The user s guide and function reference manual of PCIS DASK X are in the CD Manual_PDF Soft ware PCIS DASK X The above software drivers are shipped with the bo...

Страница 21: ...stem section 2 5 Connector pin assignment section 2 6 Jumpers setup section 2 7 Termination boards connection section 2 8 2 1 What You Have In addition to this User s Manual the package also includes...

Страница 22: ...ge Shipping and handling may cause damage to your module Ensure there is no shipping and handling damage on the module before processing After opening the card module carton remove the system module a...

Страница 23: ...llation 9 72XX Series User s Manual 2 3 PCB Layout 2 3 1 PCI 7248 7224 PCB Layout Figure 2 1 PCI 7248 7224 PCB Layout 2 3 2 PCI 7296 PCB Layout PCI Controller CN1 CN2 CN3 CN4 Figure 2 2 PCI 7296 PCB L...

Страница 24: ...llation 72XX Series User s Manual 2 3 3 cPCI 7248 PCB Layout CPCI 7248 CN1 PCI Controller Chip JA1 JB1 JC1 JC2 JB2 JA2 Figure 2 3 cPCI 7248 PCB Layout 2 3 4 cPCI 7249R PCB Layout Figure 2 4 cPCI 7249R...

Страница 25: ...72XX Series User s Manual 2 3 5 PCIe 7248 7296 PCB Layout 167 6 5 169 5 5 12 6 3 10 0 3 5 CN1 CN2 CN3 CN4 JA2 JB2 JC2 JP2 JA1 JB1 JC1 JP1 JA3 JB3 JC3 JP3 JA4 JB4 JC4 JP4 U51 U5 U3 Figure 2 5 PCIe 7248...

Страница 26: ...her methods 2 4 2 PCI PCI Express slot selection The PCI PCIe card can be inserted into any PCI PCI Express slot without any configuration for system resource Please note that the PCI PCIe system boar...

Страница 27: ...uildup on your body by touching the metal case of the com puter Hold the edge and do not touch the components 6 Position the board into the slot you selected 7 Secure the card on the back plane by usi...

Страница 28: ...of 7224 7248 7296 s connectors CN1 CN4 Figure 2 6 Pin assignments and power signals of PCI PCIe 7224 7248 7296 The DIO pin names are specified as PnXb where n means the connector reference number n 1...

Страница 29: ...r s Manual For example P1C4 means bit 4 of port C on connector CN1 Note 1 The pinout of the CN1 CN4 connectors are identical 2 The power supply pins are protected by resettable fuses Refer to section...

Страница 30: ...ls on power supply 1 P1A0 26 P2A0 51 EVENT 76 GND 2 P1A1 27 P2A1 52 GND 77 GND 3 P1A2 28 P2A2 53 GND 78 GND 4 P1A3 29 P2A3 54 GND 79 GND 5 P1A4 30 P2A4 55 GND 80 GND 6 P1A5 31 P2A5 56 GND 81 GND 7 P1A...

Страница 31: ...for counter 0 V5V Onboard un regulated 5V power supply output 12V Onboard un regulated 12V power supply output 1 P1A0 26 P2A0 51 EVENT 76 GND 2 P1A1 27 P2A1 52 GND 77 GND 3 P1A2 28 P2A2 53 GND 78 GND...

Страница 32: ...R s rear I O transition board R7249 is equipped with two 50 pin male IDC connectors XCN2 XCN3 that interface with OPTO 22 Figure 2 8 R7249 OPTO 22 Connectors Pin Assignment Note The power supply pins...

Страница 33: ...ence number of the jumpers and the corresponding port names Jumper Port Name Remarks JA1 P1A Port A of CN1 for PCI 7224 7248 7296 PCIe 7248 7296 cPCI 7248 JB1 P1B Port B of CN1 for PCI 7224 7248 7296...

Страница 34: ...CN1 are power on pulled low L 3 Port A of CN1 are power on floating The jumper is removed 2 7 2 12V Power Supply Configuration The pin 2 and pin 4 of the CN1 CN4 50 pin OPTO 22 connectors can be confi...

Страница 35: ...can be connected with PCI 7248 7296 for isolated I O expansion 1 TB 24R DIN 24R The TB 24R and DIN 24R provide 24 Form C relays for digital output control 2 TB 24 P DIN 24P The TB 24P and DIN 24P prov...

Страница 36: ...channels and 8 relay outputs 4 TB 24 DIN 50S TB 24 and DIN 50S are termination boards with 50 pin ribbon connector They are used for general purpose applications 5 DIN 100S DIN 100S is equipped with...

Страница 37: ...ized and controlled by the Plug and Play PCI BIOS Users can study the PCI BIOS specification to understand the operation of the PCR Please contact PCISIG to acquire the specifications of the PCI inter...

Страница 38: ...0x01 P1B P1B 0x02 P1C P1C 0x03 P1Ctrl Not used 0x04 P2A P2A PCI 7248 PCI 7296 cPCI 7248 49R PCIe 7248 7296 0x05 P2B P2B 0x06 P2C P2C 0x07 P2Ctrl Not used 0x08 P3A P3A P1AE 1 PCI 7296 PCIe 7296 1 for...

Страница 39: ...e 0 are Two 8 bit I O ports port A PA and port B PB Two nibble wide 4 bit ports C PC upper and PC lower Each port can be used as either input or output Outputs are latched whereas inputs are buffered...

Страница 40: ...manual as well as in the software library The pro gramming for PCI 7224 7248 7296 PCIe 7248 7296 and cPCI 7248 are fully compatible There are four ports on every 8255 PPI including ports A B C and th...

Страница 41: ...R PORT B PORT C LOWER 00H 0 0 0 0 O P O P O P O P 01H 0 0 0 1 O P O P O P I P 02H 0 0 1 0 O P O P I P O P 03H 0 0 1 1 O P O P I P I P 08H 0 1 0 0 O P I P O P O P 09H 0 1 0 1 O P I P O P I P 0AH 0 1 1...

Страница 42: ...section 2 7 for setting the power on status of the DIO ports 4 1 7 Note for Output Data Be careful of the initial condition of digital output signals If users set the control word as output port after...

Страница 43: ...in Figure 4 2 Figure 4 2 Timer counter system of 7248 96 series Timers 1 and 2 of the 8254 chip are cascaded as a 32 bit pro grammable timer In the software library Timers 1 and 2 are always set as mo...

Страница 44: ...ollowing web site http support intel com support controllers peripheral 231164 htm or http www tundra com for Tundra s 82C54 datasheet 4 2 3 Cascaded 32 Bits Timer The input clock frequency of the cas...

Страница 45: ...nals INT1 and INT2 come from digi tal input signals or the timer counter output An interrupt source multiplexer MUX is used to select the IRQ sources Fig 4 3 shows the interrupt system 4 3 2 IRQ Level...

Страница 46: ...nterrupt The sources of INT1 and INT2 are selectable by the Interrupt Source Control ISC Register 4 3 4 Interrupt Source Control In ISC register offset 0x20 there are four bits to control the IRQ sour...

Страница 47: ...e 1 X X 0 1 P1C0 falling edge of P1C0 Mode 2 X X 1 0 P1C0 OR P1C3 see following Mode 3 X X 1 1 Event Counter Counter count down to 0 INT2 D3 D2 D1 D0 IRQ Source IRQ Trigger Condition Disable 0 0 X X I...

Страница 48: ...larger than this the resistance of the resettable fuse will increase due to the rise in temperature This in turn will cause the power supply to drop and reduce its current If the short ing or overload...

Страница 49: ...applied to PCI 7224 The function prototypes and some useful constants are defined in the header files LIB directory DOS and INCLUDE directory Win dows 95 For Windows 95 DLL the developing environment...

Страница 50: ...indows 95 DLL driver e g W_7248_Initial 5 2 2 Data Types We defined some data type in Pci_7248 h DOS and Acl_pci h Windows 95 These data types are used by NuDAQ Cards library ADLINK Technology Inc sug...

Страница 51: ...stCards PCI_INFO pciInfo U16 _7296_Initial U16 existCards PCI_INFO pciInfo C C Windows 95 U16 W_7248_Initial U16 existCards PCI_INFO pciInfo U16 W_7249_Initial U16 existCards PCI_INFO pciInfo U16 W_72...

Страница 52: ...I 7224 7248 7296 cards are installed in your system pciinfo It is a format to record the PCI bus Plug and Play initialization information which is decided by the Plug and Play BIOS The PCI_INFO struct...

Страница 53: ...diData U16 _7249_DI U16 cardNo U16 channelPort U8 diData U16 _7296_DI U16 cardNo U16 channelPort U8 diData C C Windows 95 U16 W_7248_DI U16 cardNo U16 channelPort U16 diData U16 W_7249_DI U16 cardNo U...

Страница 54: ..._CH1_PC CH2 s Port C PCI_CH1_PCU CH2 s Port C Upper Nibble PCI_CH1_PCL CH2 s Port C Low Nibble PCI_CH2_PA CH2 s Port A PCI_CH2_PB CH2 s Port B PCI_CH2_PC CH2 s Port C PCI_CH2_PCU CH2 s Port C Upper Ni...

Страница 55: ...C C Libraries 41 72XX Series User s Manual Note 1 CH2 and CH3 are only available for PCI 7296 2 Only CH0 is available for PCI 7224 Return Code ERR_NoError...

Страница 56: ...U16 cardNo U16 channelPort U16 doData U16 W_7296_DO U16 cardNo U16 channelPort U16 doData Visual Basic Windows 95 W_7248_DO ByVal cardNo As Integer ByVal channelPort As Integer ByVal doData As Intege...

Страница 57: ...on U16 _7296_Config_Port U16 cardNo U16 channelPort U16 direction C C Windows 95 U16 W_7248_Config_Port U16 cardNo U16 channelPort U16 direction U16 W_7249_Config_Port U16 cardNo U16 channelPort U16 d...

Страница 58: ...nual Argument cardNo Card number to select board channelPort The same as channelPort in section 5 5 direction Port I O direction INPUT_PORT The port is configure as INPUT OUTPUT_PORT The port is confi...

Страница 59: ...e U16 _7296_Config_ Channel U16 cardNo U16 channelNo U16 ctrlValue C C Windows 95 U16 W_7248_Config_Channel U16 cardNo U16 channelNo U16 ctrlValue U16 W_7249_Config_Channel U16 cardNo U16 channelNo U1...

Страница 60: ...acl_pci bas Return Code ERR_NoError ctrlValue Port A Port CU Port B Port CL PORT_OOOO OUT OUT OUT OUT PORT_OOOI OUT OUT OUT IN PORT_OOIO OUT OUT IN OUT PORT_OOII OUT OUT IN IN PORT_OIOO OUT IN OUT OUT...

Страница 61: ...16 cardNo U16 ctrlValue void _7296_Set_INT_Control U16 cardNo U16 ctrlValue C C Windows 95 void W_7248_Set_INT_Control U16 cardNo U16 ctrlValue void W_7249_Set_INT_Control U16 cardNo U16 ctrlValue voi...

Страница 62: ...rdNo Card number to select board ctrlValue The valid values of configuring the interrupt are INT1 0x00 disable 0x01 mode1 0x02 mode2 0x03 mode3 INT2 0x00 disable 0x04 mode1 0x08 mode2 0x0c mode3 Pleas...

Страница 63: ...U16 c0 void W_7249_Timer_Start U16 cardNo U16 timer0Mode U16 c0 void W_7296_Timer_Start U16 cardNo U16 timer0Mode U16 c0 Visual Basic Windows 95 W_7248_Timer_Start ByVal cardNo As Integer ByVal timer...

Страница 64: ..._Read U16 cardNo U16 counterValue C C Windows 95 void W_7248_Timer_Read U16 cardNo U16 counterValue void W_7249_Timer_Read U16 cardNo U16 counterValue void W_7296_Timer_Read U16 cardNo U16 counterValu...

Страница 65: ...C Windows 95 void W_7248_Timer_Stop U16 cardNo U16 counterValue void W_7249_Timer_Stop U16 cardNo U16 counterValue void W_7296_Timer_Stop U16 cardNo U16 counterValue Visual Basic Windows 95 W_7248_Ti...

Страница 66: ...W_7248_Cascaded_Timer U16 cardNo U16 c1 U16 c2 void W_7249_Cascaded_Timer U16 cardNo U16 c1 U16 c2 void W_7296_Cascaded_Timer U16 cardNo U16 c1 U16 c2 Visual Basic Windows 95 W_7248_Cascaded_Timer By...

Страница 67: ...o U16 int1Status U16 int2Status C C Windows 95 void W_7248_Get_IRQ_Status U16 cardNo U16 int1Status U16 int2Status void W_7249_Get_IRQ_Status U16 cardNo U16 int1Status U16 int2Status void W_7296_Get_I...

Страница 68: ...number to select board int1Status The status of INT1 int1Status 0 no interrupt int1Status 1 interrupt 1 inserted int2Status The status of INT2 int2Status 0 no interrupt int2Status 1 interrupt 2 inser...

Страница 69: ...8_CLR_IRQ U16 cardNo void _7249_CLR_IRQ U16 cardNo void _7296_CLR_IRQ U16 cardNo C C Windows 95 void W_7248_CLR_IRQ U16 cardNo void W_7249_CLR_IRQ U16 cardNo void W_7296_CLR_IRQ U16 cardNo Visual Basi...

Страница 70: ...I 7248 C C DOS U16 _7248_Software_Reset U16 cardNo U16 _7249_Software_Reset U16 cardNo U16 _7296_Software_Reset U16 cardNo C C Windows 95 U16 W_7248_Software_Reset U16 cardNo U16 W_7249_Software_Reset...

Страница 71: ...s an interrupt is generated Please refer to sample program 7248int c or 7296int c Syntax C C Windows 95 void W_7248_INT_Start U16 cardNo U16 c1 U16 c2 U16 ctrlValue HANDLE hIntEvent void W_7249_INT_St...

Страница 72: ...ource is set as internal timer source this value is the frequency divider of Timer 2 ctrlValue The value for INT mode setting The value can be set for INT1 is INT1_OFF INT1_P1C0 INT1_P1C3C0 or INT1_EV...

Страница 73: ...e the interrupt signal generation Syntax C C Windows 95 void W_7248_INT_Stop U16 cardNo void W_7249_INT_Stop U16 cardNo void W_7296_INT_Stop U16 cardNo Visual Basic Windows 95 W_7248_INT_Stop ByVal ca...

Страница 74: ...60 C C Libraries 72XX Series User s Manual This page intentionally left blank...

Отзывы: