Other Parts Discussed in Thread: DAC121S101,
Hi everyone,
I try made a little firmware on STM32 to control this DAC but I don't find the mistake, because I read the datasheet, I tried make this work but is impossible, and I don't find any material to consult to help me.
On the picture you can see the signal clock (yellow) with 16 bits, the data (blue), the sync signal (pink), I try send the hex number 2280
I read on datasheet page 18 the bits DB15 and DB14 are not important, the bits DB13 and DB12 (PD1 and PD0) are the Power-Down Modes, and the DB11 to DB0 are the bits to controller the DAC.
I try made the DAC show 0,51v on Vout, using the Vout equation on datasheet, I find Vout=Va * (D/4096)
Vout=3,3 * (640/4096)
Vout = 0,51V
640 decimal is 0b0000 0010 1000 0000
I made a mix with this 640 dec together with config starting on MSB (0010)
The 2280 are 0b0010 0010 1000 0000
if any people help me I would be happy.