I’m using a MCP4922 DAC on my project and I’m using it to control the output voltage of a DC voltage regulator. Now I wanted to do some triangular signals, but the minimum output voltage of the voltage regulator is making me have a gap between 0.9V and -0.9V.
My first idea was to use the second, unused DAC channel and have two pairs of MOSFETS (P and N) to control the output and have the triangular waveform, but that isn’t working either due to the Vgsth of the P MOSFETS, which below 0.4V don’t work anymore.
My new idea is to have two MCP4922 or a MCP4921 + MCP4922 combo on the board directly connected to the output to have the triangular waveform. But I’m not sure if I’m able to declare two instances of the class in my project. Has anyone tried to do this and know for sure that it’s possible?