Hello:
I tried to output a voltage of 0 to 20V with DAC61416. I used MC9S12 microcontroller to communicate with DAC61416 via SPI.When I select the output range is -5 V to +5 V 、 -10 V to +10V、-20 V to +20V or -2.5 V to +2.5 V ,the output voltage is only 1.4V. When I select the output range is 0V to +5V 、 0V to +10V 、0V to +20V or 0V to +40V ,the output voltage is 0v. I am sure there is no problem with SPI communication.
This is the register configuration:
DrvDacWriteReg(DACRANGE2R_ADDR, 0x2222);
DrvDacWriteReg(DACRANGE3R_ADDR, 0x2222);
DrvDacWriteReg(SPICFGR_ADDR, 0x0A84);
DrvDacWriteReg(GENCFGR_ADDR, 0x3F00);
DrvDacWriteReg(DACPWDWNR_ADDR, 0x0000);
DrvDacWriteReg(BRDCFGR_ADDR, 0xFFFF);
DrvDacWriteReg(BRDCASTR_ADDR, 0xFFFF);
Please let me know why this problem occurs or if you can help me directly with this, it would be a great help.
Thanks and Regards,
chaogang zhu