Advantech PCI-1784 specifications Counter modes, Single-ended vs. differential input

Page 52

Single-ended vs. differential input

Most encoders produce square wave signals with TTL levels. Industrial systems often use encoder with differential signals, i.e. channel A and B and their complements. Differential signals can reduce sensitivity to noise and allow longer transmission distances. Encoders may also produce a third signal once per revolution know as the index or marker. The encoder interface can use the index signal to reset the counter, allowing you to monitor the position within the current revolution.

D.2 Counter modes

The following table shows the maximum input rate for each input mode and system clock rate. Values are given for each system clock frequency.

Mode

 

Maximum input rate

 

 

 

 

8MHz

4MHz

2MHz

1MHz

 

Quadrature x1, x2, x4

2 MHz

1 MHz

500 KHz

250 KHz

2-pulse

8 MHz

4 MHz

2 MHz

1 MHz

 

Pulse/direction

8 MHz

4 MHz

2 MHz

1 MHz

 

Counter modes are as follows:

Quadrature input counter mode

Quadrature input consists of two square wave inputs (A and B)which are 90° out of phase. The PCI-1784 counts square wave transitions and determines the direction by comparing whether channel A is leading channel B or vice versa.

There are three different counting methods in quadrature input mode:

x1 The counter will increment (or decrement) the counter whenever a rising edge occurs on input channel A.

x2 The counter will increment (or decrement) whenever a rising or falling edge occurs on input channel A.

x4 The counter will increment (or decrement) whenever a rising or falling edge occurs on input channel A or B.

48

Image 52
Contents Page Page Contents Appendix D. Operation Introduction FeaturesEncoder Interface Counters Digital Input and InterruptsFlexible Digital Output function Special Shielded Cable for Noise ReductionBoard ID Installation Guide ApplicationsInstallation Flow Chart Device Drivers Software OverviewRegister-level Programming Device Drivers Programming Roadmap Programming ToolsTroubleshooting Device Drivers Error Programming with Device Drivers Function LibraryWiring Cable AccessoriesWiring Boards Installation UnpackingPage Driver Installation Setup Screen of Advantech Automation SoftwareHardware Installation Select the Individual Drivers optionPage Device name listed on the Device Manager Device Setup & Configuration Board selectionSetting Up and configure the device ‘Setup’ dialog boxOperation dialog box Signal Connections Switch and Jumper SettingsOverview Names of Jumpers Function descriptionBoard ID setting SW1 Connector Signal Description Signal ConnectionsPin Assignment Quadrature encoder input Single ended Outputs EncoderQuadrature encoder up/down counter input connections Isolated digital input Isolated digital outputTimer Appendix A. SpecificationsEncoder Output Counter Latch InterruptGeneral Appendix B. Block Diagram ADDRESS, Control and Data BUSPage Appendix C. Register Structure and Format I/O Port Address MapTable C-1 PCI-1784 register format Part + HEX1CH Clock Control Counter 0/1/2/3 mode BASE+00/04/08/0CH Table C-2 PCI-1784 Register for counter 0/1/2/3 modeDI0 Counter 0/1/2/3 latch data BASE+00/04/08/0CH Table C-3 PCI-1784 Register for counter 0/1/2/3 latch dataCounter 0/1/2/3 compare data BASE+10/14/18/1CH Table C-4 PCI-1784 Register for counter 0/1/2/3 compare dataInterrupt control register BASE+20H Table C-5 PCI-1784 Register for interrupt controlInterrupt status register BASE+20H Table C-6 PCI-1784 Register for interrupt statusClear Interrupt BASE+24H Table C-7 PCI-1784 Register for clock controlTable C-8 PCI-1784 Register for clear interrupt Software latch BASE+28H Table C-9 PCI-1784 Register for software latchBoard ID BASE+28H Table C-10 PCI-1784 Board ID dataReset counter BASE+2CH Table C-11 PCI-1784 Register for reset counterDigital output BASE+30H Table C-12 PCI-1784 Register for digital outputDigital input/output BASE+30H Table C-13 PCI-1784 Register for digital input/outputPage Appendix D. Operation Quadrature encoder introductionMode Maximum input rate 8MHz 4MHz 2MHz 1MHz Quadrature input counter modeCounter modes Single-ended vs. differential inputPulse mode Pulse/direction modeDisabled mode Digital noise filterLatch mode Clock frequency Maximum widthLatch Index latchCounter reset value Timer functionInterrupt function