Sun Microsystems S16A Write to a Clock Prescale Register, Read from a Clock Prescale Register

Page 39

S16A User’s Guide

Registers

Write to a Clock Prescale Register

The clock prescale registers are written by sending a four-byte sequence beginning with W or w.

Wnmm

Write an 8-bit value to a Clock Prescale register.

 

n

Number of the Clock Prescale register to be written. 0 is input channel 0;

 

 

1 is input channel 1.

 

mm

Hexadecimal value to write to the register.

The UART responds with the four-character sequence return linefeed > space.

Write to an Input Configuration Register

The input configuration registers are written by sending a six-byte sequence beginning with W or w.

Wnmmmm Write a 16-bit value to an Input Configuration register.

nNumber of the Input Configuration register to be written. 2 is input channel 0; 3 is input channel 1.

mmmmHexadecimal value to write to the register.

The UART responds with the four-character sequence return linefeed > space.

Read from a Clock Prescale Register

The Clock Prescale registers are read by sending a two-byte sequence beginning with R or r.

Rn

Read an 8-bit value from a Clock Prescale register.

 

n

Number of the Clock Prescale register to be read. 0 is input channel 0; 1

 

 

is input channel 1.

The UART responds with the six-character sequence xx return linefeed > space, where xx is the two- character hexadecimal value read from the 8-bit register.

Read from an Input Configuration Register

The Input Configuration registers are read by sending a two-byte sequence beginning with R or r.

Rn

Read a 16-bit value from a Input Configuration register.

 

n

Number of the Input Configuration register to be written. 2 is input

 

 

channel 0; 3 is input channel 1.

The UART responds with the eight-character sequence xxxx return linefeed > space, where xxxx is the four-character hexadecimal value read from the 16-bit register.

EDT, Inc. October, 1996

35

Image 39
Contents S16A EDT, Inc. October Contents Tables Overview Using SunOS Version InstallationInstalling the Hardware Installing the SoftwareS16A User’s Guide Installation Building the Sample Programs Using System V Release 4 Solaris 2.4 or LaterReadme Included FilesElements of S16A Applications Input and OutputDMA Library Routines Routine DescriptionGeneral DMA Library Routines Arguments S16abufferaddressesS16A-specific Library Routines SyntaxS16acancel S16acancelcurrentS16achecknextbuffer S16aclose Arguments S16aconfigureringbuffersS16agetdaccontrolreg S16adoneS16agetdiodirectionreg S16agetdiodataregS16aopen S16agetoutputbitsS16aserialread S16areadS16aserialwrite S16aserialstrS16asetdaccontrolreg S16asetdefaultsS16asetdiodirectionreg S16asetdiodataregS16astartbuffers S16asetoutputbitsS16awaitforbuffer S16astopbuffersS16awrite S16awaitfornextbufferError Conditions FoiparityerrorError Codes and Conditions Electrical Interface Hardware InterfaceInterface Signals Signal S16A I/O DescriptionS16A Interface Signals Connector Pinout Pin SignalConnector Pinout Registers S16A ROM SBus AddressesDMA Registers Current DMA Address RegistersNext DMA Address Registers Control and Next Count Registers Current Count RegistersDIO Data Register Direct I/O RegistersDAC Output Control Register DIO Direction RegisterAnalog Input Module Internal Registers Analog Input Module Internal RegistersDAC Output Control Register Name DescriptionInput Clock Prescale Registers Input Configuration RegistersTrim Registers Trim Output Offset Registers Trim RegistersInput Gain High Byte Values Trim Register UseTrim Input Gain Registers Temperature RegisterAnalog Input Module Uart Registers Analog Input Module Control ProtocolRead from a Clock Prescale Register Write to an Input Configuration RegisterRead from an Input Configuration Register Write to a Clock Prescale RegisterWrite to a Trim Register Uart Command/Status RegisterRead the Temperature Register Uart Command/Status RegisterUart Data Register Xilinx Programming RegistersSpecifications References Contacting EDT 15-16 IndexConfiguration ROM