Advantech PCM-3780 manual Contents

Page 7

Contents

Chapter

1

Introduction

2

 

1.1

Features

2

 

 

 

Table 1.1:PCM-3780 Counter Mode

3

 

1.2

 

Table 1.2:PCM-3780 Counter Mode

4

 

Applications

5

 

1.3

Installation Guide

5

 

 

 

Figure 1.1:Installation Flow Chart

6

 

1.4

Software Overview

7

 

 

1.4.1 Device Drivers (on the companion CD-ROM)

7

 

 

1.4.2

Device Drivers

7

 

 

1.4.3

Register-level Programming

7

 

1.5

Device Drivers Programming Roadmap

8

 

 

1.5.1

Programming Tools

8

 

 

1.5.2 Programming with Device Drivers Function Library ....

9

 

 

1.5.3 Troubleshooting Device Drivers Error

9

 

1.6

Accessories

10

 

 

1.6.1

Wiring Cables

10

 

 

1.6.2

Wiring Boards

10

Chapter

2

Hardware Installation

12

 

2.1

Unpacking

12

 

2.2

Driver Installation

13

 

 

Figure 2.1:The Setup Screen of Advantech Automation

 

 

Software 13

 

 

 

Figure 2.2:Different Options for Driver Setup

14

 

2.3

Hardware Installation

15

 

 

2.3.1 Installing the Module

15

Chapter

3

Pin Assignments & Jumper Settings

18

 

3.1

Overview

18

 

3.2

Signal Connections

18

 

 

Figure 3.1:Connectors Locations

18

 

3.3

Table 3.1:Connectors Table

19

 

Switch and Jumper Settings

19

 

3.4

Table 3.2:Base Address Setting

20

 

Connectors Pin Assignment

21

 

 

Figure 3.2:I/O Port Connector

21

 

 

Figure 3.3:Counter Interface Connector

21

 

3.5

Table 3.3:I/O Connector Signal Descriptions

22

 

Period Measurement

23

 

 

3.5.1 Using Advantech 32-bit DLL Driver

23

 

 

3.5.2 Using Direct I/O

23

 

 

Figure 3.4:Period Measurement

23

 

3.6

Frequency Measurement

24

 

 

3.6.1 Using Advantech 32-bit DLL Driver

24

vii

Image 7
Contents PCM-3780 Ch Counter/Timer with Ch TTL DIO ModuleCopyright Acknowledgements Two Years Product Warranty CE Notification FCC Class a Technical Support and Assistance Packing List Page Contents Appendix Specifications Introduction Features Counter Modes PCM-3780 Counter ModePCM-3780 Counter Mode Applications Installation GuideInstallation Flow Chart Register-level Programming Software OverviewDevice Drivers on the companion CD-ROM Device DriversProgramming Tools Device Drivers Programming RoadmapProgramming with Device Drivers Function Library Troubleshooting Device Drivers ErrorWiring Cables AccessoriesWiring Boards Hardware Installation Unpacking Companion CD-ROM Driver InstallationDifferent Options for Driver Setup Installing the Module Hardware InstallationPage Pin Assignments & Jumper Settings Overview Signal ConnectionsInterrupt Level IRQ Setting JP1 Switch and Jumper SettingsBase Address Setting Base Address Setting SW1CN3 I/O Port Connector Connectors Pin AssignmentCN4 Counter Interface Connector Reference Direction Description Connector Signal DescriptionUsing Direct I/O Using Advantech 32-bit DLL DriverPeriod Measurement Frequency Measurement Frequency MeasurementSpecifications Digital Input/Output Programmable CounterGeneral Page Block Diagram Appendix B Block Diagram Register Structure & Format I/O Port Address Map Appendix C Register Structure & FormatTable C.1 Register Offset Address Table Register FormatCE CE CM6 to CM3 Count Control CM6 Counter 0/1 Mode RegisterCM2 Output Enable Control CM1 to CM0 Output ControlCM15 Gate Active Edge or Level CM7 Count Source EdgeCM13 to CM12 Gate Source Selection CM14 Gating Polarity SelectionCounter 0/1 Hold Register Counter 0/1 Load RegisterCE1 to CE0 Counter Command Enable Bit Counter 0/1 Command RegisterCounter Command Enable Register C2 to C0 Command CodeInterrupt Status Register Interrupt Control RegisterO Direction Control Bit Interrupt Clear RegisterDirection Control Register Port A/B/C Interrupt Status RegisterDV3 to DV0 Fout Divider Divide by 1 to 16 0000 = Divide by Fout RegisterFS2 to FS0 Fout Source FOE Fout Output EnableWaveform of Each Mode Counter Mode Descriptions Appendix D Waveform of Each ModeTable D.1 PCM-3780 Counter Mode Table D.2 PCM-3780 Counter Mode Software-Triggered Strobe with No Hardware Gating Mode a WaveformsSoftware-Triggered Strobe with Level Gating Mode B WaveformsHardware-Triggered Strobe Mode C WaveformsRate Generator with No Hardware Gating Mode D WaveformsRate Generator with Level Gating Mode E WaveformsNon-Retriggerable One-Shot Mode F WaveformsSoftware-Triggered Delayed Pulse One-Shot Mode G WaveformsMode H Waveforms Hardware-Triggered Delayed Pulse Strobe Mode I WaveformsVariable Duty Cycle Rate Generator with No Hardware Gating Mode J WaveformsVariable Duty Cycle Rate Generator with Level Gating Mode K WaveformsHardware-Triggered Delayed Pulse One-Shot Mode L WaveformsHardware-Triggered Strobe with Edge Disarm Mode O WaveformsNon-Retriggerbale One-Shot with Edge Disarm Mode R WaveformsHardware-Triggered Delayed Pulse Strobe with Edge Disarm Mode U WaveformsHardware-Triggered Delayed Pulse One-Shot with Edge Disarm Mode X Waveforms