Page 3
PC-LabCard is a trademark of Advantech Co., Ltd. IBM and PC are trademarks of International Business Machines Corporation. MS-DOS and Windows are trademarks of Microsoft Corporation.
Digital I/O Ports ..............14 Timer/Counter Operation ..........17 Interrupt Function .............. 19 Appendix A Function of 8254 Counter Chip ..23 Appendix B Register Format of PCI-1751 ..31 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Ge n er al In f o r m at i o n Chapter 1 General Information Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
In t r o d u c t i o n The PCI-1751 is a 48-bit DI/O and counter/timer card with PCI bus. It provides you with 48 bits of parallel digital input/output as well as 3 timers. It emulates mode 0 of the 8255 PPI chip, but the buffered circuits offer a higher driving capability than the 8255.
Page 7
• Interrupt handling • Interrupt output pin for simultaneously triggering external devices with the interrupt • High density SCSI 68-pin connector • Output status readback • Two 16-bit timers can be cascaded to one 32-bit timer, and can generate watchdog timer interrupts •...
Page 8
Operating temperature: 0 ~ 70º C (32º F ~ 158 ºF) Storage temperature: -20 ~ 80º C(-4º F ~ 176º F) Humidity: 5% ~ 95% non-condensing Dimension: 170 x 100 mm (6.9" x 3.9") PCI-1751 User's Manual Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
In i t i al In sp ect i o n Before starting to install the PCI-1751, make sure there is no visible damage on the card. We carefully inspected the card both mechani- cally and electrically before shipment. It should be free of marks and in perfect order on receipt.
Ju m p e r Se t t i n g s We designed the PCI-1751 with ease-of-use in mind. It is a "plug and play" card, i.e. the system BIOS assigns the system resources such as base address and interrupt automatically. There are only two func- tions with 11 jumpers to be set by the user.
Page 12
Ju m p e r JP4 Re st o r e s Po r t s t o Th e i r Co n d i - t i o n Pr i o r t o Re se t Jumper JP4 gives the PCI-1751 a new and valuable capability. With JP4 enabled, the PCI-1751 "memorizes" all port I/O settings and output values, and, in the event of a "hot"...
Page 13
Se le c t Clo ck So u r ce o f Ti m e r s an d Co u n t e r Jumpers JP1, JP2 and JP3 are used to select the clock source of Timer 0, Timer 1 and Counter 2, respectively. Short the upper two pins of the jumpers to select an external clock source, or short the lower two pins to select an internal clock source.
INT_OUT CNT2_G 0, 1 and 2 INT_OUT: Interrupt output. This pin changes to logic 1 whenever the PCI-1751 generates an interrupt, and returns to logic 0 when the interrupt is cleared. GND: Ground VCC: +5 V voltage output Chapter 2 Installation...
In st allat i o n In st r u ct i o n s The PCI-1751 can be installed in any PCI slot in the computer. Howev- er, refer to the computer user's manual to avoid any mistakes and danger before you follow the installation procedure below: 1.
Op e r at i o n Chapter 3 Function Description Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Op e r at i o n This chapter describes the operating characteristics of the PCI-1751. The driver software provided allows a user to access all of the card's functions without register level programming. Please see the User's Manual for the driver bundled with this card for more information. For...
Page 19
In t e r r u p t Fu n ct i o n o f t h e DIO Si g n als Two I/O pins (PC00 and PC10) can be used to generate hardware interrupts. A user can program the interrupt control register (Base + 32) to select the interrupt sources.
Page 20
Dry Cont act: Open High Close Resistor Wet C ontact : 2. 0~5.25 V High Parallel 0~0.8 V Figure 3-1: Wet and dry contact inputs PCI-1751 User's Manual Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Ti m e r / Co u n t e r Op e r at i o n In t r o d u c t i o n The PCI-1751 includes one 8254 compatible programmable timer/ counter chip which provides three 16-bit counters, designated as Timer 0, Timer1 and Counter 2.
Page 22
Counter 2 is an event counter. Counter 2 is set as mode 0 (interrupt on terminal count) in the driver provided by Advantech. Ti m e r / Co u n t e r Fr e q u e n c y a n d In t e r r u p t The input clock frequency of the counter/timers is 10 MHz.
Two lines in each I/O port (C0 and C4) and two of the three counter outputs (Timer 1 and Counter 2) are connected to the interrupt circuitry. The "Interrupt Control Register" of the PCI-1751 controls how the combination of the 6 signals generates an interrupt. Two interrupt request signals can be generated at the same time, and then the software can service these two request signals by ISR.
Page 24
1, as indicated in Figure 3-3. Table 3-3 shows the relationship between an interrupt source and the values in the mode bits. Figure 3-3: Interrupt sources PCI-1751 User's Manual Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 25
Port 1 Port 0 Description Description Disable interrupt Disable interrupt Source = PC10 Source = PC00 Source = PC10 & PC14 Source = PC00 & PC04 Source = Counter 2 Source = Timer 1 Table 3-3: Interrupt mode bit values In t e r r u p t Tr i g g e r i n g Ed g e Co n t r o l The interrupt can be triggered by a rising edge or a falling edge of the interrupt signal, selectable by the value written in the "triggering edge...
Fu n ct i o n o f 82 5 4 Co u n t e r Ch i p Appendix A Function of 8254 counter Chip Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 28
PCI-1751 provides 10 MHz input frequencies to the counter chip from an on-board crystal oscillator. On the PCI-1751, the 8254 chip's Timer 0 and Timer 1 can be used separately or can be cascaded to create a 32-bit programmable timer by setting JP2.
Page 29
The data format for the control register appears below: BASE+ 27 8254 co n t r o l, st an d ar d m o d e Value Description: SC1 & SC0 Select counter Counter Read-back command RW1 & RW0 Select read/write operation Operation Counter latch...
Page 30
Current state of counter output Null count is 1 when the last count written to the counter register has been loaded into the counting element PCI-1751 User's Manual Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 31
Co u n t e r Op e r at i n g Mo d e s MODE 0 ñ St o p o n Te r m i n al Co u n t The output will be initially low after you set this mode of operation. After you load the count into the selected count register, the output will remain low and the counter will count.
Page 32
The counter will start counting after the rising edge of the trigger input and will go low for one clock period when the terminal count is reached. The counter is retriggerable. PCI-1751 User's Manual Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
Page 33
Co u n t e r Op e r at i o n s Re a d / W r i t e Op e r a t i o n Before you write the initial count to each counter, you must first specify the read/write operation type, operating mode and counter type in the control byte and write the control byte to the control register (BASE+27).
Page 34
Co u n t e r Ap p l i cat i o n s The 8254 compatible programmable interval timer/counter on your PCI-1751 interface card is a a very useful device. You can program timers 1 and 2 to serve as timers, event counters, square wave genera- tors, or as a watchdog to generate regular interrupts at a fixed interval.
Re g i st e r Fo r m at o f PCI-1 7 5 1 Appendix A Function of 8254 counter Chip Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...