NB2AS DAC
The
NB2AS
has a TLV5618 dual 12-bit DAC with a 1.24V reference. The
DAC library contains the functions to initialize the DAC object, set
the output voltage. The example program initializes the DAC and sets
channel A to 0.75V, B to 0.5V.
When initializing the DAC object you need to define which pin number
is connected to the CS pin. The example code below creates a DAC
object using the default pin assignment for the NB2AS.
// the load pin is attached to pin 10 (PB2)
// and the latch pin is attached to pin 9 (PB1)
// the spi port is attached to spi0
#define DAC_CS_PIN 4 // Sanguino Pin Number (ATmega644P PB4)
LED_debug led;
DAC_TLV5618 dac = DAC_TLV5618(DAC_CS_PIN);
NB2AS DAC Example
File ../../docs/app-files/nb2as_dac_r0.pde could not be opened for input