The documentation and the software included with this product are copyrighted 2006 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 the rights of third parties, which may result
from its use.
Acknowledgements
Windows is a trademark of Microsoft Corporation
Inprise Delphi is a registered trademark of Inprise Corporation
All other product names or trademarks are properties of their respective
owners.
Part No. 2003M37800Edition 1.1
Printed in TaiwanOctober 2006
PCM-3780 User Manualii
Two Years Product Warranty
Advantech warrants to you, the original purchaser, that each of its products will be free from defects in materials and workmanship for two years
from the date of purchase.
This warranty does not apply to any products which have been repaired or
altered by persons other than repair personnel authorized by Advantech,
or which have been subject to misuse, abuse, accident or improper installation. Advantech assumes no liability under the terms of this warranty as
a consequence of such events.
Because of Advantech.s high quality-control standards and rigorous testing, most of our customers never need to use our repair service. If an
Advantech product is defective, it will be repaired or replaced at no
charge during the warranty period. For out-of-warranty repairs, you will
be billed according to the cost of replacement materials, service time and
freight. Please consult your dealer for more details.
If you think you have a defective product, follow these steps:
1. Collect all the information about the problem encountered. (For example, CPU speed, Advantech products used, other hardware and software
used, etc.) Note anything abnormal and list any onscreen messages you
get when the problem occurs.
2. Call your dealer and describe the problem. Please have your manual,
product, and any helpful information readily available.
3. If your product is diagnosed as defective, obtain an RMA (return merchandize authorization) number from your dealer. This allows us to process your return more quickly.
4. Carefully pack the defective product, a fully completed Repair and
Replacement Order Card and a photocopy proof of purchase date (such as
your sales receipt) in a shippable container. A product returned without
proof of the purchase date is not eligible for warranty service.
5. Write the RMA number visibly on the outside of the package and ship
it prepaid to your dealer.
iii
CE Notification
The PCM-3780, developed by Advantech Co., Ltd., has passed the CE
test for environmental specifications when shielded cables are used for
external wiring. We recommend the use of shielded cables. This kind of
cable is available from Advantech. Please contact your local supplier for
ordering information.
FCC Class A
This equipment has been tested and found to comply with the limits for a
Class A digital device, pursuant to Part 15 of the FCC Rules. These limits
are designed to provide reasonable protection against harmful interferrence when the equipment is operated in a commercial environment. This
equipment generates, uses and can radiate radio frequency energy and, if
not installed and used in accordance with the instruction manual, may
cause harmful interference to radio communications. Operation of this
equipment in a residential area is likely to cause harmful interference in
which case the user will be required to correct the interference at his own
expense.
Technical Support and Assistance
1.Visit the Advantech web site at www.advantech.com/support
where you can find the latest information about the product.
2.Contact your distributor, sales representative, or Advantech's customer service center for technical support if you need additional
assistance. Please have the following information ready before you
call:
- Product name and serial number
- Description of your peripheral attachments
- Description of your software (operating system, version, application software, etc.)
- A complete description of the problem
- The exact wording of any error messages
PCM-3780 User Manualiv
Packing List
Before setting up the system, check that the items listed below are
included and in good condition. If any item does not accord with the
table, please contact your dealer immediately.
This chapter provides an introduction
to the PCM-3780.
Sections include:
• Introduction
• Features
• Applications
• Installation Guide
• Accessories
Chapter 1 Introduction
Thank you for buying the Advantech PCM-3780. The PCM-3780 is a
general purpose multiple channel counter/timer card for the PC/104 bus.
It targets the AM9513 to implement the counter/timer function by CPLD.
It provides two 16-bit counter channels and 24-ch digital TTL I/O.
The I/O bits are divided into three 8-bit I/O ports: A0, B0 and C0. You
can configure each port as either input or output via software. The powerful Advantech-designed counter functions fulfill your industrial or laboratory application needs.
The following sections of this chapter will provide further information
about features of the multifunction cards, a quick startup guide for installation, together with some brief information on software for the PCM-
3780 card.
1.1 Features
The Advantech PCM-3780 offers the following main features:
• 2 independent 16-bit counters
• 2 programmable clock sources
• 24-ch digital TTL I/O
• Up to 20 MHz input frequency
• Multiple counter clock source selectable
• Counter output programmable
• Counter gate function
• Flexible interrupt source select
PCM-3780 User Manual2
Counter Modes
Table 1.1: PCM-3780 Counter Mode
Counter ModeA B CDEFGHIJKL
Special Gate (CM6)0 00000000000
Reload Source (CM5)000000111111
Repetition (CM4)0 00111000111
Gate Control
(CM15~CM12)
Count to TC once, then
disarm
Count to TC twice, then
disarm
Count to TC repeatedly
without disarming
Gate input dose not gate
counter input
Count only during active
gate level
Start count on active gate
edge and stop count on
next TC
Start count on active gate
edge and stop count on
second TC
Start count on active gate
edge and stop count on
inactive gate edge
Reload counter from Load
Register on TC
Reload counter on each
TC, alternating reload
source between Load and
Hold Registers
• Computer Personal computer or workstation with a PC/104 slot (running Windows 2000/XP)
Some other optional components are also available for enhanced operation:
• Application software ActiveDAQ, GeniDAQ or other third-party software packages
After you get the necessary components and maybe some of the accessories for enhanced operation of your Multifunction card, you can then
begin the Installation procedures. Figure 1-1 on the next page provides a
concise flow chart to give users a broad picture of the software and hardware installation procedures:
5Chapter 1
Install Driver from CD-ROM
Install Hardware on PC
Use driver utility to configure hardware
Use test utility to test hardware
Read examples & driver manual
Start to write your own application
Figure 1.1: Installation Flow Chart
PCM-3780 User Manual6
1.4 Software Overview
Advantech offers a rich set of DLL drivers, third-party driver support and
application software to help fully utilize the functions of your PCM-3780
card:
1.4.1 Device Drivers (on the companion CD-ROM)
• LabVIEW driver
• Advantech ActiveDAQ
• Advantech GeniDAQ
Programming choices for DA&C cards: You may use Advantech application software such as Advantech Device Drivers. On the other hand,
advanced users can use another option for register-level programming,
although it is not recommended due to its laborious and time-consuming
nature.
1.4.2 Device Drivers
The Advantech Device Drivers software is included on the companion
CD-ROM at no extra charge. It also comes with all Advantech DA&C
cards. Advantech’s device drivers feature a complete I/O function library
to help boost your application performance. The Advantech
Device Drivers for Windows 2000/XP works seamlessly with development tools such as Visual C++, Visual Basic, Inprise C++ Builder and
Inprise Delphi.
1.4.3 Register-level Programming
Register-level programming is reserved for experienced programmers
who find it necessary to write code directly at the level of device registers. Since register-level programming requires much effort and time, we
recommend that you use the Advantech Device Drivers instead. However, if register-level programming is necessary, you should refer to the
relevant information in Appendix C, Register Structure and Format, or to
the example codes included on the companion CD-ROM.
7Chapter 1
1.5 Device Drivers Programming Roadmap
This section will provide a roadmap to demonstrate how to build an application from scratch using Advantech Device Drivers with your favorite
development tools such as Visual C++, Visual Basic, Delphi and C++
Builder. The step-by-step instructions on how to build your own applications using each development tool will be given in the
Manual
your reference.
. Moreover, a rich set of example source code is also given for
1.5.1 Programming Tools
Programmers can develop application programs with the following tools:
• Visual C++
• Visual Basic
• Delphi
• C++ Builder
For instructions on how to begin programming works in each development tool, Advantech offers a
Manual
this chapter of the
efforts. You can also look at the example source code provided for each
programming tool, since they can get you very well oriented.
The
Or if you have already installed the Device Drivers on your system, The
Device Drivers Manual can be readily accessed through the Start button:
for your reference. Please refer to the corresponding sections in
Device Drivers Manual to begin your programming
Device Drivers Manual can be found on the companion CD-ROM.
Tut orial Chapter in the Device Drivers
Device Drivers
The example source codes could be found under the corresponding installation folder such as the default installation path:
\Program Files\Advantech\ADSAPI\Examples
For information about using other function groups or other development
tools, please refer to the
Device Drivers
Drivers Manual
PCM-3780 User Manual8
chapter and the Function Overview chapter on the Device
.
Creating Windows 2000/XP Application with
1.5.2 Programming with Device Drivers Function Library
Advantech Device Drivers offers a rich function library to be utilized in
various application programs. This function library consists of numerous
APIs that support many development tools, such as Visual C++, Visual
Basic, Delphi and C++ Builder.
According to their specific functions or services, those APIs can be categorized into several function groups:
• Digital Input/Output Function Group
• Counter Function Group
• Port Function Group (direct I/O)
• Event Function Group
For the usage and parameters of each function, please refer to the
tion Overview
chapter in the Device Drivers Manual.
Func-
1.5.3 Troubleshooting Device Drivers Error
Driver functions will return a status code when they are called to perform
a certain task for the application. When a function returns a code that is
not zero, it means the function has failed to perform its designated function. To troubleshoot the Device Drivers error, you can pass the error
code to
you can refer to the
Drivers Manual
Error Message.
DRV_GetErrorMessage function to return the error message. Or
Device Drivers Error Codes Appendix in the Device
for a detailed listing of the Error Code, Error ID and the
9Chapter 1
1.6 Accessories
Advantech offers a complete set of accessory products to support the
PCM-3780 card. These accessories include:
1.6.1 Wiring Cables
• PCL-10120
PCL-10120 cable is a 20-pin flat cable for PCM-3780 cards.
PCL-10150
•
PCL-10150 cable is a 50-pin flat cable for PCM-3780 cards.
1.6.2 Wiring Boards
The ADAM-3900 series consists of universal screw terminal modules
designed for field signal wiring in industrial applications. They can be
connected to the analog and digital ports of Advantech products such as
the PCI, PCM and PCL series.
ADAM-3920
•
ADAM-3920 is a 20-Pin Flat Cable Wiring Terminal.
•
ADAM-3950
ADAM-3950 is a 50-Pin Flat Cable Wiring Terminal.
PCM-3780 User Manual10
2
2
CHAPTER
Hardware Installation
This chapter provides a packaged items
checklist, proper instructions about
unpacking and step-by-step procedures
for card
hardware installation.
Chapter 2 Hardware Installation
2.1 Unpacking
After receiving your PCM-3780 package, please inspect its contents first.
The package should contain the following items:
• PCM-3780 card
• Companion CD-ROM (DLL driver included)
• User Manual
The PCM-3780 card has electronic components vulnerable to
static discharge
and certain components if preventive measures are not carefully paid
attention to. Before removing the card from the antistatic plastic bag, you
should take following precautions to ward off possible ESD damage:
• Touch the metal part of your computer chassis with your hand to discharge static electricity accumulated on your body. Or use a grounding
strap.
• Touch the anti-static bag to a metal part of your computer chassis
before opening the bag.
• Take hold of the card only by the metal bracket when removing it from
the bag.
After taking out the card you should first inspect the card for any possible
signs of external damage (loose or damaged components, etc.). If the card
is visibly damaged, please notify Advantech’s service department or the
local sales representative immediately. Avoid installing a damaged card
into your system. Also, pay extra caution to the following aspects to
ensure proper installation:
• Avoid physical contact with materials that could hold static electricity
such as plastic, vinyl and Styrofoam.
• Whenever you handle the card, hold it only by its edges. DO NOT
TOUCH the exposed metal pins of the connector or the electronic components.
(ESD). ESD could easily damage the integrated circuits
electro-
NoteKeep the anti-static bag for future use. You might
need the original bag to store the card if you have to
remove the card from the PC or transport it elsewhere.
PCM-3780 User Manual12
2.2 Driver Installation
We recommend you to install the driver before you install the PCM-3780
card into your system, since this will guarantee a smooth installation process.
The Advantech Device Drivers Setup program for the PCM-3780 card is
included on the companion CD-ROM that is shipped with your DA&C
card package. Please follow the steps below to install the driver software:
Step 1: Insert the companion CD-ROM into your CD-ROM drive.
Step 2: The Setup program will be launched automatically if you have the
autoplay function enabled on your system. When the Setup Program is
launched, you’ll see the following Setup Screen.
Note:If the autoplay function is not enabled on your
computer, use Windows Explorer or the Windows
Run command to execute SETUP.EXE on the
companion CD-ROM.
Figure 2.1: The Setup Screen of Advantech Automation Software
13Chapter 2
Step 3: Select the Individual Drivers option.
Step 4: Select the specific device then just follow the installation instruc-
tions step by step to complete your device driver setup.
Figure 2.2: Different Options for Driver Setup
For further information on driver-related issues, an online version of
Device Drivers Manual is available by accessing the following path:
Note:Make sure you have installed the driver before you
install the card. We strongly recommend that you
install the software driver before you install the
hardware into your system, since this will guarantee a smooth and trouble-free installation process.
For more information about the driver installation, configuration and
removal procedures for Windows 2000 and Windows XP, please see the
corresponding help file:
After the DLL driver installation is completed, you can go on to install
the PCM-3780 card in one of the PC/104 I slots on your computer. It is
suggested that you refer to the computer user’s manual or related documentation if you have any doubts. Please follow the steps below to install
the card on your system.
2.3.1 Installing the Module
1.Turn the PC’s power off. Turn off the power of any peripheral
devices such as printers and monitors.
2.Disconnect the power cord and any other cables from the back of
the computer.
3.Remove the system unit cover (see the user.s guide for your chassis
if necessary).
4.Remove the CPU card from the chassis (if necessary) to gain access
to the card.s PC/104 connector.
5.Connect connector J1 of the PCM-3780 card to the PC/104 connec-
tor. Carefully align the pins with the PC/104 connector. Slide the
module into the connector. The module pins may not slide all the
way into the connector; do not force the pins into place, as the module may be damaged.
6.Fasten the module to the CPU card by using the included brass
screw. Screw the brass spacer into the threaded hole on the CPU
card. Do not tighten too much, or the threads may be damaged.
7.Attach any accessories to the PCM-3780 card using 20 pin cables.
8.Reinstall the CPU card and replace the system unit cover. Recon-
nect the cables you removed in step 2. Plug in and turn on the
power.
15Chapter 2
PCM-3780 User Manual16
2
3
CHAPTER
Pin Assignments &
Jumper Settings
This chapter provides useful information about how to connect input and
output signals to the PCM-3780 via the
I/O connector.
Sections include:
• Overview
• Signal Connections
• Switch & Jumper Settings
• Connectors Pin Assignment
• Period Measurement
• Frequency Measurement
Chapter 3 Pin Assignments & Jumper
Settings
3.1 Overview
Maintaining signal connections is one of the most important factors in
ensuring that your application system is sending and receiving data correctly. A good signal connection can avoid unnecessary and costly damage to your PC and other hardware devices. This chapter provides useful
information about how to connect input and output signals to the PCM3780 via the I/O connector.
3.2 Signal Connections
Figure 3.1: Connectors Locations
PCM-3780 User Manual18
Table 3.1: Connectors Table
LabelFunction
CN1PC/104 Slot
CN2PC/104 Slot
CN3I/O Port Connector
CN4Counter Interface Connector
JP1Interrupt Jumper
JP2JTAG Connector
SW1Base Address Configuration Switch
3.3 Switch and Jumper Settings
We designed PCM-3780 with ease-of-use in mind. It has one address
switch and one interrupt jumper setting. The following section describes
how to configure the card.
Interrupt Level (IRQ) Setting (JP1)
Select an IRQ which is not already in use by another card in the system. If
you are installing more than one PCM-3780, set them to different IRQ
numbers. Jumper bank JP1 controls the card IRQ. Simply place the
jumper on the required interrupt level as shown in the following figure.
19Chapter 3
Base Address Setting (SW1)
Select an address which is not already in use by another card in the system. If you are installing more than one PCM-3780 card in your system,
set the cards to different base addresses. The base address configuration
switch SW1 controls each card's base address, as shown below.
Switch ON: Address Line Value = 0
Switch OFF: Address Line Value = 1
Table 3.2: Base Address Setting
Base AddressA6A7A8A9
100H - 13FH
140H - 17FH
……
3C0H - 3FFH
0 010
1 010
1 111
For example:
Base Address 140H:
A6 OFF A7 ON A8 OFF A9 ON
*Default Setting = 300H
The following example shows how to set the base address to 140H.
The switch SW1 sum is set to 140H:
40H(A6=1) + 0(A7=0) + 100H(A8=1) + 0(A9=0) = 140
Address LineA6A7A8A9
HEX Value40H80H100H200H
PCM-3780 User Manual20
3.4 Connectors Pin Assignment
CN3: I/O Port Connector
Figure 3.2: I/O Port Connector
CN4: Counter Interface Connector
Figure 3.3: Counter Interface Connector
21Chapter 3
I/O Connector Signal Description
Table 3.3: I/O Connector Signal Descriptions
Signal Name
GND--DC ground
+5VGNDOutput+5 VDC source
FOUT<0..1>GNDOutput
C_OUT<0..1>GNDOutputCounter output channels
C_CLK<0..1>GNDInput
C_GATE<0..1>GNDInputGate control channels
PA(/B/C)<0..7>GNDI/ODigital I/O channels
Reference DirectionDescription
Frequency output channels
Clock external input channels
PCM-3780 User Manual22
3.5 Period Measurement
3.5.1 Using Advantech 32-bit DLL Driver
This approach is for a low frequency signal.
We recommend you to perform period measurement through our 32-bit
DLL driver because it is the simplest way for both programming and
wiring. Just connect the unknown single to
be measured by the software.
3.5.2 Using Direct I/O
This approach is for a low frequency signal.
Figure 3.4: Period Measurement
Implementing this measurement needs two counters, one for the up cycle
period and another for the down cycle period. These added together gives
the total period. The duty cycle can also be calculated by dividing the up
period with the total period. Connect the unknown signal to each
counter's gate.
Gate and the duty cycle will
Apply a standard clock pulse to each counter. Counter 0 counts the up
cycle, while
simple. Just connect the unknown signal to
ter to select the gate source.
selects
Apply the standard clock to both counters with the clock source selection
register. It can change the clock for different measurement ranges.
Counter 0 set as "Mode O" will make gate polarity positive. Counter 1
set as
Counter 1 counts the down cycle. In PCM-3780, wiring is
Counter 0, and use the regis-
Counter 0 selects "Gate N". Counter 1
"Gate N-1".
"Mode O" will make gate polarity negative.
23Chapter 3
3.6 Frequency Measurement
3.6.1 Using Advantech 32-bit DLL Driver
This approach is for a high frequency signal.
Measuring pulse frequency is simple by using the Advantech 32-bit DLL
driver. Just connect the unknown single to
will be measured by the software.
3.6.2 Using Direct I/O
This approach is for a high frequency signal.
Gate and the pulse frequency
Figure 3.5: Frequency Measurement
It also takes two counters for frequency measurement. Counter 0 counts
the number of incoming standard source clock, while
the number of incoming unknown signal clock pulses.
Connect the standard clock source to
0
to “Mode D”. The total time period can be measured by Counter 0
through the standard source clock (Multiply the number of incoming
pulses by their frequency). Also connect the unknown signal to
Counter 1 and set Counter 1 to “Mode B”, and the frequency of the
unknown signal can be calculated by dividing the number of pulses by the
total time period.
PCM-3780 User Manual24
Gate of Counter 0 and set Counter
Counter 1 counts
CLK of
2
A
APPENDIX
Specifications
This appendix provides detailed specifications for PCM-3780.
Appendix A Specifications
A.1 Programmable Counter
Channels2
Resolution
Compatibility
Max. Input
Frequency
Clock Input
Gate Input
Counter Output
16-bit
TTL level
20 MHz
Low
High
Low
High
Low
High
A.2 Digital Input/Output
0.8 V max.
2.0 V min.
0.8 V max.
2.0 V min.
0.4 V max.@ +8.0mA (sink)
2.4 V min.@ -0.4mA(source)
Channels
Input Voltage
Input Load
Output Voltage
PCM-3780 User Manual26
24 (8255Mode 0)
Low
High
Low
High
Low
High
0.4V max.
2.4 V min.
0.4 V max.@ -0.2mA
2.7 V min.@20µA
0.5 V max.@+24 mA
2.4 V min.@-15 mA
A.3 General
I/O Connector Type One 50 pin and one 20 pin box header
Dimensions90 x 96 mm (3.6" x 3.8")
Power
Consumption
Temperature
Relative Humidity
CertificationsCE certified
Typ ica l+5 V @ 300mA
Max.
Operating
Storage-20~+70° C(-4~158° F)
Operating
Storage
+5 V @ 0.8A
0~+60° C (32~158° F)
(refer to IEC 68-2-1,2)
5~85 % RH non-condensing
(refer to IEC 68-1,-2,-3)
5~95 % RH non-condensing
(refer to IEC 68-1,-2,-3)
27Appendix A
PCM-3780 User Manual28
2
B
APPENDIX
Block Diagram
This chapter provides information on
the block diagram for PCM-3780.
Appendix B Block Diagram
PCM-3780 User Manual30
2
C
APPENDIX
Register Structure &
Format
This chapter provides information on
the register structure and format for
PCM-3780.
Appendix C Register Structure & Format
C.1 Overview
PCM-3780 is delivered with an easy-to-use 32-bit DLL driver for user
programming under the Windows 2000/XP operating system. We advise
users to program the PCM-3780 using the 32-bit DLL driver provided by
Advantech to avoid the complexity of low-level programming by register.
The most important consideration in programming the PCM-3780 at register level is to understand the function of the card's registers. The information in the following sections is provided only for users who would
like to do their own low-level programming.
C.2 I/O Port Address Map
The PCM-3780 requires 64 consecutive addresses in the PC's I/O space.
The address of each register is specified as an offset from the card's base
address. For example, BASE+0 is the card's base address and BASE+6 is
the base address plus six bytes.
Table C-1 shows the function of each register of the PCM-3780 or driver
and its address relative to the card's base address.
The PCM-3780 offers 16 powerful
counter functions for your industrial or
laboratory applications. This chapter
will describe each mode in detail with
waveform diagrams.
Appendix D Waveform of Each Mode
D.1 Counter Mode Descriptions
Counter Mode register bits CM15-CM12 and CM6-CM4 select the operating mode for each counter (see Table D-1). To simplify references to a
particular mode, each mode is assigned a letter from
sentative waveforms for the counter modes are illustrated in Figure
through
mode, Figures
The figures assume counting on rising source edges. These modes (which
automatically disarm the counter) (CM4 = 0) are shown with the WR
pulse entering the required ARM command. For modes that count repetitively (CM4 = 1) the ARM command is omitted. Both a TC output waveform and a TC Toggled output waveform are shown for each mode.
The symbols
Load and Hold register contents, respectively. The symbols K and N rep-
resent arbitrary count values. For each mode, the required bit pattern in
the Counter Mode register is shown; "don't care" bits are marked "X".
These figures are designed to clarify the mode descriptions.
To keep the following mode descriptions concise and to the point, the
phrase "source edges" is used to refer to active-going source edges only,
not to inactive-going edges. Similarly, the phrase "gate edges" refers only
to active-going gate edges. Also, again to avoid verbosity and euphuism,
the descriptions of some modes state that a counter is stopped or disarmed
"on a TC, inhibiting further counting."
As is fully explained in the TC section of the document, for these modes
the counter is actually stopped or disarmed following the active-going
source edge, which drives the counter out of TC. In other words, since a
counter in the TC state always counts, irrespective of its gating of arming
status, the stopping or disarming of the count sequence is delayed until
TC is terminated.
X (because the letter suffix in the figure number is keyed to the
M, N, P, Q, V, and W do not exist).
L and H are used to represent count values equal to the
A through X. Repre-
A
PCM-3780 User Manual44
Table D.1: PCM-3780 Counter Mode
Counter ModeA B CDE FGHIJKL
Special Gate (CM6)0 00000000000
Reload Source (CM5)000000111111
Repetition (CM4)0 00111000111
Gate Control
(CM15~CM12)
Count to TC once, then
disarm
Count to TC twice, then
disarm
Count to TC repeatedly
without disarming
Gate input dose not gate
counter input
Count only during active
gate level
Start count on active gate
edge and stop count on
next TC
Start count on active gate
edge and stop count on
second TC
Start count on active gate
edge and stop count on
inactive gate edge
Reload counter from Load
Register on TC
Reload counter on each
TC, alternating reload
source between Load and
Hold Registers
Start count on active gate
edge and stop count on
next TC
Start count on active gate
edge and stop count on
second TC
Start count on active gate
edge and stop count on
inactive gate edge
Reload counter from Load
Register on TC
Reload counter on each
TC, alternating reload
source between Load and
Hold Registers
NLENLENLENLE
YY Y
YYY
YYYYYY
YY Y Y
YYY Y
YY
YY
YYY Y
YY Y Y Y Y
YYYYYY
Note: Counter modes M, N, P, Q, S, T, V, W are identical to A, B, D, E,
G, H, J, K.
PCM-3780 User Manual46
D.2 Mode A Waveforms
Software-Triggered Strobe with No Hardware Gating
Mode A is one of the simplest operating modes. The counter will be
available for counting source edges when it is issued an ARM command.
On each TC the counter will reload from the Load register and automatically disarm itself, inhibiting further counting. Counting will resume
when a new ARM command is issued.
SOURCE
WR
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
ARM
COMMAND
LL-1L- 2K+1XKK-1210L
Mode A Waveforms
47Appendix D
D.3 Mode B Waveforms
Software-Triggered Strobe with Level Gating
Mode B is identical to Mode A except that source edges are counted only
when the assigned gate is active. The counter must be armed before
counting can occur. Once armed, the counter will count all source edges
that occur while the gate is active and disregard those edges that occur
while the gate is inactive.
This permits the gate to turn the counting process on and off. On each TC
the counter will reload from the
itself, inhibiting further counting until a new ARM command is issued.
SOURCE
Load register and automatically disarm
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
ARM
COMMAND
XLL- 1L-2K+1K210L
Mode B Waveforms
PCM-3780 User Manual48
D.4 Mode C Waveforms
Hardware-Triggered Strobe
Mode C is identical to Mode A, except that counting will not begin until a
gate edge is applied to the armed counter. The counter must be armed
before application of the triggering gate edge, while gate edges applied to
a disarmed counter are disregarded.
The counter will start counting on the first source edge after the triggering
gate edge and will continue counting until TC. At TC, the counter will
reload from the
will then remain inhibited until a new ARM command and a new gate
edge are applied in that order.
Note that after application of a triggering gate edge, the gate input will be
disregarded for the remainder of the count cycle. This differs from Mode
B, where the gate can be modulated throughout the count cycle to stop
and start the counter.
SOURCE
Load register and automatically disarm itself. Counting
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
ARM
COMMAND
XLL- 1L-2210L
Mode C Waveforms
49Appendix D
D.5 Mode D Waveforms
Rate Generator with No Hardware Gating
Mode D is typically used in frequency generation applications. In this
mode, the gate input does not affect counter operation. Once armed, the
counter will count to TC repetitively. On each TC the counter will reload
itself from the Load register; hence the Load register value determines the
time between TCs. A square wave rate generator may be obtained by
specifying the TC Toggled output mode in the Counter Mode
SOURCE
register.
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
10L210
LL- 1L- 22210L-1L- 2
Mode D Waveforms
PCM-3780 User Manual50
D.6 Mode E Waveforms
Rate Generator with Level Gating
Mode E is identical to Mode D, except the counter will only count those
source edges that occur while the gate input is active. This feature allows
the counting process to be enabled and disabled under hardware control.
A square wave rate generator may be obtained by specifying the TC toggled output mode.
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
2L-1L-2K+1K-1210L
10LK
Mode E Waveforms
51Appendix D
D.7 Mode F Waveforms
Non-Retriggerable One-Shot
Mode F provides a non-retriggerable, one-shot, timing function. The
counter must be armed before it will function. Application of a gate edge
to the armed counter will enable counting. When the counter reaches TC,
it will reload itself from the Load register. The counter will then stop
counting, awaiting a new gate edge.
Note that unlike Mode C, a new ARM command is not needed after TC,
only a new gate edge. After application of a triggering gate edge, the gate
input is disregarded until TC.
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
XL1L
L-1L-220
PCM-3780 User Manual52
Mode F Waveforms
D.8 Mode G Waveforms
Software-Triggered Delayed Pulse One-Shot
In Mode G, the gate does not affect the counter's operation. Once armed,
the counter will count to TC twice and then automatically disarm itself.
For most applications, the counter will initially be loaded from the
register either by a LOAD command or by the last TC of an earlier timing
cycle.
Upon counting to the first TC, the counter will reload itself from the
register. Counting will proceed until the second TC, when the counter
will reload itself from the
inhibiting further counting. Counting can be resumed by issuing a new
ARM command.
Specifying the TC Toggled output mode in the Counter Mode register
may generate a software-triggered delayed pulse one-shot. The initial
counter contends control of the delay from the ARM command until the
output pulse starts. The
SOURCE
Load register and automatically disarm itself,
Hold register contents control the pulse duration.
Load
Hold
WR
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
ARM
COMMAND
LL- 1L-22X0HH-21
1H-120L
Mode G Waveforms
53Appendix D
D.9 Mode H Waveforms
Software-Triggered Delayed Pulse One-Shot with Hardware Gating
Mode H is identical to Mode G except that the gate input is used to qualify which source edges are to be counted. The counter must be armed for
counting to occur. Once armed, the counter will count all source edges
that occur while the gate is active and disregard those source edges that
occur while the gate is inactive. This permits the gate to turn the count
process on and off.
As with Mode G, the counter will be reloaded from the Hold register on
the first TC and reloaded from the Load register and disarmed on the second TC. This mode allows the Gate to control the extension of both the
initial output delay time and the pulse width.
SOURCE
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
SOURCE
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
ARM
COMMAND
XLL-1L-2K+ 1KK-1210HH-1 H-2N+1
N+1NN-1210L
Mode H
Waveforms
PCM-3780 User Manual54
D.10 Mode I Waveforms
Hardware-Triggered Delayed Pulse Strobe
Mode I is identical to Mode G, except that counting will not begin until a
gate edge is applied to an armed counter. The counter must be armed
before application of the triggering gate edge. Gate edges applied to a disarmed counter are disregarded. An armed counter will start counting on
the first source edge after the triggering gate edge. Countering will then
proceed in the same manner as in Mode G. After the second TC, the
counter will disarm itself. An ARM command and gate edge must be
issued in this order to restart counting.
Note that after application of a triggering gate edge, the gate input will be
disregarded until the second TC. This differs from Mode H, where the
gate can be modulated throughout the count cycle to stop and start the
counter.
SOURCE
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
ARM
COMMA ND
XL1H
L-1L- 220
Mode I Waveforms
55Appendix D
H-1H-2201L
D.11 Mode J Waveforms
Variable Duty Cycle Rate Generator with No Hardware Gating
Mode J will find the greatest usage in frequency generation applications
with variable duty cycle requirements. Once armed, the counter will
count continuously until it is issued a DISARM command.
On the first TC, the counter will be reloaded from the Hold register.
Counting will then proceed until the second TC at which time the counter
will be reloaded from the Load register. Counting will continue, with the
reload source alternating on each TC, until a DISARM command is
issued to the counter. (The third TC reloads form the Hold register, the
fourth TC reloads form the Load register, etc.)
Specifying the TC Toggled output in the Counter Mode register can generate a variable duty cycle output. The Load and Hold values then directly
control the output duty cycle, with high resolution available when relatively high count values are used.
SOURCE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
HH-1H-221LL-2210HH-12100L-1H-2
PCM-3780 User Manual56
Mode J
Waveforms
D.12 Mode K Waveforms
Variable Duty Cycle Rate Generator with Level Gating
Mode K is identical to Mode J except that source edges are only counted
when the Gate is active. The counter must be armed for counting to occur.
Once armed, the counter will count all source edges that occur while the
gate is active and disregard those source edges that occur while the gate is
inactive. This permits the gate to turn the count process on and off.
As with Mode J, the reload source used will alternate on each TC, starting
with the Hold register on the first TC. After the gate modulate the duty
cycle of the output waveform. It can affect both the high and low portions
of the output waveform.
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
2101
N+1NN-1210H
HH-1 H-2K+1KK-120LL-1L-2N+1
H-1 H-2
Mode K
Waveforms
57Appendix D
D.13 Mode L Waveforms
Hardware-Triggered Delayed Pulse One-Shot
Mode L is similar to Mode J except that counting will not begin before a
gate edge is applied to an armed counter. The counter must be armed
before application of the triggering gate edge; gate edges applied to a disarmed counter are disregarded. The counter will start counting source
edges and counting will proceed until the second TC.
Note that after application of a triggering gate edge, the gate input will be
disregarded for the remainder of the count cycle. This differs from Mode
K, where the gate can be modulated throughout the count cycle to stop
and start the counter. On the first TC after application of the triggering
gate edge, the counter will be reloaded from the Hold register. On the second TC, the counter will be reloaded from the Load register and counting
will stop until a new edge is issued to the counter. Note that unlike Mode
K, new gate edges must be altered every second TC to continue counting.
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
XL1HH-1H-2201L
L-1L- 220
Mode L Waveforms
PCM-3780 User Manual58
D.14 Mode O Waveforms
Hardware-Triggered Strobe with Edge Disarm
Mode O, shown in Figure O, is identical to Mode C except that the
counter will be disarmed while an inactive-going gate edge is applied to
the counter. And the counter will hold the count value until it is issued a
LOAD command or REST command.
SOURCE
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
SOURCE
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
ARM
COMMAND
XLL-1L-2210L
ARM
COMMAND
XLL-1L-2
N+2N+1N
Mode O Waveforms
59Appendix D
D.15 Mode R Waveforms
Non-Retriggerbale One-Shot with Edge Disarm
Mode R is identical to Mode F except that the counter will be disarmed
while an inactive-going gate edge is applied to the counter. The counter
will hold the count value until it is issued a LOAD command or REST
command.
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
XL1L
L-1L-220
L-1L-2N+2NXLN+1
Mode R Waveforms
PCM-3780 User Manual60
D.16 Mode U Waveforms
Hardware-Triggered Delayed Pulse Strobe with Edge Disarm
Mode U is identical to Mode I except that the counter will be disarmed
while the gate and inactive-going gate edge is applied to the counter. The
counter will hold the count value until it is issued a LOAD command or
REST command.
SOURCE
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
SOURCE
WR
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
SOURCE
WR
GATE
ARM
COMMA ND
XL1H
L-1L- 220
ARM
COMMA ND
L-1L- 220XL1H
ARM
COMMA ND
H-1H-2201L
H-1H-2N+2NN+1
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
L-1L- 2N+2NXLN+1
Mode U Waveforms
61Appendix D
D.17 Mode X Waveforms
Hardware-Triggered Delayed Pulse One-Shot with Edge Disarm
Mode X is identical to Mode L except that the counter will be disarmed
while an inactive-going gate edge is applied to the counter. The counter
will hold the count value until it is issued a LOAD command or REST
command.
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
TC TOGGLED
OUTPUT
SOURCE
GATE
COUNT
VALUE
TC OUTPUT
L-1L-220XL1HH-1H-2201L
L-1L-220XL1HH-1H-2N+2NN+1
L-1L-2N+2NXLN+1
TC TOGGLED
OUTPUT
Mode X Wa veforms
PCM-3780 User Manual62
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.