NB1A DAC
The NB1A has a TLV5620 quad 8-bit DAC with a TLV431 1.24V reference.
The DAC library contains the functions to initialize the DAC object,
set the output voltage and change the DAC range. The example
program initializes the DAC and sets channel A to 0.5V, B to 1V,
C to 1.5V and D to 2V.
When initializing the DAC object you need to define which
pin numbers are connected to the LOAD and LATCH pin. The example
code below creates a DAC object using the default pin assignments
for the NB1A.
// 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_LOAD_PIN 10 //PB2
#define DAC_LATCH_PIN 9 //PB1
LED_debug led;
DAC_TLV5620 dac = DAC_TLV5620(DAC_LOAD_PIN, DAC_LATCH_PIN);
NB1A DAC Example
File ../../docs/app-files/nb1a_dac_r0.pde could not be opened for input