Advantech manual Table D.2 PCM-3780 Counter Mode

Page 54

Table D.2: PCM-3780 Counter Mode

Counter Mode

M

N

O

P

Q

R

S

T

U

V

W

X

 

 

 

 

 

 

 

 

 

 

 

 

 

Special Gate (CM6)

0

0

0

0

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

 

 

Reload Source (CM5)

0

0

0

0

0

0

1

1

1

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

Repetition (CM4)

0

0

0

1

1

1

0

0

0

1

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

Gate Control

N

L

E

N

L

E

N

L

E

N

L

E

(CM15~CM12)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Count to TC once, then

Y

Y

Y

 

 

 

 

 

 

 

 

 

disarm

 

 

 

 

 

 

 

 

 

 

 

 

Count to TC twice, then

 

 

 

 

 

 

Y

Y

Y

 

 

 

disarm

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Count to TC repeatedly

 

 

 

Y

Y

Y

 

 

 

Y

Y

Y

without disarming

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Gate input dose not gate

Y

 

 

Y

 

 

Y

 

 

Y

 

 

counter input

 

 

 

 

 

 

 

 

 

 

 

 

Count only during active

 

Y

 

 

Y

 

 

Y

 

 

Y

 

gate level

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Start count on active gate

 

 

Y

 

 

Y

 

 

 

 

 

 

edge and stop count on

 

 

 

 

 

 

 

 

 

 

 

 

next TC

 

 

 

 

 

 

 

 

 

 

 

 

Start count on active gate

 

 

 

 

 

 

 

 

Y

 

 

Y

edge and stop count on

 

 

 

 

 

 

 

 

 

 

 

 

second TC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Start count on active gate

 

 

Y

 

 

Y

 

 

Y

 

 

Y

edge and stop count on

 

 

 

 

 

 

 

 

 

 

 

 

inactive gate edge

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reload counter from Load

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

Register on TC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reload counter on each

 

 

 

 

 

 

Y

Y

Y

Y

Y

Y

TC, alternating reload

 

 

 

 

 

 

 

 

 

 

 

 

source between Load and

 

 

 

 

 

 

 

 

 

 

 

 

Hold Registers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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 Manual

46

Image 54
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 Device Drivers Software OverviewDevice Drivers on the companion CD-ROM Register-level ProgrammingDevice Drivers Programming Roadmap Programming ToolsTroubleshooting Device Drivers Error Programming with Device Drivers Function LibraryAccessories Wiring CablesWiring Boards 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 SettingConnectors Pin Assignment CN3 I/O Port ConnectorCN4 Counter Interface Connector Connector Signal Description Reference Direction DescriptionUsing Advantech 32-bit DLL Driver Using Direct I/OPeriod Measurement 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 CM1 to CM0 Output Control Counter 0/1 Mode RegisterCM2 Output Enable Control CM6 to CM3 Count Control CM6CM14 Gating Polarity Selection CM7 Count Source EdgeCM13 to CM12 Gate Source Selection CM15 Gate Active Edge or LevelCounter 0/1 Load Register Counter 0/1 Hold RegisterC2 to C0 Command Code Counter 0/1 Command RegisterCounter Command Enable Register CE1 to CE0 Counter Command Enable BitInterrupt Control Register Interrupt Status RegisterPort A/B/C Interrupt Status Register Interrupt Clear RegisterDirection Control 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 Source Waveform 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