Advantech PCM-3780 Interrupt Clear Register, Direction Control Register, O Direction Control Bit

Page 48

C.10

 

Interrupt Clear Register

 

 

 

 

 

 

 

 

 

Write any data to these two bytes to clear the interrupt.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Base

 

 

PCM-3780 Register Format

 

 

 

 

 

 

 

 

 

 

 

Address

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

+ HEX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

24h

W

Interrupt Clear

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C.11

I/O Direction Control Register

 

 

 

 

Base

 

PCM-3780 Register Format

 

 

 

 

Address +

15 14 13 12 11 10 9 8 7 6 5 4

3

2

1

0

HEX

 

 

 

 

 

 

2Ch

W

I/O Direction Control Register

 

 

 

 

 

 

PA

PCH

 

PB

PCL

 

R

I/O Direction Control Register

 

 

 

 

 

 

PA

PCH

 

PB

PCL

1.I/O Direction Control Bit:

0= Output

1= Input

C.12 Port A/B/C Interrupt Status Register

Base

 

PCM-3780 Register Format

 

 

 

 

 

 

 

 

 

Address

15

14

13

12

11

10 9

8

7

6

5

4

3

2

1

0

+ HEX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2Eh

W

Port A Interrupt Status Register

 

 

 

 

 

 

 

 

 

 

N/A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

Port A Interrupt Status Register

Bit7

Bit6

Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

30h

W

Port B Interrupt Status Register

 

 

 

 

 

 

 

 

 

 

N/A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

Port B Interrupt Status Register

Bit7

Bit6

Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

32h

W

Port C Interrupt Status Register

 

 

 

 

 

 

 

 

 

 

N/A

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

R

Port C Interrupt Status Register

Bit7

Bit6

Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

 

 

 

 

 

 

 

 

 

1.Bit7 to Bit0: Port A/B/C Interrupt Status Register

0= No interrupt occurred

1= Interrupt occurred

PCM-3780 User Manual

40

Image 48
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 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 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