Diamond Systems RUBY-MM-1612 user manual HOW to Generate AN Analog Output, Hardware Update Command

Page 16

11.HOW TO GENERATE AN ANALOG OUTPUT

This chapter describes how to generate an analog output directly (without the use of the driver software). Ruby-MM-1612 has 12-bit resolution analog outputs. However, data is written to the board in 8-bit bytes. Therefore two bytes must be written to the board to generate a single analog output. In addition, many applications require several channels to be updated simultaneously. In order to provide this ability, the update operation is separate from the data write operation.

Thus there are three steps required to generate an analog output. Each step is described in detail. The steps must be completed in the sequence shown below.

To generate an analog output on one or more channels:

1.Write the LSB (least significant byte) to the board at register Base + 0.

2.Write the channel number to the board at register Base + 2..

3.Write the MSB (most significant byte) to the board.

4.Repeat steps 1-3 for each channel to be changed

5.Update all changed channels by reading Base + 0 or Base + 1.

Hardware Update Command

A hardware update command can occur with a falling edge on the external trigger, pin 48 of J3.

To use hardware updating, or triggering, you must program the TRIGEN bit at Base + 3. See Chapter 3 for details.

Note: When a channel is updated, its output will change only if new data has been written to it since the last update. For example, if you do a simultaneous update on all channels but you only wrote data to channel 0, then only channel 0 will change, and channels 1 - 15 will stay the same.

Note: If hardware updating is enabled, software updating will still work.

Copyright 2001 Diamond Systems Corp.

Ruby-MM-1612 User Manual V1.1 P. 16

Image 16 Contents
RUBY-MM-1612 Table of Contents Description Signal Name Definition O Header PinoutBase Address Configuration Header J5 Position Hex Decimal Board ConfigurationBase Address Analog Output Range Configuration Adjustable Reference VoltageOn-Board Reference Full-Scale Voltage Selection Full-Scale VoltageAnalog Output Configuration Header J4 Range RUBY-MM-1612 Board Drawing Ruby-MM-1612 I/O Map Reset informationBase + Write Function Read Function Base + 0 or 1, Read Update DACs Register DefinitionsBase + 0, Write DAC LSB register Base + 1, Write DAC MSB registerBase + 3, Write External trigger register Configuration Register 82C55 Digital I/O Chip Operation82C55 Register Map DefinitionsFull Scale 1LSB Analog Output Ranges and ResolutionFull Scale 10. D/A Code Computation LSB = 1/2048 x Full-Scale Voltage Offset Binary Coding for bipolar output rangesOutput Code Explanation Output Voltage for ±5V Range Hardware Update Command HOW to Generate AN Analog OutputTo generate an analog output on one or more channels Examples Single channel output Two channel outputCalibration Procedure Specifications MiscellaneousFeatures Ordering InformationDescription PinoutsFunctional Diagram 82C55A Pin Description82C55A Functional Description Data Bus BufferRead/Write and Control Logic Group a and Group B ControlsMode Selection 82C55AOperational Description Ports A, B, and CSingle Bit Set/Reset Feature Figure Operating ModesInterrupt Control Functions Inte Flip-Flop DefinitionMode 0 Basic Output Mode 0 Basic InputMode 0 Configurations Control Word #4 Control Word #8 STB Strobe Input Input Control Signal DefinitionIBF Input Buffer Full F/F Output Control Signal Definition Intr Interrupt RequestMode 2 Strobed Bi-Directional Bus I/O Bi-Directional Bus I/O Control Signal DefinitionOutput Operations Input OperationsMode Control Word Mode 2 Combinations Special Mode Combination Considerations Current Drive CapabilityApplications of the 82C55A Reading Port C Status Figures 15