Analog Output - VersaLogic Copperhead VL-EBX-41 Reference Manual

Intel 3rd generation core quad or dual core sbc with ethernet, hd graphics, acpi 4.0, sata, raid, usb, eusb, msata, sumit, hd audio, serial, analog + digital i/o, and spx
Table of Contents

Advertisement

Analog Output

The Copperhead uses two 12-bit Linear Technology LTC2634 D/A converters, each with four
(4) single-ended output signals. The converter has 5 µs per-channel update rate with a 0 to
4.096V output voltage range.
The Copperhead D/A converter is controlled using the SPI registers. The D/A converter for
channels 1-4 is accessed by setting SPI slave select 7 (writing 7h to the SS field in
SPICONTROL). The D/A converter for channels 5-8 is accessed by first setting the
ADIOMODE control bit to a '1' in the Miscellaneous Control Register MISCCON and then
setting SPI slave select 4 (writing 4h to the SS field in SPICONTROL). The D/A converter for
channels 1-4 can be accessed for either setting of ADIOMODE. See "SPI Registers" for a
description of the SPI interface and registers.
See the
Linear Technology LTC2634 D/A Converter Datasheet
Analog Output Using the SPI Interface
The following procedure can be used to set an analog output using the SPI interface.
1. Set ADIOMODE = 1 for the D/A converter for channels 5-8. The D/A converter for
channels 1-4 can be accessed for either setting of ADIOMODE.
2. For the D/A converter for channels 1-4 write 27h to the SPICONTROL register (I/O
address CA8h) or write 24h for the D/A converter for channels 5-8 – This value
configures the SPI port to select the D/A converter, 24-bit frame length, low SCLK idle
state, rising edge SCLK edge, and automatic slave select.
3. Write 30h to the SPISTATUS register (I/O address CA9h) – This value selects 8 MHz
SCLK speed, hardware IRQ disable, and left-shift data.
4. Write the LS 4-bits of the 12-bit output value into the MS 4-bits of SPIDATA1 (I/O
address CABh). For example, if writing a 12-bit value of 123h the value of 30h is written
to SPIDATA1.
5. Write the MS 8-bits of the 12-bit output value to SPIDATA2 (I/O address CACh). For
example, if writing a 12-bit value of 123h the value of 12h is written to SPIDATA2.
EBX-41 Reference Manual
Table 18: Analog Output Pinout
J19 Pin
Signal
21
Analog Output 1
22
Analog Output 2
23
Analog Output 3
24
Analog Output 4
25
Ground
26
Analog Output 5
27
Analog Output 6
28
Analog Output 7
29
Analog Output 8
30
Ground
*
Contact
Sales@VersaLogic.com
orders.
for programming information.
VL-CBR-4004
VL-CBR-4004
Connector
Pin (Silkscreen)
1 (IO17)
J6
2 (IO18)
Analog Output
3 (IO19)
4 (IO20)
5 (GND3/PBRST#)
1 (IO21)
J7
2 (IO22)
Analog Output
3 (IO23)
(Custom*)
4 (IO24)
5 (GND3)
for information on custom
Interfaces and Connectors
38

Advertisement

Table of Contents
loading

Table of Contents