Advantech PCI-1710 user manual Counter Operations, Read/Write Operation, Counter Read-back Command

Page 62

A.4 Counter Operations

Read/Write Operation

Before you write the initial count to each counter, you must first specify the read/write operation type, operating mode and counter type in the control byte and write the control byte to the control register [BASE + 30(Dec)].

Since the control byte register and all three counter read/write registers have separate addresses and each control byte specifies the counter it applies to (by SC1 and SC0), no instructions on the operat- ing sequence are required. Any programming sequence following the 82C54 convention is acceptable.

There are three types of counter operation: Read/load LSB, read /load MSB and read /load LSB followed by MSB. It is important that you make your read/write operations in pairs and keep track of the byte order.

Counter Read-back Command

The 82C54 counter read-back command lets you check the count value, programmed mode and current states of the OUT pin and Null Count flag of the selected counter(s). You write this command to the control word register. Format is as shown at the beginning of this section.

The read-back command can latch multiple counter output latches. Simply set the CNT bit to 0 and select the desired counter(s). This single command is functionally equivalent to multiple counter latch commands, one for each counter latched.

The read-back command can also latch status information for selected counter(s) by setting STA bit = 0. The status must be latched to be read; the status of a counter is accessed by a read from that counter. The counter status format appears at the beginning of the chapter.

58 PCI-1750 User's Manual

Image 62
Contents PCI-1710/1710HG Multifunction DAS Card for PCI Bus Http/support.advantech.com Contents Appendix a 82C54 Counter Chip Functions General Information PCI-bus Plug and Play Flexible Inputs Types and Ranges SettingIntroduction On-board Fifo First In First Out MemoryFeatures On-board Programmable CounterSpecifications Analog InputLinearity error ±1 LSB Input impedance 1 GΩ Digital Output Analog OutputDigital Input Programmable Timer/Counter GeneralBlock Diagram PCIInstallation Initial Inspection UnpackingInstallation Instructions Page Signal Connections Pin Assignment I/O ConnectorOverview I/O connector pin assignments for the PCI-1710/1710 HG card Connector Signal Descriptions InputConnector Signal Descriptions part Digital Output signalsSignal Reference Direction Description Name Analog Input Connections Single-ended Channel ConnectionsDifferential Channel Connections Single-ended input channel connectionAignd Differential input channel connection floating signal source Analog Output Connections 10VExternal Trigger Source Connection Trigger Source ConnectionsInternal Pacer Trigger Connection Field Wiring Considerations Page Register Structure and Format I/O Port Address Map Base Read DI9 DI8 DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0 Base Write DO9 DO8 DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0 Channel Number and A/D Data BASE+0 and BASE+1 Software A/D Trigger BASE+0A/D Channel Range Setting BASE+2 PCI-1710 PCI-1710HG MUX Control-BASE+4 and BASE+5 Example Control Register BASE+6 Status Register BASE+6 and BASE+7 Clear Interrupt and Fifo BASE+8 and BASE+9 10 D/A Output Channel 0 BASE+10 and BASE+11 11 D/A Output Channel 1 BASE+12 and BASE+1312 D/A Reference Control BASE+14 Digital I/O Registers BASE+16 and BASE+17 Read Digital InputCalibration VR Assignment PCL-1710/1710HG VR assignmentA/D Calibration Following list shows the function of each VRD/A Calibration Self A/D Calibration Page 82C54 Counter Chip Functions Counter 1 Intel 82C54Counter Counter Read/Write Control Registers DescriptionRW1 & RW0 STA = Mode 2 Rate Generator Mode 0 Stop on Terminal CountMode 1 Programmable One-shot Pulse Counter Operating ModesMode 5 Hardware-Triggered Strobe Mode 3 Square Wave GeneratorMode 4 -Software-Triggered Strobe Read/Write Operation Counter Read-back CommandCounter Operations Counter Latch Operation

PCI-1710 specifications

The Advantech PCI-1710 is a highly regarded data acquisition card designed for a wide array of industrial automation and control applications. Offering a robust combination of features and technologies, it is particularly valued for its versatility and high-performance capabilities in collecting and processing analog and digital signals.

At the heart of the PCI-1710 is its 16-bit resolution, which allows for precise measurement of analog signals. This feature is essential in applications that require accurate data capture, such as process monitoring, testing, and quality control in manufacturing environments. The card provides eight single-ended analog input channels, enabling users to connect multiple sensors and transducers simultaneously for comprehensive data gathering.

One of the standout characteristics of the PCI-1710 is its flexible input range, supporting both unipolar and bipolar configurations. This adaptability makes it suitable for a myriad of applications across different industries, including automotive, aerospace, and electronics. The card can also handle a sampling rate of up to 200 kS/s, allowing for rapid data acquisition critical in dynamic environments where timing is crucial.

In addition to its analog capabilities, the PCI-1710 boasts 8 digital input and 8 digital output channels. The digital I/O functions enable the card to serve as an interface for various control and monitoring tasks, further enhancing its utility in automation systems. This integration of analog and digital features within a single card streamlines system design, reducing the need for multiple components and improving reliability.

The PCI-1710 utilizes Advantech’s powerful DAQ software and drivers, ensuring seamless integration with a variety of operating systems and development environments. The comprehensive software support allows engineers to quickly set up data acquisition tasks and execute complex control algorithms without extensive programming, making it accessible for users with varying levels of technical expertise.

In summary, the Advantech PCI-1710 is a versatile data acquisition solution that combines high resolution, flexible input options, and robust digital I/O capabilities. Its capabilities make it ideal for a wide range of applications in industrial automation, monitoring, and testing. With its combination of performance, flexibility, and user-friendly software support, the PCI-1710 remains a popular choice for engineers and developers seeking reliable data acquisition solutions.