MCP4922 Outputting 2.5-5V Range Instead of 0-5V
Hi, I am working on a project using the MCP4922 with the dsPIC33EV256GM102 SPI interface. Everything seems to be working properly, and I get the full range of resolution, except that the DAC is outputting voltage in a range from 2.5V-5V rather than 0V-5V. This is pretty weird as I've used the MCP4922 in past projects and never seen this behavior. Any idea what might be causing this?
I see my SPI data coming through correctly on my scope, and have wired up the chip as described in the datasheet. Any idea what might be causing this?
Here is my SPI DAC write code:
spiOut = 0B01110000 << 8; //channel a, input buffered, gain x1, output mode active
spiOut |= val; //0-4095
LATBbits.LATB5 = 0;
LATBbits.LATB5 = 1;
See attached a schematic of the MCP4922 connections (disregard Ard_Uno marking, all connections go directly to the relevant dsPIC33EV256GM102 GPIO pin):