Page 3 - Contents
S16A User’s Guide EDT, Inc. October, 1996 iii Contents Overview .......................................................................................................................................................................1 Installation .........................................................
Page 4 - Tables
S16A User’s Guide iv EDT, Inc. October, 1996 Tables General DMA Library Routines .....................................................................................................................................7S16A-specific Library Routines..........................................................
Page 5 - Overview
S16A User’s Guide Overview EDT, Inc. October, 1996 1 Overview The S16A SBus 16-bit Dual Analog Interface is a single-slot board for SBus-based computer systems. TheS16A has two analog I/O channels, each incorporating one 16-bit Analog-to-Digital (ADC) converter andone 20-bit Digital-to-Analog (DAC) ...
Page 6 - Installation; Installing the Hardware; Using SunOS Version 4.1; CAUTION
Installation S16A User’s Guide 2 EDT, Inc. October, 1996 Installation Installing the S16A SBus 16-bit Dual Analog Interface is a two-step process. First you must physically installthe board inside the host computer. Then you must install the software driver so that applications canaccess the S16A. H...
Page 8 - Building the Sample Programs
Installation S16A User’s Guide 4 EDT, Inc. October, 1996 3. Enter: make unload Using System V Release 4 (Solaris 2.4 or Later) If you are using Sun System V Release 4 (Solaris 2.4 or later), use the following procedure to install the S16Adriver: 1. Become root or superuser. 2. Place the diskette tha...
Page 9 - Included Files
S16A User’s Guide Installation EDT, Inc. October, 1996 5 Included Files The S16A driver release diskette contains the following files (see the readme file for a complete, up-to-datelisting): s16a.o.sun4c The executable S16A driver for SunOS 4.1.3 on a Sun 4C architecture such as aSPARCStation 1, 1+,...
Page 10 - Input and Output; Elements of S16A Applications
Input and Output S16A User’s Guide 6 EDT, Inc. October, 1996 Input and Output The driver can perform two kinds of DMA transfers: continuous and noncontinuous. For noncontinuoustransfers, the driver uses DMA system calls for read() and write(). Each read() and write() system call allocateskernel reso...
Page 11 - DMA Library Routines
S16A User’s Guide Input and Output EDT, Inc. October, 1996 7 7. The -ls16a option to the compiler, to link the library file libs16a.a with your program See the makefile and example programs provided for examples of compiling code using the libraryroutines. DMA Library Routines The DMA library provid...
Page 26 - Error Conditions
Input and Output S16A User’s Guide 22 EDT, Inc. October, 1996 foi_parity_error Description Checks to determine if a parity error has occurred since the last time this routine was called and returns 0if not, 1 if so, and –1 if the routine is not supported for a particular device or an illegal argumen...
Page 27 - Hardware Interface; Electrical Interface
S16A User’s Guide Hardware Interface EDT, Inc. October, 1996 23 Hardware Interface This section describes how to connect your device to an S16A interface, including the electricalcharacteristics of the signal, the signal descriptions, the timing specifications, and the connector pinout. Electrical I...
Page 28 - Interface Signals
Hardware Interface S16A User’s Guide 24 EDT, Inc. October, 1996 Interface Signals The following table describes the signals in the external connector. Signal S16A I/O Description DIO00-11 I/O Configurable I/O pins. CH0OUT O Output of channel 0. CH1OUT O Output of channel 1. CH0INP I Channel 0 “plus”...
Page 29 - Connector Pinout
S16A User’s Guide Hardware Interface EDT, Inc. October, 1996 25 Connector Pinout The S16A uses a 37-pin D connector, such as an AMP 748878-1. The following pinout diagram describes the connection from the S16A board to the cable. NOTE: Do not connect your own circuits to the unused pins, as they may...
Page 30 - Registers
Registers S16A User’s Guide 26 EDT, Inc. October, 1996 Registers The S16A SBus 16-bit Dual Analog Interface is configured and controlled with 8-bit and 32-bit SBusregisters. Eleven additional internal registers in the Analog Input Module are accessed indirectly throughthe SBus registers using a simp...
Page 31 - SBus Addresses
S16A User’s Guide Registers EDT, Inc. October, 1996 27 SBus Addresses The addresses listed in the figure below are offsets from the SBus slot base address. Obtain the SBus baseaddress from the SBus host documentation. The following sections describe the S16A registers in detail. 0x0006.0000 reserved...
Page 32 - DMA Registers; Current DMA Address Registers
Registers S16A User’s Guide 28 EDT, Inc. October, 1996 DMA Registers The S16A provides four independent DMA channels: one each for input and output for each of the twoanalog I/O channels. Each DMA channel can be accessed to set up a new DMA transfer while it is currentlyperforming a DMA transfer. Wh...
Page 34 - DIO Direction Register; DAC Output Control Register
Registers S16A User’s Guide 30 EDT, Inc. October, 1996 Direct I/O Registers The S16A provides 12 pins in its external connector that can be used for general-purpose I/O signals. Eachpin can be configured as either an input signal or an output signal. Signal levels are TTL-level (0 or +5 volt)with 1 ...
Page 35 - Analog Input Module Internal Registers
S16A User’s Guide Registers EDT, Inc. October, 1996 31 Analog Input Module Internal Registers The Analog Input Module contains 11 internal registers, described in the following sections, that control theanalog input and other settings. These registers are accessed using the two UART registers descri...
Page 36 - Input Clock Prescale Registers; Input Configuration Registers
Registers S16A User’s Guide 32 EDT, Inc. October, 1996 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 thesere...
Page 37 - Trim Registers
S16A User’s Guide Registers EDT, Inc. October, 1996 33 Trim Registers The Analog Input Module contains six Digital-to-Analog converters (DACs) that control various trimadjustments on the S16A. The analog input and output signals can be level-shifted, and the input signalgains can be fine-tuned with ...
Page 38 - Temperature Register; Analog Input Module UART Registers; Analog Input Module Control Protocol
Registers S16A User’s Guide 34 EDT, Inc. October, 1996 Trim Input Gain Registers These two trim registers control the fine-tuning of the analog I/O input gain. Trim register 4 controls thegain trim for analog I/O channel 0 input; trim register 6 controls the gain trim for channel 1 input. The inputo...
Page 40 - UART Command/Status Register
Registers S16A User’s Guide 36 EDT, Inc. October, 1996 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 ...
Page 41 - UART Data Register; Xilinx Programming Registers
S16A User’s Guide Registers EDT, Inc. October, 1996 37 UART Data Register The UART Data register is and 8-bit register at address 0400C4x. This register provides the byte stream forcommunicating with the analog input module. Write to this register (when the UART CSR indicates that it isready for a w...
Page 42 - Specifications; SBus Compliance
Specifications S16A User’s Guide 38 EDT, Inc. October, 1996 Specifications The SBus 16-bit Dual Analog Interface conforms to the following specifications. SBus Compliance Number of slots: 1 Transfer size Input: 1 word per transferOutput: 4 words per transfer DVMA master SBus memory space approx. 320...
Page 43 - References
S16A User’s Guide References EDT, Inc. October, 1996 39 References The following additional documentation may prove helpful. Burr-Brown PCM1702 product specification, in Burr-Brown Integrated Circuits Data Book, Data ConversionProducts1995, pp. 8.2.108 to 8.2.115. Available from Burr-Brown Corporati...
Page 44 - Contacting EDT
Contacting EDT S16A User’s Guide 40 EDT, Inc. October, 1996 Contacting EDT Contact EDT directly at the following address or phone numbers: Engineering Design Team, Inc.1100 NW Compton Drive, Suite 306Beaverton, Oregon 97006 Phone (503) 690-1234FAX (503) 690-1243 In addition, a variety of services, f...
Page 45 - Index
S16A User’s Guide Index EDT, Inc. October, 1996 41 Index A ADC16071. See National Semiconductor ADC16071 Analog Input Module ........................................1 configuration & control ........................15–16 internal registers ........................................31 B Burr-Brown ...