8-bit R-2R DAC need help.

Oh, you are doing this with an MCU?

So take a digital value and make a sine like output?
Assuming frequency of the output is proportional to the digital value?
What are the ranges?