The 2 voltage sources represent the 2 PWM outputs of a microcontroller. Attiny85 in my case.
The 5k load resistor represents a pair of 10k trim pots that I'm using on the output.
Obviously, an integration capacitor is also required across the load to get a smooth CV. The maximum CV is 1V when both PWM outputs are at 100%.
An 18k in series with a 4k7 yields 22.7k.
A 150k in series with a 10k provides the 160k.
The 11 bit val has a range from 0 to 2047.
int(highByte(val) * 36.5) supplies the 22.7k
While lowByte(val) is fed to the 160k