Page 1 of 1

DAC access

Posted: Sun Feb 10, 2013 9:03 pm
by YahooArchive
>from help line
>For your SuperPRO, which has 1 DAC channel, what\'s the BASIC instruction /
keyword to output analog data. You have the AD keyword for inputting analog
data, but I don\'t see anything for the DAC.

There is no keyword in BASIC for DA access, but it can easily be done with a
library or SUB

from NXP user manual for LPC1756

The DAC is configured using the following registers:
1. Power: The DAC is always connected to VDDA. Register access is determined by
PINSEL and PINMODE settings (see below).
2. Clock: In the PCLKSEL0 register (Table 4–40), select PCLK_DAC.
3. Pins: Enable the DAC pin through the PINSEL registers. Select pin mode for
port pin
with DAC through the PINMODE registers (Section 8–5). This must be done before
accessing any DAC registers.

#include

SUB SETUP_DAC()
PCB_PINSEL1 = (2 << 20)
END SUB

SUB DACOUT(value)
DACR = value
END SUB

Re: DAC access

Posted: Sun Feb 10, 2013 9:58 pm
by YahooArchive
I need a simple way to Intedface a DAC with na ARMmite. I suppose a Serial DAC
would work. My data rate and resolution are low, so the simpler the better.

Re: DAC access

Posted: Sun Feb 10, 2013 9:58 pm
by YahooArchive
Any serial interface would be the same amount of work.


What you need is to decide what are the specs you need for what ever you are
trying to do.

http://search.digikey.com/scripts/DkSea ... 6292&k=dac

Has over 10,000 DACs and over 700 with an I2C or SPI interface.

good luck

don