Sun Microsystems S16A manual Uart Command/Status Register, Write to a Trim Register

Page 40

Registers

S16A User’s Guide

Write to a Trim Register

The trim registers are written by sending a four-byte sequence beginning with D or w.

Dnmm

Write an 8-bit value to a trim register.

 

n

Number of the trim register to be written:

 

 

2

Output 0 offset

 

 

3

Output 1 offset

 

 

4

Input 0 gain trim

 

 

5

Input 0 offset

 

 

6

Input 1 gain trim

 

 

7

Input 1 offset

 

mm

Hexadecimal value to write to the register.

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

Read the Temperature Register

The Temperature register is read by sending a one-byte command: T or t.

T

Read the Temperature register.

The UART responds with the seven-character sequence xxx return linefeed > space, where xxx is the three- character hexadecimal value. See Temperature Register beginning on page 34 for details on how to interpret this value.

UART Command/Status Register

The UART CSR is an 8-bit register at 0400C0x. This register controls the serial byte-stream protocol used to configure and control the internal analog input module.

Bit

S16A_

Description

 

 

 

 

 

 

7

UART_INT

A read-only status bit. A value of 1 indicates the S16A UART is asserting

 

 

an SBus interrupt.

 

 

 

6

 

Unused. 0 when read.

 

 

 

5

UART_TXBSY

A read-only status bit. A value of 1 indicates the S16A UART is currently

 

 

transmitting a command byte to the analog input module. No other bytes

 

 

can be sent until this bit is clear.

 

 

 

4

UART_RXRDY

A read-only status bit. A value of 1 indicates the S16A UART has received

 

 

a status byte from the analog input module. Valid status bytes can only be

 

 

read from the UART_DATA register when this bit is set.

 

 

 

3

UART_TXINT

A value of 1 enables the UART transmit complete interrupt.

 

 

 

2

UART_TXINT

A value of 1 enables the UART receive complete interrupt.

 

 

 

1–0

 

Unused. 0 when read.

 

 

 

Table 16. UART Command/Status Register

36

EDT, Inc. October, 1996

Image 40
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 ApplicationsRoutine Description DMA Library RoutinesGeneral DMA Library Routines S16abufferaddresses S16A-specific Library RoutinesSyntax ArgumentsS16acancelcurrent S16acancelS16achecknextbuffer S16aclose S16aconfigureringbuffers ArgumentsS16adone S16agetdaccontrolregS16agetdiodatareg S16agetdiodirectionregS16agetoutputbits S16aopenS16aread S16aserialreadS16aserialstr S16aserialwriteS16asetdefaults S16asetdaccontrolregS16asetdiodatareg S16asetdiodirectionregS16asetoutputbits S16astartbuffersS16astopbuffers S16awaitforbufferS16awaitfornextbuffer S16awriteFoiparityerror Error ConditionsError Codes and Conditions Hardware Interface Electrical InterfaceSignal S16A I/O Description Interface SignalsS16A Interface Signals Pin Signal Connector PinoutConnector Pinout Registers SBus Addresses S16A ROMCurrent DMA Address Registers DMA 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