background image

PCL-720 Digital I/O and Counter Card

USER'S MANUAL

This documentation is copyrighted 1990 by Advantech
Co., Ltd. All rights are reserved. Advantech Co., Ltd.
Reserves the right to make improvements in the
products described in this manual at any time without
notice.

No part of this manual may be reproduced, copied,
translated or transmitted, in any form or by any means
without the prior written permission of Advantech Co.,
Ltd. Information provided in this manual is intended to
be accurate and reliable.  However, Advantech Co.,
Ltd. assumes no responsibility for its use; nor for any
infringements of rights of third parties which may
result from its use.

PC-LabCard is a trademark of Advantech Co., Ltd. IBM
and PC are  trademarks of international Business
Machines Corporation.  MS-DOS is a  trade mark of
Microsoft Corporation. BASIC is a trademark of
Dartmouth College. Intel is a trademark of Intel
Corporation.

Part No. 2003720000 Rev. C1

Printed in Taiwan Mar. 1990

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Summary of Contents for PCL-720

Page 1: ...ess underutilized and idle equipment along with credit for buybacks and trade ins Custom engineering so your equipment works exactly as you specify Critical and expedited services Leasing Rentals Demos In stock Ready to ship TAR certified secure asset solutions Expert team I Trust guarantee I 100 satisfaction All trademarks brand names and brands appearing herein are the property of their respecti...

Page 2: ...Model PCL 720 Digital I O Counter Card Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 3: ...d Information provided in this manual is intended to be accurate and reliable However Advantech Co Ltd assumes no responsibility for its use nor for any infringements of rights of third parties which may result from its use PC LabCard isa trademark of Advantech Co Ltd IBM and PC are trademarks of international Business Machines Corporation MS DOS is a trade mark of Microsoft Corporation BASIC is a...

Page 4: ... Connector Pin Assignment 9 3 2 Timer Counter Signal Pads 11 3 3 Clock Source Pads 11 3 4 Strobe of Digital Input 12 CHAPTER 4 PROGRAMMING 13 4 1 Register Structure and Format 13 4 2 Digital UO Programming 14 4 3 Programmable Interval Timer 15 4 3 1 The Intel 8253 15 4 3 2 The Control Byte 16 4 3 3 Mode Definitions 17 4 3 4 Loading and Reading The Counters 20 APPENDIX A I O PORTADDRESS MAP 23 Arti...

Page 5: ...o input digital data to the PCL 720 when the ground isolation is required The PCLD 785 is a 16 channel relay output board which can be driven by the digital output of the PCL 720 card The PCLD 786 is an SSR board which can control AC power up to 8 channels An on board Intel 8253 programmable interval timer provides three independent 16 bit down counters as timing sources for various applications A...

Page 6: ...osure monitoring Ÿ Switch panel status sense Ÿ BCD interface Ÿ Digital I O control Ÿ Industrial automation Ÿ Laboratory automation Ÿ Period and pulse width measurement Ÿ Event and frequency counting Specifications Ÿ Dimensions 9 x 4 125 22 8 cm x 10 48 cm Ÿ Bus IBM PC bus Ÿ Slot One 62 pin slot Ÿ I O Port Address Hex 200 hex 3F8 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SO...

Page 7: ...8V Input High Level Min 2 0V max 5 0V Input Loading Max 0 2 mA at 0 4V Input Hysteresis Typical 0 4V min 0 2V Ÿ Digital Output Output Low Level Max 0 5V at 24 mA sink Max 0 4V at 12 mA Output High Level Min 2 0V at 15 mA source Min 2 4V at 3 mA Driving Capacity 15 TTL s at least Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 8: ...f the card is stored outside of the computer The board should be handled only by the edges The integrated circuits on the board can be damaged by static electric discharge The package 2 2 Base Address Selection Most of the peripheral devices and the interface adapters in the PC are controlled and sensed using the digital input and output pens These ports are addressed using the I O port address sp...

Page 9: ...us base addresses are illustrated as below Note ON 0 OFF 1 X means don t care 1 8 are switch positions A3 A8 correspond to address Lines of the PC bus A9 is hard wired to be 1 means factory setting Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 10: ...1 These frequencies can be double half or quartered by placing a jumper on position x2 x1 2 or xl 4 of the JP1 For example a frequency source of 25 KHz can be got from the pad marked 100K when placing the jumper on position x1 4 of the JP1 as below oo x2 oo xl Factory setting oo x1 2 oo x1 4 JP1 2 4 Installing into the PC POWERMUSTALWAYSBESWITCHEDOFFwhenremovingorinsertingthe PCL 720 card and conn...

Page 11: ...river to remove the screw that secures the expansion slot cover Save the screw for installation of the interface card The two rear connectors should be pressed through the rear panel first then press the card carefully into the main board expansion slot Secure the PCL 720 with the 3 16 mounting screw then attach and appropriate cable to the connector Slide the system unit s cover back on Align the...

Page 12: ...ed to flat cables of the same type Please refer to Figure 2 1 for the location of each connector The following diagrams below show their pin assignments Note D O means digital output D I means digital input GND means ground CLK is the clock input for the 8253 GATE is the gate input for the 8253 OUT is the signal output of the 8253 STROBE is the external signal to latch the D I data Connector 1 Art...

Page 13: ...Signal Connection PCL 720 Connector 2 Connector 3 Connector 4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 14: ...K0 o GATE0 o OUT0 o CLK1 o GATE1 o OUT1 o CLK2 o GATE2 o OUT2 3 3 Clock Source Pads There are 3 pads offer clock sources of 1MHz 100KHz and 10KHz when the JP1 is inserted with a jumper at the position xl These frequencies can be double half or quartered by placing the jumper on the position x2 x1 2 or x1 4 of the JP1 The user can link one of the clock source to the clock input of the 8253 timer co...

Page 15: ...latched in the input buffer and the PC reads the data which is the input status on the falling edge of STROBE Normally the STROBE pins are left open and the digital input ports have the current status of the digital input pins If the user wants to read the status of the digital input pins when an certain signal is high then he she can connect the signal to the STROBE pins to gate the input data ST...

Page 16: ...D I 8 15 base 2 D O 16 23 D I 16 23 base 3 D O 24 31 D I 24 31 base 4 LSB or MSB of COUNTER 0 base 5 LSB or MSB of COUNTER 1 base 6 LSB or MSB of COUNTER 2 base 7 CONTROL BYTE The format and structure of each register are discussed as follows Note Bit 0 is the least significant bit OP stands for operation base 0 If OP read bit 0 7 of this byte correspond to channel 0 7 of the 32 digital input chan...

Page 17: ...6 bit long count for counter O depending on the setting of the Control Byte base 5 The usage of this byte is the same as base 4 except it is for counter 1 base 6 The usage of this byte is the same as base 4 except it is for counter 2 base 7 Control Byte The Control Byte Register can only be written to and is used to define the operation of the counters A detailed explanation of the format of this ...

Page 18: ... on the PCL 720 card It is organized as 3 independent 16 bit counters each with a count rate of up to 2 6 MHz Each counter can be programmed to have a count from 0 up to 65 535 Each counter can also be set to operate in one of the 6 different modes of operation All modes of operation are software programmable The main counter timer functions that can be implemented with the 8253 are Ÿ Programmable...

Page 19: ...idual counters the 8253 control byte must be loaded with data setting the counter selected the operating mode the type of read or write operation that will be performed and the modulus binary or BCD The format of the Control Byte is bit 7 6 5 4 3 2 1 0 SC1 SCO RL1 RLO M2 M1 MO BCD SC1 0 Select counter SC1 SC0 Counter 0 0 0 0 1 1 1 0 2 1 1 Illegal RL1 0 Select the read or load operation RL1 RLO Ope...

Page 20: ... to be binary the count can be any number from 0 up to 65 535 If the modulus is set to be BCD binary coded decimal then the count can be set as any number from 0 to 9 999 4 3 3 Mode Definitions The definitions of the six operating modes are described here Refer to the data sheet of the 8253 for more details Mode 0 Interrupt on Terminal Count The output will be initially low after the mode set oper...

Page 21: ...ad at any time without affecting the one shot pulse The one shot is retriggerable hence the output will remain low for the full count after any rising edge of the gate input Mode 2 Rate Generator Divide by N counter The output will be low for one period of the input clock The period from one output pulse to the next equals the number of input counts in the counter register If the count register is...

Page 22: ...3 Subsequent clock pulses decrement the count by two until timeout Then the whole process is repeated In this way if the count is odd the output will be high for N 1 2 counts and low for N 1 2 counts Mode 4 Software Triggered Strobe After the mode is set the output will be high When the count is loaded the counter will begin counting On terminal count the output will go low for one input clock per...

Page 23: ...Counter s programmed mode in any way Counting will be affected as described in the mode definitions The new count must follow the programmed count format If a counter is programmed to read load two byte counts the following precaution applies A program must not transfer control between writing the first and second byte to another routine which also writes into that same counter Otherwise the count...

Page 24: ...mmand applies to the Counter selected by the SC1 and SC2 bit in the Control Byte And the command distinguishes itself from other commands by setting bit 4 and 5 to 0 bit 7 6 5 4 3 2 1 0 SC1 SC0 0 0 X X X X SC1 0 Select the desired Counter X Means don t care The instruction sequence is 1 Load the Control Byte 2 Read the less significant byte 3 Read the most significant byte Some programming example...

Page 25: ...ad the LSB and MSB 110 c INP PORT INP PORT 256 120 IF C CNT GOTO 90 130 print lapsed time and frequency 140 T TIMER T1 150 PRINT T CNT T Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 26: ...sed 278 27F Second printer port 280 2F7 Not used 2F8 2FF COM2 300 377 Not used 378 37F Printer port 380 3AF Not used 3B0 3BF Monochrome and printer 3C0 3CF Not used 3D0 3DF Color graphics 3E0 3EF Not used 3F0 3M 5 1 4 inch disk drive 3F8 3FF COM1 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com ...

Page 27: ...quipment Have surplus equipment taking up shelf space We ll give it a new home Learn more Visit us at artisantg com for more info on price quotes drivers technical specifications manuals and documentation Artisan Scientific Corporation dba Artisan Technology Group is not an affiliate representative or authorized distributor for any manufacturer listed herein We re here to make your life easier How...

Reviews: