Hi all
My DAC output data is doubled for reason not known to me.
I am sending below spi Dac commands at MOSI in my init function:
0x07000000 //reset cmd
0x05000000 //zero scale
0x08000000 //Ref off (since 5V external ref is provided)
0x060000FF //Ignore LDAC on all DAC channels
I am running the below command in to write 0x400 to Channel A.
0x00040000
which is supposed to produce 1.25V (0x400/0xFFF * 5V) But produces 2.5V. Doubled!!
and 0x00080000 produces 5V instead of 2.5V(0x800/0xFFF * 5V).
Is there any gain change command to fix this issue?
Note:
- same function is used to send 32bit spi data to DAC7568.
- Chip select pin(sync pin) is selected throughout the 32 bit transaction.
- SPI frequency is at 100k.
- Only one device is connected on the SPI bus.
- Tried with 1K SPI clocks too, same issue persists.
- SPI mode is set MODE1 (data sampled at clock high-to-low edge).
Refer Below snapshot of oscilloscope when sending 0x00040000: