Advantech PCM-3780 manual Appendix Specifications

Page 8

3.6.2 Using Direct I/O

24

Figure 3.5:Frequency Measurement

24

Appendix

A

Specifications

26

 

A.1

Programmable Counter

26

 

A.2

Digital Input/Output

26

 

A.3

General

27

Appendix

B

Block Diagram

30

Appendix C

Register Structure & Format

32

 

C.1

Overview

32

 

C.2

I/O Port Address Map

32

 

 

C.2.1 Register Format

33

 

C.3

Table C.1:Register Offset Address Table

33

 

Counter 0/1 Mode Register

35

 

C.4

Counter 0/1 Load Register:

37

 

C.5

Counter 0/1 Hold Register

37

 

C.6

Counter 0/1 Command Register

38

 

C.7

Counter Command Enable Register

38

 

C.8

Interrupt Control Register

39

 

C.9

Interrupt Status Register

39

C.10

Interrupt Clear Register

40

C.11

I/O Direction Control Register

40

C.12

Port A/B/C Interrupt Status Register

40

C.13

FOUT Register

41

Appendix D

Waveform of Each Mode

44

 

D.1

Counter Mode Descriptions

44

 

 

Table D.1:PCM-3780 Counter Mode

45

 

D.2

Table D.2:PCM-3780 Counter Mode

46

 

Mode A Waveforms

47

 

D.3

Mode B Waveforms

48

 

D.4

Mode C Waveforms

49

 

D.5

Mode D Waveforms

50

 

D.6

Mode E Waveforms

51

 

D.7

Mode F Waveforms

52

 

D.8

Mode G Waveforms

53

 

D.9

Mode H Waveforms

54

D.10

Mode I Waveforms

55

D.11

Mode J Waveforms

56

D.12

Mode K Waveforms

57

D.13

Mode L Waveforms

58

D.14

Mode O Waveforms

59

D.15

Mode R Waveforms

60

D.16

Mode U Waveforms

61

D.17

Mode X Waveforms

62

PCM-3780 User Manual

viii

Image 8
Contents Ch Counter/Timer with Ch TTL DIO Module PCM-3780Copyright Acknowledgements Two Years Product Warranty CE Notification FCC Class a Technical Support and Assistance Packing List Page Contents Appendix Specifications Introduction Features PCM-3780 Counter Mode Counter ModesPCM-3780 Counter Mode Installation Guide ApplicationsInstallation Flow Chart Software Overview Device Drivers on the companion CD-ROMDevice Drivers Register-level ProgrammingDevice Drivers Programming Roadmap Programming ToolsTroubleshooting Device Drivers Error Programming with Device Drivers Function LibraryWiring Boards AccessoriesWiring Cables Hardware Installation Unpacking Driver Installation Companion CD-ROMDifferent Options for Driver Setup Hardware Installation Installing the ModulePage Pin Assignments & Jumper Settings Signal Connections OverviewSwitch and Jumper Settings Interrupt Level IRQ Setting JP1Base Address Setting SW1 Base Address SettingCN4 Counter Interface Connector Connectors Pin AssignmentCN3 I/O Port Connector Connector Signal Description Reference Direction DescriptionPeriod Measurement Using Advantech 32-bit DLL DriverUsing Direct I/O Frequency Measurement Frequency MeasurementSpecifications Programmable Counter Digital Input/OutputGeneral Page Block Diagram Appendix B Block Diagram Register Structure & Format Appendix C Register Structure & Format I/O Port Address MapRegister Format Table C.1 Register Offset Address TableCE CE Counter 0/1 Mode Register CM2 Output Enable ControlCM1 to CM0 Output Control CM6 to CM3 Count Control CM6CM7 Count Source Edge CM13 to CM12 Gate Source SelectionCM14 Gating Polarity Selection CM15 Gate Active Edge or LevelCounter 0/1 Load Register Counter 0/1 Hold RegisterCounter 0/1 Command Register Counter Command Enable RegisterC2 to C0 Command Code CE1 to CE0 Counter Command Enable BitInterrupt Control Register Interrupt Status RegisterInterrupt Clear Register Direction Control RegisterPort A/B/C Interrupt Status Register O Direction Control BitFout Register DV3 to DV0 Fout Divider Divide by 1 to 16 0000 = Divide byFOE Fout Output Enable FS2 to FS0 Fout SourceWaveform of Each Mode Appendix D Waveform of Each Mode Counter Mode DescriptionsTable D.1 PCM-3780 Counter Mode Table D.2 PCM-3780 Counter Mode Mode a Waveforms Software-Triggered Strobe with No Hardware GatingMode B Waveforms Software-Triggered Strobe with Level GatingMode C Waveforms Hardware-Triggered StrobeMode D Waveforms Rate Generator with No Hardware GatingMode E Waveforms Rate Generator with Level GatingMode F Waveforms Non-Retriggerable One-ShotMode G Waveforms Software-Triggered Delayed Pulse One-ShotMode H Waveforms Mode I Waveforms Hardware-Triggered Delayed Pulse StrobeMode J Waveforms Variable Duty Cycle Rate Generator with No Hardware GatingMode K Waveforms Variable Duty Cycle Rate Generator with Level GatingMode L Waveforms Hardware-Triggered Delayed Pulse One-ShotMode O Waveforms Hardware-Triggered Strobe with Edge DisarmMode R Waveforms Non-Retriggerbale One-Shot with Edge DisarmMode U Waveforms Hardware-Triggered Delayed Pulse Strobe with Edge DisarmMode X Waveforms Hardware-Triggered Delayed Pulse One-Shot with Edge Disarm