I am working on a frequency voltage adjustment project for a Frequency Standard and not getting the output expected from a DAC8871.
SPI output and relevant part of the circuit can be found here: https://plus.google.com/112981640120383921331/posts/9VFK56QYZ3n
I have a REF5010 feeding the DAC8871 and see 10.00 volts on the VREFHF/S and ground on VREFLH/S. The VCC shows 12.06 volts and VDD show 4.87 volts. RSTSEL and LDAC are tied low and CS and RST are tied high except during SPI transmission. (RST is bounced prior to CS going low)
noInterrupts(); // disable interupts to keep them quiet
digitalWrite(RSTPin,LOW); // Reset the DAC before transmission
delayMicroseconds(5); // reset time
digitalWrite(RSTPin,HIGH); // Reset complete
delayMicroseconds(5); // pause to wait for reset
digitalWrite(CSPin,LOW); // Chip Select pin low to indicate start of transmission (DAC)
delayMicroseconds(1); // pause before sending data
SPI.transfer(HighByte); // send in the High Byte
SPI.transfer(LowByte); // send in the Low Byte
delayMicroseconds(1); // pause before pulling CSPin high
digitalWrite(CSPin,HIGH); // Chip Select pin high to indicate end of transmission (DAC)
interrupts(); // Enable interupts
SPI Transmission seems to be working properly as the DAC does change voltage on the Output, but only by a small amount even trying full swing from 0 to 65535. I can't get more than 750mv full swing on the output before the output filter.
Not sure what I did wrong here. Ideas?