Other Parts Discussed in Thread: DAC8562,
Hello
I use the same program to run dac8562 and dac8562-q1.I found dac8562 work well,but dac8562-q1 can't output the same. The init program is below.
When run DAC_Write_3Bytes(0x19, 26214, DAC1_CS);,dac8562 Boutput 1V,dac8562-q1 Boutput 1.9V.I had test several dac8562 and dac8562-q1 and the result is same.//26214/65536*2.5 = 1
void DAC1_init()
{
DAC_LDAC1_Set();
DAC_Write_3Bytes(0x28, 0x0001, DAC1_CS);//Reset all registers and update all DACs (Power-on-reset update)
DAC_Write_3Bytes(0x20, 0x0003, DAC1_CS);//Power up DAC-A and DAC-B
DAC_Write_3Bytes(0x38, 0x0001, DAC1_CS);//Enable internal reference and reset DACs to gain = 2
DAC_Write_3Bytes(0x02, 0x0003, DAC1_CS);//Gain: DAC-B gain = 1, DAC-A gain = 1 (power-on default)
DAC_Write_3Bytes(0x30, 0x0000, DAC1_CS);//LDAC pin active for DAC-B and DAC-A
DAC_Write_3Bytes(0x18, 0, DAC1_CS);
DAC_Write_3Bytes(0x19, 0, DAC1_CS);
DAC_LDAC1_Clr();
__asm("nop");
__asm("nop");
DAC_LDAC1_Set();
}
Thanks a lot.