background image

USB-4301 User's Guide 

Functional Details 

17 

Count source 

Each counter on the device can count from any of the available sources. The sources for counting are the same 

five internal sources and ten external sources listed in the Oscillator sources table (on page 16) with one 

addition — each counter can also increment whenever the previous numbered counter reaches its TC (TC 

n

-1). 

For example, if you select TC 

n

-1 as the counter source for Counter 2 Input (

INP2

), counter 2 increments or 

decrements when counter 1 reaches TC. The previous numbered counter for counter 1 is counter 5. Note that 

any of the 16 sources is available for any of the five counters. In other words, the signal source for counter 3 can 

be Counter 5 Input or Counter 2 Gate, or FREQ4, and so on. 

Gate control 

The counter can be gated in several ways. Level gating typically allows the counter to count only while the gate 

is active. Edge gating, on the other hand, typically starts the counting when an active gate edge is received.  

 

Level gating configuration options are active high level Gate n, active low level Gate 

n

, active high level 

Gate 

n

-1 and active high level Gate 

n

+1, where Gate 

n

 is the Gate pin associated with the counter being 

configured.  

 

Edge gating configuration options are active high (rising edge) Gate 

n

 and active low (falling edge) Gate 

n

The counter can be gated by the TC of the previous numbered counter. You can also disable gating. 

Counting modes 

Each of the five counters has two associated 16-bit registers which can be used to store count values — the 

Load register and the Hold register. 

 

The Load register is used to load the starting value for the counter. 

 

The Hold register can be used to store a second counter value, or to save the current counter value. 

Most applications only use the Load register. To start counting, configure the counter for the desired mode, and 

then load the Load register with the starting value with which to start the counting operation. 

Each counter can be configured to count up or to count down. The following sections explain the various 

configuration options. 

Reload 

When the counter reaches TC it is always reloaded with a new value. This new value comes from one of two 

sources: 

 

Reload from the Load register. This mode can be used to generate constant frequency pulse trains. 

 

Alternately load from the Load register and then the Hold register. This mode can be used for applications 

that require delayed starts or to generate pulse trains with variable duty cycles. 

Recycle 

Each counter can be configured to count to TC and then stop counting, or to continue counting after reaching 

TC. In either case, the counter is reloaded from the appropriate register when it reaches TC. However, if the 

Recycle mode is set to stop counting at TC, and the reload mode is set to load from the Load and Hold registers, 

it will count once to TC, reload from the Hold register, count again to TC, and then stop counting.  

For example, if Counter 1 is configured as follows: 

 

The Load 1 register contains the value 10,000 

 

The Hold 1 register contains the value 5,000  

 

Count down 

 

Alternately load from the Load and Hold registers 

Содержание USB-4301

Страница 1: ......

Страница 2: ...USB 4301 9513 based Counter Timer User s Guide Document Revision 5 March 2009 Copyright 2009 Measurement Computing Corporation...

Страница 3: ...n For specific information please refer to the terms and conditions of sale Harsh Environment Program Any Measurement Computing product that is damaged due to misuse or any reason may be eligible for...

Страница 4: ...No license is granted by implication or otherwise under any patent or copyrights of Measurement Computing Corporation All rights reserved No part of this publication may be reproduced stored in a retr...

Страница 5: ...Details 11 USB 4301 block diagram 11 External components 12 USB connector 12 Status LED 12 Power LED 12 Screw terminal banks 12 Counter terminals INP1 to INP5 GAT1 to GAT5 and OUT1 to OUT5 14 Digital...

Страница 6: ...21 Counter 21 Digital input output 22 Interrupt Input 22 Memory 23 Microcontroller 23 USB 5V voltage 23 LEDs 23 Power 23 USB specifications 24 Environmental 24 Mechanical 24 Screw terminal connector t...

Страница 7: ...s of manuals and help topic titles and to emphasize a word or phrase For example The InstaCal installation procedure is explained in the Quick Start Guide Never touch the exposed pins or circuit conne...

Страница 8: ...with your USB 4301 refer to the Quick Start Guide that shipped with your device The Quick Start Guide is also available in PDF at www mccdaq com PDFmanuals DAQ Software Quick Start pdf Check www mccd...

Страница 9: ...al documentation In addition to this hardware user s guide you should also receive the Quick Start Guide available in PDF at www mccdaq com PDFmanuals DAQ Software Quick Start pdf This booklet supplie...

Страница 10: ...301 To connect the USB 4301 to your system turn your computer on and connect the USB cable to a USB port on your computer or to an external USB hub that is connected to your computer The USB cable pro...

Страница 11: ...igital output 9513 CTR1 Input CTR1 Gate CTR2 Input CTR2 Gate CTR2 Output CTR3 Gate CTR3 Output CTR4 Input CTR4 Gate CTR4 Output CTR5 Input CTR5 Gate Counter 1 Counter 2 Counter 3 Counter 4 Counter 5 U...

Страница 12: ...power supply is required Status LED The Status LED indicates the communication status of the USB 4301 It flashes when data is being transferred and is off when the USB 4301 is not communicating This L...

Страница 13: ...connection DI CTL One oscillator output connection OSC One interrupt input connection INT Two voltage output power connections 5V Two ground connections GND Seven pins are reserved RSVD Do not connect...

Страница 14: ...ck gate and output sources are software selectable You can configure each counter to count up or down Digital input DI0 to DI7 and output DO0 to DO7 terminals You can connect up to eight digital input...

Страница 15: ...th this option digital outputs are not set to the value written until an active edge occurs on this pin Save the current value of a counter You can configure this option for each counter individually...

Страница 16: ...ounter 1 gate pin GATE2 Counter 1 gate pin GATE3 Counter 1 gate pin GATE4 Counter 1 gate pin GATE5 Counter 1 gate pin FREQ1 Internal base frequency FREQ2 Internal base frequency 10 FREQ3 Internal base...

Страница 17: ...as two associated 16 bit registers which can be used to store count values the Load register and the Hold register The Load register is used to load the starting value for the counter The Hold registe...

Страница 18: ...s it easy to decode long binary numbers For example 0b1001 0001 0000 1001 equals 9109 in BCD Binary Coded Decimal mode and equals 37 129 in binary mode In BCD mode the counter can only contain values...

Страница 19: ...onfigure Counter 1 1 Using InstaCal configure the counter 1 source for 1 MHz As shown in the Internal frequency values table on page 16 an internal base frequency of 1 0000 MHz corresponds to FREQ1 Th...

Страница 20: ...is option is active the digital inputs always return the same value until a new active edge is received on the interrupt pin When the active edge is received the current value is latched at the input...

Страница 21: ...l or edge counter 1 5 gate input Active high level previous gate or next gate All external gate signals GATx individually pulled up through 47 K resistors to 5 V Internal Active high previous counter...

Страница 22: ...ll down configurations are available using the DI CTL terminal block pin 19 The pull down configuration requires the DI CTL pin pin 19 to be connected to a GND pin pin 10 20 38 or 48 For a pull up con...

Страница 23: ...ange terminal block pin 8 and 18 Connected to self powered hub Note 4 4 75 V min to 5 25 V max User 5V output current terminal block pin 8 and pin 18 Bus powered and connected to a self powered hub No...

Страница 24: ...ND min 28 AWG D D USB cable length 3 meters max Environmental Table 10 Environmental specifications Operating temperature range 0 to 60 C Storage temperature range 40 to 85 C Humidity 0 to 90 non cond...

Страница 25: ...round 11 RSVD Do not connect 39 RSVD Do not connect 12 RSVD Do not connect 40 RSVD Do not connect 13 RSVD Do not connect 41 RSVD Do not connect 14 RSVD Do not connect 42 RSVD Do not connect 15 RSVD Do...

Страница 26: ...the following conditions must be met The host computer peripheral equipment power sources and expansion hardware must be CE compliant Equipment must be operated in a controlled electromagnetic enviro...

Страница 27: ...Measurement Computing Corporation 10 Commerce Way Suite 1008 Norton Massachusetts 02766 508 946 5100 Fax 508 946 9500 E mail info mccdaq com www mccdaq com...

Отзывы: