Sun Microsystems S16A manual Analog Input Module Uart Registers, Temperature Register

Page 38

Registers

S16A User’s Guide

Trim Input Gain Registers

These two trim registers control the fine-tuning of the analog I/O input gain. Trim register 4 controls the gain trim for analog I/O channel 0 input; trim register 6 controls the gain trim for channel 1 input. The input offset should be set using a zero-level input signal before setting the input gain.

Trim Input Offset Registers

These two trim registers control the fine-tuning of the input gain. Trim register 5 controls the input offset for analog I/O channel 0; trim register 7 controls the input offset for analog I/O channel 1.

The recommended procedure for adjusting these input trim registers is to connect it to the signal source, set the source to generate a zero-level signal, and then adjust the input offset while monitoring the input data for zero. The input offset trim should be set using a zero-level input signal before configuring the input gain and input gain trim settings.

Temperature Register

The S16A contains an internal temperature probe that can be read via the Analog Input Module UART interface to provide data for temperature-dependent calibration adjustments. This two-byte register returns a 12-bit reading that can be converted to a Celsius temperature using the formula

C = ((5.0 * (r / 4096)) - 1.375) * 0.0225

where

ris the raw temperature reading, and

Cis the resulting Celsius temperature.

As an Analog Input Module register, this register is accessed via the UART registers.

Analog Input Module UART Registers

The S16A Analog Input Module is configured and controlled by a byte stream protocol via two UART registers on the SBus. Command sequences of bytes are sent to the module, which in turn responds with byte sequences. Two interface registers, the UART CSR and the UART Data register, implement this byte stream interface on the SBus.

Analog Input Module Control Protocol

All command and status sequences consist entirely of printable ASCII characters. Commands are case- insensitive. The command character is always echoed; valid arguments are also echoed; invalid argument characters are ignored. Commands are not terminated with a carriage return or newline: when the last character of the command is sent, the command is immediately executed and the response string is sent back.

34

EDT, Inc. October, 1996

Image 38
Contents S16A EDT, Inc. October Contents Tables Overview Installing the Software InstallationInstalling the Hardware Using SunOS VersionS16A User’s Guide Installation Using System V Release 4 Solaris 2.4 or Later Building the Sample ProgramsIncluded Files ReadmeInput and Output Elements of S16A ApplicationsGeneral DMA Library Routines DMA Library RoutinesRoutine Description Syntax S16abufferaddressesS16A-specific Library Routines ArgumentsS16achecknextbuffer S16acancelS16acancelcurrent S16aclose S16aconfigureringbuffers ArgumentsS16adone S16agetdaccontrolregS16agetdiodatareg S16agetdiodirectionregS16agetoutputbits S16aopenS16aread S16aserialreadS16aserialstr S16aserialwriteS16asetdefaults S16asetdaccontrolregS16asetdiodatareg S16asetdiodirectionregS16asetoutputbits S16astartbuffersS16astopbuffers S16awaitforbufferS16awaitfornextbuffer S16awriteError Codes and Conditions Error ConditionsFoiparityerror Hardware Interface Electrical InterfaceS16A Interface Signals Interface SignalsSignal S16A I/O Description Connector Pinout Connector PinoutPin Signal Registers SBus Addresses S16A ROMNext DMA Address Registers DMA RegistersCurrent DMA Address Registers Current Count Registers Control and Next Count RegistersDIO Direction Register Direct I/O RegistersDAC Output Control Register DIO Data RegisterName Description Analog Input Module Internal RegistersDAC Output Control Register Analog Input Module Internal RegistersInput Configuration Registers Input Clock Prescale RegistersTrim Register Use Trim RegistersInput Gain High Byte Values Trim Registers Trim Output Offset RegistersAnalog Input Module Control Protocol Temperature RegisterAnalog Input Module Uart Registers Trim Input Gain RegistersWrite to a Clock Prescale Register Write to an Input Configuration RegisterRead from an Input Configuration Register Read from a Clock Prescale RegisterUart Command/Status Register Uart Command/Status RegisterRead the Temperature Register Write to a Trim RegisterXilinx Programming Registers Uart Data RegisterSpecifications References Contacting EDT Index 15-16Configuration ROM