best solution for 12 analog outputs (5 bits)

One short note: the 1st solution I provided can be easily modified to incorporate gamma correction.

The 2nd solution I provided allows easy adjustment of pwm frequency.

Otherwise, they are identical.