Home

MODEL USB-CTR-15 USER MANUAL

image

Contents

1. Introduction Features Fifteen 16 bit Counter Timers 5 x 8254 High speed USB 2 0 device USB 1 1 backwards compatible User Wiring Adaptor card provided for flexible yet easy counter concatenation Standard Configuration Adaptor pre configured for event counting frequency measurement pulse width measurement or frequency generation Power provided via USB cable Resettable fused 5VDC output Standard 50pin IDC type connector with key Screw Terminal board enables quick connection of signals prior to cable harnessing PC 104 size 3 550 by 3 775 in Rugged industrial enclosure FUNCTIONAL DESCRIPTION This USB board is an ideal solution for adding portable easy to install counter timer capabilities to any computer with a USB port The board is a USB 2 0 high speed device offering the fastest speed available with the USB bus It is fully compatible with both USB 1 1 and USB 2 0 ports The card is plug and play allowing quick connect disconnect whenever you need additional I O on your USB port The board features 5 fully undedicated industry standard 82C54 counters The I O wiring connections are via an industry standard 50 pin connector or via a terminal block adapter board For external circuits fused 5VDC power is available at the connector The resettable fuse is rated at 0 5A In addition to 5V power a 10MHz output signal provides a reliable timebase for many applications The board is designed to be used in rugged industrial env
2. Loading Programming a binary count into the counter Mode 0 Pulse on Terminal Count After the counter is loaded the output is set low and will remain low until the counter decrements to zero The output then goes high and remains high until a new count is loaded into the counter A trigger enables the counter to start decrementing Mode 1 Retriggerable One Shot The output goes low on the clock pulse following a trigger to begin the one shot pulse and goes high when the counter reaches zero Additional triggers result in reloading the count and starting the cycle over Ifa trigger occurs before the counter decrements to zero a new count is loaded This forms a retriggerable one shot In mode 1 a low output pulse is provided with a period equal to the counter count down time Mode 2 Rate Generator This mode provides a divide by N capability where N is the count loaded into the counter When triggered the counter output goes low for one clock period after N counts reloads the initial count and the cycle starts over This mode is periodic the same sequence is repeated indefinitely until the gate input is brought low This mode also works well as an alternative to mode 0 for event counting 16 Manual USB CTR 15 Mode 3 Square Wave Generator This mode operates like mode 2 The output is high for half of the count and low for the other half If the count is even then the output is a symmetrical square wave Ifthe count is odd then the output
3. 3 Clock Input 7 14 Timer 4 Output 16 Timer 5 Clock Input 18 20 22 Timer 7 Gate Input 24 Timer 7 Output 26 28 Timer 9 Gate Input Timer 9 Output Timer 10 Clock Input a Timer 10 Gate Input 33 Timer 10 Output 34 Timer 11 Clock Input EE Timer 1 Output 37 Timer 12 Clock Input 38 Timer 12 Gate Input 39 Timer 12 Output 40 Timer 13 Clock Input 41 Timer 13 Gate Input 4 Timer 13 Output Timer 14 Clock Input 7 Timer 14 Gate Input Timer 14 Output 46 Input To Inverter 87 eS ee From Inverter Ground 49 5V DC 0 5A Fused 50 10MHz Signal Output Note Gate and Clock inputs are pulled up through 10k Q resistors 18 Manual USB CTR 15 Customer Comments If you experience any problems with this manual or just want to give us some feedback please email us at tech portwell com Please detail any errors you find and include your mailing address so that we can send you any manual updates 19 Manual USB CTR 15
4. Customer Service department Be prepared to give the unit model number serial number and a description of the failure symptom s We may suggest some simple tests to confirm the failure We will assign a Return Material Authorization RMA number which must appear on the outer label of the return package All units components should be properly packed for handling and returned with freight prepaid to the Portwell designated Service Center and will be returned to the customer s user s site freight prepaid and invoiced Coverage First Three Years Returned unit part will be repaired and or replaced at Portwell option with no charge for labor or parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime Portwell stands ready to provide on site or in plant service at reasonable rates similar to those of other manufacturers in the industry Equipment Not Manufactured by Portwell Equipment provided but not manufactured by Portwell is warranted and will be repaired according to the terms and conditions of the respective equipment manufacturer s warranty General Under this Warranty liability of Portwell is limited to replacing repairing or issuing credit at Portwell discretion for any products which are proved to be defective during the warranty period In no case is Portwell liable for consequential or special damage arriving from use or misuse of our product The customer i
5. MODEL USB CTR 15 USER MANUAL FILE MUSB CTR 15 A1c Notice The information in this document is provided for reference only Portwell does not assume any liability arising out of the application or use of the information or products described herein This document may contain or reference information and products protected by copyrights or patents and does not convey any license under the patent rights of Portwell nor the rights of others IBM PC PC XT and PC AT are registered trademarks of the International Business Machines Corporation Printed in USA Copyright 2005 2006 by Portwell I O Products Inc All rights reserved WARNING ALWAYS CONNECT AND DISCONNECT YOUR FIELD CABLING WITH THE COMPUTER POWER OFF ALWAYS TURN COMPUTER POWER OFF BEFORE INSTALLING A CARD CONNECTING AND DISCONNECTING CABLES OR INSTALLING CARDS INTO A SYSTEM WITH THE COMPUTER OR FIELD POWER ON MAY CAUSE DAMAGE TO THE I O CARD AND WILL VOID ALL WARRANTIES IMPLIED OR EXPRESSED 2 Manual USB CTR 15 Warranty Priorto shipment Portwell equipmentis thoroughly inspected and tested to applicable specifications However should equipment failure occur Portwell assures its customers that prompt service and support will be available All equipment originally manufactured by Portwell which is found to be defective will be repaired or replaced subject to the following considerations Terms and Conditions If a unit is suspected of failure contact Portwell
6. ded for higher current applications an external power supply can be used LED The LED on the front of the enclosure is used to indicate power and data transmissions When the LED is in an illuminated steady green state this signifies that the board is successfully connected to the computer and has been detected and configured by the operating system When the LED flashes continuously this signifies that there is data being transmitted over the USB bus DC POWER JACK OPTIONAL Please note not all boards will contain this option This is an option for high current applications when more currentis needed than what your computer can provide on the USB port typically 500 mA The DC jack has a 2 00mm post on board and is designed to be used with the 9 VDC AC DC external power supply that ships with this option The voltage regulator on board regulates the 9 VDC and provides 5 VDC to the onboard circuitry When using external power switch the jumper located near the USB connector to VEXT otherwise when the jumper is in the VUSB position current is drawn from the USB port please consult the option selection map for a visual reference 50 PIN BOX HEADER The 50 pin box header has standard 100 spacing between pins and is keyed to prevent improper connections It can be used with standard IDC type ribbon cables or the screw terminal board that plugs directly into the box header As shown in the Option Selection drawing this board contains tw
7. ese two number schemes 8254 number counter index l counter number l Pins The driver software provided with the board uses a 32 bit dll front end compatible with any Windows programming language Samples provided in Borland C Builder Borland Delphi Microsoft Visual Basic and Microsoft Visual C demonstrate the use of the driver The following functions are provided by the driver in Windows These functions will allow you to operate the counter timer functionality and board level functions For detailed information on each function refer to the html Driver Manual located in the Win32 directory for this board unsigned long GetDevices void unsigned long QueryDevicelnfo Devicelndex pPID pName pDIOBytes pCounters unsigned long DIO_Configure Devicelndex bTristate pOutMask pData unsigned long CTR_8254Mode Devicelndex BlockIndex Counterlndex Mode unsigned long CTR_8254ModeLoad Devicelndex BlockIndex CounterIndex Mode LoadValue unsigned long CTR_8254ReadModeLoad Devicelndex BlockIndex CounterIndex Mode LoadValue pReadValue unsigned long CTR_8254Read Devicelndex BlockIndex Counterlndex pReadValue unsigned long CTR_StartOutputFreq Devicelndex Counterlndex pHz Please note CTR_StartOutputFreq assumes the Standard Configuration Adaptor is installed and may therefore not be useful in your application 14 Manual USB CTR 15 Low Level Reference Please note this information is very low l
8. evel and is generally only of use when writing code for operating systems for which we do not yet provide a high level driver Feel free to skip the rest of this chapter if it doesn t apply to your application In addition to the Windows driver provided above the USB bus provides a lower level alternative method of interfacing with the board USB defines several standard operations one of which Vendor Request is used by this board to control all Counter related functionality Each USB vendor request has two word size parameters Value and Index plus a lengthed data buffer that can be written to the board or read from the board The following Vendor Request Codes are used by this board Vendor Request 20h Counter Read This request reads the current value in the specified counter Value The low byte is the index of the 8254 from 00h to 04h The high byte is the index of the counter from 00h to 02h Note that the high byte is not a mode control byte Index Reserved use 0000h Data Read 2 bytes the current value in the counter Vendor Request 21h Counter Mode This request puts a counter in the specified mode but does not load a load value This can be useful for setting the output value of the counter without actually making it count Mode O sets the output low mode 1 sets it high Value The low byte is the index of the 8254 from 00h to 04h The high byte is the mode control byte see table above Index Reserved
9. heme wherein each 8254 three counters is configured for common counter timer tasks The drawing to the 10 MHz ii right shows the block diagram for this Default Configuration Adaptor Much of the software provided assumes this default configuration adaptor has been installed at P3 5V 8254 4 CTR 12 i lt CTR 13 H B CTR 14 a 12 Manual USB CTR 15 Chapter 4 USB Address Information Use the provided driver to access the USB board This driver will allow you to determine how many supported USB devices are currently installed and each device s type This information is returned as a Vendor ID VID Product ID PID and Device Index The board s VID is 0x1605 and its PID is 0x8020 The Device Index is determined by how many of the device you have in your system and provides a unique identifier allowing you to access a specific board at will 13 Manual USB CTR 15 Chapter 5 Programming This board contains Five 8254 chips Each 8254 contains 3 16 bit counter timers and a single control register This effectively provides 15 individual 16 bit down counter timers but only 5 control registers Because of this the counters are referenced by two methods 8254 number counter index or counter number In the software you will normally use 8254 number counter index but its usually more convenient to use counter number for hardware and wiring considerations The following table shows the mapping between th
10. ing installed The software provided with this board is contained on one CD and must be installed onto your hard disk prior to use To do this perform the following steps as appropriate for your software format and operating system Substitute the appropriate drive letter for your CD ROM or disk drive where you see RIL in the examples below WIN95 98 Me NT 2000 XP 2003 a Place the CD into your CD ROM drive b The CD should automatically run the install program If the install program does not click START RUN and type BJU click OK or press Exed c Follow the on screen prompts to install the software for this board LINUX 1 Please refer to linux htm on the CD ROM for information on installing under linux Hardware Installation The board can be installed in any USB 2 0 or USB 1 1 port Please install the software package before plugging the hardware into the system 9 Manual USB CTR 15 Chapter 3 Hardware Specifications Option Selections Refer to the setup programs on the CD provided with the board Also refer to the Block Diagram and the Option Selection Map when reading this section of the manual 0 20 gt VUSB POWER FROM USB Figure 3 1 Option Selection Map 10 Manual USB CTR 15 USB CONNECTOR The USB connector is a Type B USB connector and mates with the cable provided The USB port provides communication signals along with 5 VDC power The board can be powered from the USB port or if nee
11. ironments but is small enough to fit nicely onto any desk or testing station The card is PC 104 size including the proper mounting holes and ships inside a steel powder coated enclosure with an anti skid bottom MODEL OPTIONS Options P external power and AC DC adapter OEM board only version no enclosure E no screw terminal accessory Included with your board The following components are included with your shipment Please take the time now to ensure that no items are damaged or missing 1 USB CTR 15 installed in enclosure if not OEM Option Screw Terminal Accessory not included with the E Option Software Master CD USB I O Quick Start Guide 6 foot USB cable User Wiring Adaptor OO ot 5 Manual USB CTR 15 7 Standard Configuration Adaptor Optional Accessories The following accessories are provided for the P Option 1 9V AC DC Power Supply 6 Manual USB CTR 15 Specifications Counter Timers Type 82C54 10 programmable interval counters Output Drive 2 0 VDC min source 32 mA 0 55 VDC max sink 64 mA Maximum Input Frequency 10MHz Input Gate TTL CMOS compatible 10k Q Pull up Clock On board 10 MHz crystal controlled clock Active Count Edge Negative edge 10k Q Pull up Minimum Clock Pulse Width input characteristic 30 ns high 40 ns low e Minimum Divisor divide by 2 Maximum Divisor divide by 65536 16 bits load value 0 Timer Range 16 bits Bus Type USB2 0 high s
12. is high for N 1 2 counts and low for N 1 2 counts Periodic triggering or frequency synthesis are two possible applications forthis mode Note thatin this mode to achieve the square wave the counter decrements by two for the total loaded count then reloads and decrements by two for the second part of the wave form Mode 4 Software Triggered Strobe This mode sets the output high and when the count is loaded the counter begins to count down When the counter reaches zero the output will go low for one input period The counter must be reloaded to repeat the cycle A low gate input will inhibit the counter Mode 5 Hardware Triggered Strobe In this mode 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 The output will not go low until the full count after the rising edge of the trigger 17 Manual USB CTR 15 Chapter 7 Connector Pin Assignments A 50 pin connector provided on the back plate of these boards for I O connections Connector pin assignments are listed below IDC 50 Pin Header Male 49 50 Table 7 1 50 Pin Connector Pin Assignments Pin Function l Pin Function 1 Timer 0 Clock Input Timer 0 Gate Input eee Timer 0 Output Timer 1 Clock Input 5 Timer 1 Gate Input Timer 1 ee 2 7 Timer 2 Clock Input Timer 2 Gate Timer 2 Gate Input 9 Timer 2 Output Timer
13. o 50 pin connectors P2 and P3 The right angle connector called P2 is designed to connect to your field cabling This connector fits through the aperture in the standard enclosure and is therefore available cleanly from outside the steel enclosure The other 50 pin header called P3 has an identical pinout but is not designed for cables Rather itis intended that P3 will be used to interconnect the various onboard counters USER CONFIGURATION ADAPTOR To assist you in wiring the counters together a small PCB is provided called the User Configuration Adaptor This Adaptor is for you to wire the counter arrangement you need As shown in the following drawing two through hole 0 1 spacing solder pads are provided for each signal from each counter along with a mating 50 pin header By connecting wires between holes you can create a permanent wiring adaptor plug that installs into P3 and creates the counter wiring scheme your application needs This User Configuration Adaptor eliminates the need for complex wiring harnesses at P2 and increases the reliability of your system 5 Volts via pull up resistor 5 Volts fused 0 5A 11 Manual USB CTR 15 DEFAULT CONFIGURATION ADAPTOR 8254 H0 In addition to the User Configuration Adaptor a pre wired Default Configuration Adaptor is also provided This small PCB does not include room for user wiring connections instead itcomes pre wired into a very efficient counter sc
14. peed 480 Mb s circa 4000 transactions per second Power Basic unit 60mA typical no load 12mA with max counter transitions 5 VDC from the USB bus or external power supply depending on user configuration The USB bus is specified to provide 500 mA to most desktop environments This gives you 440 mA available 500mA 60mA 440mA If using more than a total of 500mA use optional 9 VDC on board voltage regulator outputs 5 VDC to card external power supply and remove VUSB jumper and place jumper on VEXT Then plug in external power before plugging into USB port This option will give you a total of 1000mA available 5V resettable fuse at 0 5A located on connector Environmental Operating Temperature Range 0 C to 70 C Storage Temperature Range 40 C to 85 C Humidity 0 to 90 RH non condensing Board Dimension 3 550 x 3 775 inches Box Dimension 4 00 x 4 00 x 1 25 inches 7 Manual USB CTR 15 8254 1 wane USB 1 1 2 0 USB INTERFACE HUB WITH MICRO CONTROLLER nner INDUSTRY STANDARD 50 PIN IDC HEADER CONNECTOR ONBOARD USER WIRING PLUG CONNECTOR Figure 1 1 Block Diagram Note Gate and Clock inputs are pulled up through 10k Q resistors 8 Manual USB CTR 15 Chapter 2 Installation Software CD Installation These paragraphs are intended to detail the software installation steps as well as describe what is be
15. s responsible for all charges caused by modifications or additions to Portwell equipment not approved in writing by Portwell or if in Portwell opinion the equipment has been subjected to abnormal use Abnormal use for purposes of this warranty is defined as any use to which the equipment is exposed other than that use specified or intended as evidenced by purchase or sales representation Other than the above no other warranty expressed or implied shall apply to any and all such equipment furnished or sold by Portwell 3 Manual USB CTR 15 Table of Contents Chapter 1 Introduction a AAA 5 SPecificallonss 3 A322 8 ee es Gee Saye tas BRE ee ea ae abe Gi Sem aa am eae Sieg 7 Chapter 2 Installation 3 0 ia A a io 9 Hardware Installation ccc eee 9 Chapter 3 Hardware Specifications 0000 eee es 10 Chapter 4 USB Address Information 000 cece eee eee es 13 Chapter 5 Programming ss 222 22k eee wore ee ee deed Cee eee ee te 14 Chapter 6 8254 Counter Timer oca iss e0 ed tose A ie ea Se ee 16 Operational Modes 2 0 0 0 a E a a ee eee 16 Chapter 7 Connector Pin Assignments 000 c cece eee eee eee eee 18 List of Figures Figure 1 4 Block Diagram iia aed cae eee ad AO ee ie dr eee eee a ene Pee oe eS 8 Figure 3 1 Option Selection Map eai a E ee 10 List of Tables Table 7 1 50 Pin Connector Pin Assignments 0 000 eee 18 4 Manual USB CTR 15 Chapter 1
16. sen For those interested in more detailed information a full description can be found in the Intel or equivalent manufacturer s data sheet provided in the chipdocs directory on the Software Master CD Referto Chapter 5 Programming and the html Driver Manual document installed by the Software Master CD for information on using the installed software driver for this board The following data is provided only for reference as it is unlikely to be needed when using the provided driver Please note the block diagram description of how the 9 pins associated with 8254 counters are configured into an optimum counter timer module on this board In addition the driver and firmware on the board requires a full 16 bit load operation do not select low byte only or high byte only modes for the counters Additional low level information on the 82C54 can be found on the Software Master CD in the chipdocs directory Operational Modes The 8254 modes of operation are described in the following paragraphs to familiarize you with the versatility and power of this device For those interested in more detailed information a full description of the 8254 programmable interval timer can be found in the Intel or equivalent manufacturers data sheets The following conventions apply for use in describing operation of the 8254 Clock A positive pulse into the counter s clock input Trigger A rising edge input to the counter s gate input Counter
17. use 0000h Data None Vendor Request 22h Counter Load Value The low byte is the index of the 8254 from 00h to 04h The high byte is a mode control byte but only bit 7 and 6 are significant this function will ignore the other bits Index The load value from 0 to 65535 Data Read None Vendor Request 23h Counter Mode Load or Read Mode Load This request puts a counter in the specified mode then loads it with the specified load value lt can optionally read the current value in the counter before moding it See the chapter on the 8254 counter timer for details on the various modes the bits shown in the table below as 1 need to remain set Value The low byte is the index of the 8254 from 00h to 04h The high byte is the mode control byte see table below Index The load value from 0 to 65535 Data Read Either none or 2 bytes If 2 bytes are read as part of the request they will be set to the current value of the counter before the mode Table Counter Mode Control Byte Bit 7 6 5 4 3 2 1 0 0 2 0 5 15 Manual USB CTR 15 Chapter 6 8254 Counter Timer This board contains five 82C54 counter s that each include three 16 bit counter timers The default configuration adaptor comes configured in an optimal module for use as event counters frequency output pulse width and frequency measurement See Block Diagram Each counter can be programmed to any count as low as 1 or 2 and up to 65 536 depending on the mode cho

Download Pdf Manuals

image

Related Search

Related Contents

Trust BridZ 4 Port USB 2.0 Hub  MPMan MP-FUB26 MP3 Player  USER MANUAL  Kompernass KH 1126 User's Manual  ASUS X550JK PL7926 User's Manual  Handbuch - HiFi  900W 2-IN-1 POLE SAW & TRIMMER  

Copyright © All rights reserved.
Failed to retrieve file