This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Float values to DAC

Other Parts Discussed in Thread: DAC8568

Hi, I have a float variable (of 32 bit), that goes from 1.5 to 9. I would send these values to a 16 bit DAC, ( DAC8568).

The conversion would be:

1.5 ---> 0000.0000.0000.0000

9 ---> 1111.1111.1111.1111

Have you in mind an algorithm for implementing this conversion?

Thank you for the help!