Advantech PCI-1784 specifications Counter reset value, Timer function

Page 55

DI0 latch

A rising edge on the board's DI0 line will latch the counter value for the channel.

DI1 latch

A rising edge on the DI1 line will latch the counter value for the channel.

DI2 latch

A rising edge on the board's DI2 line will latch the counter value for the channel.

DI3 latch

A rising edge on the DI3 line will latch the counter value for the channel.

Timer latch

The card latches the counter value on a rising edge of pulses from the card's on-board timer.

D.5 Counter reset value

Bit 4 (RF) of registers BASE+00H, 04H, 08H and 0CH control the initial (reset) value of for each counter. You can select either 00000000 or 80000000 (hex). When the counter is reset, it will take this value.

When RF0, the counter will reset to 80000000h.

When RF1, the counter will reset to 00000000h.

D.6 Timer function

The card can generate an interrupt to the system based on a signal from its digital inputs, overflow/underflow and over-compare / under- compare of its counters, or on a programmed time interval. It can repeatedly generate interrupts at any time interval you specify, from 20 microseconds to 51 second. These interrupts let you precisely monitor the speed of a control system.

51

Image 55
Contents Page Page Contents Appendix D. Operation Introduction FeaturesEncoder Interface Special Shielded Cable for Noise Reduction CountersDigital Input and Interrupts Flexible Digital Output functionBoard ID Applications Installation GuideInstallation Flow Chart Device Drivers Software OverviewRegister-level Programming Programming Tools Device Drivers Programming RoadmapProgramming with Device Drivers Function Library Troubleshooting Device Drivers ErrorWiring Cable AccessoriesWiring Boards Unpacking InstallationPage Setup Screen of Advantech Automation Software Driver InstallationSelect the Individual Drivers option Hardware InstallationPage Device name listed on the Device Manager Board selection Device Setup & Configuration‘Setup’ dialog box Setting Up and configure the deviceOperation dialog box Names of Jumpers Function description Signal ConnectionsSwitch and Jumper Settings OverviewBoard ID setting SW1 Connector Signal Description Signal ConnectionsPin Assignment Single ended Outputs Encoder Quadrature encoder inputQuadrature encoder up/down counter input connections Isolated digital output Isolated digital inputTimer Appendix A. SpecificationsEncoder Output Counter Latch InterruptGeneral ADDRESS, Control and Data BUS Appendix B. Block DiagramPage I/O Port Address Map Appendix C. Register Structure and Format+ HEX Table C-1 PCI-1784 register format Part1CH Clock Control Table C-2 PCI-1784 Register for counter 0/1/2/3 mode Counter 0/1/2/3 mode BASE+00/04/08/0CHDI0 Table C-3 PCI-1784 Register for counter 0/1/2/3 latch data Counter 0/1/2/3 latch data BASE+00/04/08/0CHTable C-4 PCI-1784 Register for counter 0/1/2/3 compare data Counter 0/1/2/3 compare data BASE+10/14/18/1CHTable C-5 PCI-1784 Register for interrupt control Interrupt control register BASE+20HTable C-6 PCI-1784 Register for interrupt status Interrupt status register BASE+20HTable C-7 PCI-1784 Register for clock control Clear Interrupt BASE+24HTable C-8 PCI-1784 Register for clear interrupt Table C-9 PCI-1784 Register for software latch Software latch BASE+28HTable C-10 PCI-1784 Board ID data Board ID BASE+28HTable C-11 PCI-1784 Register for reset counter Reset counter BASE+2CHTable C-12 PCI-1784 Register for digital output Digital output BASE+30HTable C-13 PCI-1784 Register for digital input/output Digital input/output BASE+30HPage Quadrature encoder introduction Appendix D. OperationSingle-ended vs. differential input Mode Maximum input rate 8MHz 4MHz 2MHz 1MHzQuadrature input counter mode Counter modesDigital noise filter Pulse modePulse/direction mode Disabled modeIndex latch Latch modeClock frequency Maximum width LatchTimer function Counter reset valueInterrupt function