advertisement
70
3
VMIVME-2540 Intelligent Counter/Controller
Command Descriptions
The following sections describe the command codes and the usage of the command codes for performing the operations supported by the VMIVME-2540 module.
The required front panel connections are also described for each of the commands that require an input signal, or the use of an output signal connection for proper channel operation.
Initialization and Synchronization Command Codes
A portion of the command codes provide for the initialization of the VMIVME-2540 and individual channels. An additional command provides the host program with the capability to initialize the command status prior to writing the command. Command status interrogation provides the primary synchronization mechanism with the
VMIVME-2540 for the host program.
Command $00:
Disable Channel. The disable channel command instructs the
VMIVME-2540 local CPU to disarm the counter(s) associated with the currently active command for the selected channel. The CCB(s) contents for the selected channel is cleared (set to zeros). This command must be issued by the user for any active channel before commanding any mode of operation. If the user commands a mode of operation for an already active channel, the VMIVME-2540 local CPU returns the
active channel error command status code. The disable channel command may be issued to any channel configured for 16-bit operation. A channel pair configured for
32-bit operation must be disabled by issuing the disable channel command to the lower (even) channel number. The QPC operation must be disabled by issuing the disable channel command to the lowest (even) channel of the four-channel group. If the user issues the disable channel command for other than the correct channel for an active multichannel operation, the VMIVME-2540 local CPU reports the channel
allocation error status code. A disable channel command can be sent for an inactive
(disabled) channel, and a normal command acknowledge command status will be returned to the host processor.
Command $1B:
Initialize. This command instructs the VMIVME-2540 local CPU to initialize all shared memory variables and AM9513A system timing controllers to the same state as that which immediately follows self-test from powerup or front panel reset. All channels are disabled, channel outputs are set to zero, and all channel CCBs are cleared. The initialize command requires only milliseconds to execute and is appropriate for execution when a host program restart is initiated.
Command $1C:
Reset Command Status Buffer. This command instructs the
VMIVME-2540 local CPU to write $xx00 to the command status buffer, located at offset $0006 from the base address. As noted in the command status buffer description, the upper byte of the command status buffer is undefined, while the lower byte is cleared by this command. The response time for this command is less than 50 µs. This command provides the necessary synchronization with the
VMIVME-2540 local processor when polling is used to transfer commands. Proper command-to-command status sequencing requires that the reset command status command be issued first, then the command status buffer be verified for a zero value.
The desired operational command is then issued to the VMIVME-2540, and a command status is verified by reading a nonzero status, followed by a second read which is verified to match the previous nonzero read. This loop should be repeated
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 10 List of Figures
- 12 List of Tables
- 14 Overview
- 15 Disclaimer: Notice About Equivalent Parts
- 16 Reference Material List
- 16 Physical Description and Specifications
- 17 Safety Summary
- 17 Ground the System
- 17 Do Not Operate in an Explosive Atmosphere
- 17 Keep Away from Live Circuits
- 17 Do Not Service or Adjust Alone
- 17 Do Not Substitute Parts or Modify System
- 17 Dangerous Procedure Warnings
- 18 Safety Symbols Used in This Manual
- 20 Chapter 1 - Theory of Operation
- 20 Functional Description
- 20 System Timing Controller Front-End Logic
- 20 RS-422 Line Driver and Receiver
- 21 Synchronizer and Conditioning Logic
- 23 AM9513A System Timing Controller
- 24 QPM Direction Change Interrupt Logic
- 25 I/O Processor
- 25 68HC000 CPU
- 25 Decode and Control Logic
- 25 Local Bus Arbitration
- 27 Local Address Decode
- 29 Local I/O Functions
- 31 Local Memory
- 31 EPROM Firmware
- 31 Static RAM
- 32 Local Interrupt Controller
- 32 STC Interrupts
- 32 VMEbus Command Interrupt
- 34 VMEbus Slave Interface
- 34 VMEbus Slave Address Decode
- 34 Command Status Code
- 36 VMEbus Interrupter Modules
- 38 Chapter 2 - Configuration and Installation
- 39 Unpacking Procedures
- 40 Configuration
- 41 DIP Switch Settings
- 41 Jumper Options
- 43 I/O Connector Pin Assignments
- 46 Recommended Discrete Wire Connectors and Terminal Blocks
- 47 TTL/Single-Ended Input Signal Compatibility Configuration
- 50 Chapter 3 - Programming
- 52 VMEbus Interface Memory Map
- 53 Board ID/Configuration Buffer
- 54 Firmware Revision Level
- 54 Command Code
- 54 Command Status Code
- 55 Command Status Interrupt Request Level
- 56 Command Status Interrupt Vector
- 56 Channel ID
- 56 Continuous/Discrete Flag
- 57 Measurement Ready Flag
- 57 Measurement Channel ID
- 57 Channel Measurement Status
- 58 Channel Control Block Registers
- 58 Timer Channel Control Block
- 59 VMIVME-2540 Continuous/Discrete Flag Buffer
- 59 VMIVME-2540 Measurement Data Valid Flags Buffer
- 59 VMIVME-2540 Firmware Release Information
- 60 VMIVME-2540 Daignostic Buffer
- 61 Command Interface
- 62 Programming Using the Command Interface
- 64 Command Status Codes
- 65 Modes of Operation
- 66 Input Modes of Operation
- 67 Output Modes of Operation
- 67 Timing Modes of Operation
- 68 Channel Control Blocks Common Parameters
- 69 Operation Mode Selection Flag
- 70 Operational Mode Select Flag
- 71 Command Descriptions
- 71 Initialization and Synchronization Command Codes
- 72 Channel Input/Measurement Command Codes
- 72 Integer 16-bit Event Counting
- 73 Integer 32-bit Event Counting
- 75 Period Measurement
- 76 Frequency Measurement
- 77 Pulse-Width Measurement
- 79 Quadrature Position Measurement
- 82 Integer Quadrature Position Measurement
- 83 16-bit Integer Period Measurement
- 84 32-bit Integer Period Measurement
- 86 32-bit Integer Pulse-Width Measurement
- 87 Group Acquisition Mode (Integer QPM)
- 88 16-bit Integer Pulse Measurement
- 89 Delayed Event Timer with VMEbus Interrupt
- 90 Programming Strategies for Input Operations
- 91 Continuous Data Acquisition Mode
- 92 Discrete Data Acquisition Mode
- 94 Channel Output/Waveform Generation Command Codes
- 94 16-bit Frequency Divider
- 95 32-bit Frequency Divider
- 96 Period/Pulse-Width Generation
- 97 Frequency/Duty Cycle Generation
- 97 Pulse Sequence Generation
- 98 Programmed Output Mode
- 99 Quadrature Position Control
- 100 Programming Strategies for Output Operations
- 100 Timer Operation Command Codes
- 100 Timer/Periodic Interrupt
- 101 Auxiliary Commands
- 103 Getting Started
- 118 Appendix A - Example Code
- 119 Terminal Output of Program gs.c
- 121 Programming Example