controll a DAC
jaspittman
Posts: 22
i need to output a continuous analog voltage. i am using a MAX5354 digital to analog converter. i have tried outputting a voltage with this program
voltage=512
LOW CS
SHIFTOUT DIN, SCLK, MSBFIRST, [noparse][[/noparse]voltage/16]
HIGH CS
but it doesn't work.
it outputs 5 volts instead of 2.5 (vref X 512/1024)
voltage=512
LOW CS
SHIFTOUT DIN, SCLK, MSBFIRST, [noparse][[/noparse]voltage/16]
HIGH CS
but it doesn't work.
it outputs 5 volts instead of 2.5 (vref X 512/1024)
Comments
dacaddr = $2000
voltage=512+dacaddr
LOW CS
SHIFTOUT DIN, SCLK, MSBFIRST, [noparse][[/noparse]voltage/16]
HIGH CS
I think this correct.·I will check tonight.