Sun Microsystems S16A manual Input Clock Prescale Registers, Input Configuration Registers

Page 36

Registers

S16A User’s Guide

Input Clock Prescale Registers

The Analog Input Module contains two 1-byte Input Clock Prescale registers (one for each input channel) that provide 1-biased divisors for the input clock, which has a base rate of 192 KHz. The low 3 bits of these registers are significant. Thus, the input sample rate for each channel is

192 KHz/(value + 1)

where

value is the channel’s Input Clock Prescale register value, which can range from 0 to 7.

As Analog Input Module registers, these registers are accessed via the UART registers.

Input Configuration Registers

The Analog Input Module contains two two-byte Input Configuration registers, one each for the two input channels. The low-order byte controls the input source; the high byte provides a primary gain control. The following two tables list the useful values for the low and high bytes. One value from each table must be chosen and bitwise ORed together to configure this register.

As Analog Input Module registers, these registers are accessed via the UART registers.

Value (hex)

AIN_

Description

 

 

 

 

 

 

xx42

DIFFERENTIAL

Both input pins for this channel are monitored as a differential signal.

 

 

 

xx48

PLUS_ONLY

The “plus” input pin for this channel is monitored as a single-ended

signal.

 

 

 

 

 

xx82

MINUS_ONLY

The “minus” input pin for this channel is monitored as a single-ended

signal.

 

 

 

 

 

xx88

ZERO

The input is taken from ground. Used for offset calibration.

 

 

 

xx48

OUT0_PLUS

The “plus” signal from output channel 0 is monitored as a single-ended

signal.

 

 

 

 

 

xx84

OUT0_MINUS

The “minus” signal from output channel 0 is monitored as a single-ended

signal.

 

 

 

 

 

xx18

OUT1_PLUS

The “plus” signal from output channel 1 is monitored as a single-ended

signal.

 

 

 

 

 

xx82

OUT1_MINUS

The “minus” signal from output channel 1 is monitored as a single-ended

signal.

 

 

 

 

 

 

Table 13. Input Selection (Low Byte) Values

32

EDT, Inc. October, 1996

Image 36
Contents S16A EDT, Inc. October Contents Tables Overview Installation Installing the HardwareInstalling the Software 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 ApplicationsDMA Library Routines Routine DescriptionGeneral DMA Library Routines S16abufferaddresses S16A-specific Library RoutinesSyntax ArgumentsS16acancel S16acancelcurrentS16achecknextbuffer S16aclose S16aconfigureringbuffers ArgumentsS16adone S16agetdaccontrolregS16agetdiodatareg S16agetdiodirectionregS16agetoutputbits S16aopenS16aread S16aserialreadS16aserialstr S16aserialwriteS16asetdefaults S16asetdaccontrolregS16asetdiodatareg S16asetdiodirectionregS16asetoutputbits S16astartbuffersS16astopbuffers S16awaitforbufferS16awaitfornextbuffer S16awriteError Conditions FoiparityerrorError Codes and Conditions Hardware Interface Electrical InterfaceInterface Signals Signal S16A I/O DescriptionS16A Interface Signals Connector Pinout Pin SignalConnector Pinout Registers SBus Addresses S16A ROMDMA Registers Current DMA Address RegistersNext DMA Address Registers Current Count Registers Control and Next Count RegistersDirect I/O Registers DAC Output Control RegisterDIO Direction Register DIO Data RegisterAnalog Input Module Internal Registers DAC Output Control RegisterName Description Analog Input Module Internal RegistersInput Configuration Registers Input Clock Prescale RegistersTrim Registers Input Gain High Byte ValuesTrim Register Use Trim Registers Trim Output Offset RegistersTemperature Register Analog Input Module Uart RegistersAnalog Input Module Control Protocol Trim Input Gain RegistersWrite to an Input Configuration Register Read from an Input Configuration RegisterWrite to a Clock Prescale Register Read from a Clock Prescale RegisterUart Command/Status Register Read the Temperature RegisterUart Command/Status Register Write to a Trim RegisterXilinx Programming Registers Uart Data RegisterSpecifications References Contacting EDT Index 15-16Configuration ROM