User's Manual
Table Of Contents
- Contents
- 1. Introduction
- 1.1 Features
- 1.2 Installation Guide
- 1.3 Accessories
- 2. Installation
- 2.1 Unpacking
- 2.2 Driver Installation
- 2.3 Hardware Installation
- 2.4 Device Setup & Configuration
- 2.5 Device Testing
- 3. Signal Connections
- 3.1 Overview
- 3.2 I/O Connector
- 3.3 Analog Input Connections
- 3.4 Analog Output Connections
- 3.5 Field Wiring Considerations
- 4. Software Overview
- 4.1 Programming Choices
- 4.2 DLL Driver Programming Roadmap
- 5. Principles of Operation
- 5.1 Analog Input Features
- 5.2 Analog Output Features
- 5.3 Digital I/O Features
- 5.4 Counter/Timer Features
- 6. Calibration
- 6.1 VR Assignment
- 6.2 A/D Calibration
- 6.3 D/A Calibration
- 6.4 Calibration Utility
- Appendix A. Specification
- Appendix B. Block Diagram
- Appendix C. Screw-terminal Board
- C. 1 Introduction
- C. 2 Features
- C. 3 Board Layout
- C.4 Pin Assignment
- C.5 Single-ended Connections
- C.6 Differential Connections
- Appendix D. Register Structure and Format
- D.1 Overview
- D.2 I/O Port Address Map
- D.3 A/D Single Value Acquisition - Write BASE+0
- D.4 Channel and A/D data - Read BASE + 0
- D.5 A/D Channel Range Setting - Write BASE+2
- D.6 MUX Control - Write BASE+4
- D.7 A/D Control/Status Register - Write/Read BASE+6
- D.8 Clear interrupt and FIFO - Write BASE+8
- D. 9 Interrupt and FIFO status - Read BASE+8
- D.10 D/A control/status register - Write/Read BASE+A
- D.11 D/A Channel 0/1 Data - Write BASE+C/E
- D.12 82C54 Counter Chip 0 - Write/Read BASE+10 to 16
- D.13 82C54 counter chip 1 - Write/Read BASE+18 to 1E
- D.14 Counter gate and clock control/status - Write/ Read BASE+20 to 26
- D.15 Digital I/O registers - Write/Read BASE+28
- D.16 Digital I/O configuration registers - Write/Read BASE+2A
- D.17 Calibration command registers - Write BASE+2C
- D.18 D/A Channel Data for Continuous Output Operation Mode - Write BASE+30
- Figures
- Figure 2-1: The Setup Screen of Advantech Automation Software
- Figure 2-2: Different options for Driver Setup
- Figure 2-3: The device name listed on the Device Manager
- Figure 2-4: The Advantech Device Installation utility program
- Figure 2-5: The I/O Device Installation dialog box
- Figure 2-6: The "Device(s) Found" dialog box
- Figure 2-7: The Device Setting dialog box
- Figure 2-8: The Device Name appearing on the list of devices box
- Figure 2-9: Analog Input tab on the Device Test dialog box
- Figure 2-10: Analog Input tab on the Device Test dialog box
- Figure 2-11: Analog Output tab on the Device Test dialog box
- Figure 2-12: Digital Input tab on the Device Test dialog box
- Figure 2-13: Digital Output tab on the Device Test dialog box
- Figure 2-14: Digital output tab on the Device Test dialog box
- Figure 3-1: I/O connector pin assignments for the PCI-1712/1712L
- Figure 3-2: Single-ended input channel connection
- Figure 3-3: Differential input channel connection - ground reference signal source
- Figure 3-4: Differential input channel connection - floating signal source
- Figure 3-5: Analog output connections
- Figure 5-1: Post-Trigger Acquisition Mode
- Figure 5-2: Delay-Trigger Acquisition Mode
- Figure 5-3: About-Trigger Acquisition Mode
- Figure 5-4: Pre-Trigger Acquisition Mode
- Figure 5-5: PCI-1712/1712L Sample Clock Source
- Figure 5-6: Frequency measurement
- Figure 6-1: PCI-1712/1712L VR1 & TP5
- Figure 6-2: Selecting the device you want to calibrate
- Figure 6-3: Warning message before start calibration
- Figure 6-4: Auto A/D Calibration Dialog Box
- Figure 6-5: A/D Calibration Procedure 1
- Figure 6-6: A/D Calibration Procedure 2
- Figure 6-7: A/D Calibration Procedure 3
- Figure 6-8: A/D Calibration is finished
- Figure 6-9: Range Selection in D/A Calibration
- Figure 6-10: Calibrating D/A Channel 0
- Figure 6-11: Calibrating D/A Channel 1
- Figure 6-12: D/A Calibration is finished
- Figure 6-13: Selecting Input Rage in Manual A/D Calibration panel
- Figure 6-14: Adjusting registers
- Figure 6-15: Selecting D/A Range and
- Figure 6-16: Selecting D/A Range and Choosing Output Voltage
- Figure 6-17: Adjusting registers
- Figure C-1: PCLD-8712 board layout
- Figure C-2: CN2 pin assignments for the PCLD-8712
- Tables
- Table 3-1: I/O Connector Signal Description (Part 1)
- Table 3-1: I/O Connector Signal Description (Part 2)
- Table 3-1: I/O Connector Signal Description (Part 3)
- Table 5-1: Gains and Analog Input Range
- Table 5-2: Analog Input Data Format
- Table 5-3: The corresponding Full Scale values for various Input Voltage Ranges
- Table 5-4: Analog Output Data Format
- Table 5-5: The corresponding Full Scale values for various Output Voltage Ranges
- Table D-1: PCI-1712/1712L register format (Part 1)
- Table D-1: PCI-1712/1712L register format (Part 2)
- Table D-1: PCI-1712/1712L register format (Part 3)
- Table D-2: Register for channel number and A/D data
- Table D-3: Register for A/D channel range setting
- Table D-4: Gain Codes for the PCI-1712/1712L
- Table D-5: Register for multiplexer control
- Table D-6: Register for A/D control/status
- Table D-7: Analog Input Acquisition Mode
- Table D-8: Register for clear interrupt and FIFO
- Table D-9: Register for interrupt and FIFO status
- Table D-10: Register for D/A control
- Table D-11: Analog output operation mode
- Table D-12: Register for D/A channel 0/1 data
- Table D-13: Register for 82C54 counter chip 0
- Table D-14: Register for 82C54 counter chip 1
- Table D-15: Register for counter gate and clock control/status
- Table D-16 : Table of Cn1 to Cn0 register
- Table D-17: Table of Gn1 to Gn0 register
- Table D-18: Table for CLK_SEL1 to CLK_SEL0 register
- Table D-19: Register for Digital I/O
- Table D-20: Register for digital I/O configuration
- Table D-21: Register for digital I/O configuration
- Table D-22: Register for calibration command
- Table D-23: Calibration command
- Table D-24: Register for D/A channel data
– 46 –
Chapter 5
PCI-1712/1712L User’s Manual
Advantech Co., Ltd.
www.advantech.com
Counter/timer operation modes
We enhance the gate function for more applications. For example,
event counting, rate generation, one shot, frequency measurement and
pulse width measurement. We make some innovative arrangements of
clock and gate of counter. For detailed information, please refer to
Appendix D.12 to D.14 and Intel
®
82C54 User’s Manual. The following
sections show how to implement counter functions.
q Event counting
The event counting function helps user count events from the
counter’s associated clock input source.
Each counter features 16-bit, and therefore you can count a maximum
of 65,535 events before the counter overflows and returns to 0. If you
need wider range for event counting, you can use a cascaded 32-bit
counter for counting up to 4,294,967,296 events.
Please follow the procedure below when using software:
1. Select a counter ( e.g. counter 0) to do event counting.
2. Set the counter in mode 0 (Please refer to Intel
®
82C54 User’s
Manual).
3. Connect the pin CNT0_CLK of the counter to the event signal
source.
4. Set the gate type of the counter to positive (logic-high).
5. Reset the counter to 65,535.
6. Pull high the gate input, and then start down counting.
7. After event counting is finished, read the value from the counter.
8. Calculate the number of events.
For example, if the reset value of counter is 65,535 and the read back
value is 43930, then the number of events is 65535 minus 43930 and
thus equals 21605.
q Rate generation
The rate generation function helps user generate a continuous pulse
output signal from the counter. User can use it as an external clock to
output signal to pace other operations, such as analog input, analog
output, or other counter/timer operations.
The frequency of input clock and the number of the counter determine
the period of the output pulse. If you are using one counter (not
cascaded), you can output pulses with a maximum frequency of 5MHz.
In rate generation mode, either the internal or external clock source is