Design example for LED driver output that support 0-10V sinking dimmer
You really have two separate tasks and they are not related:


How to drive a 0-10V dimmer and digitize the signal produced.
How to produce a PWM signal based on a value sourced elsewhere.


To drive IEC 60929 annex e.2. dimmers you source current from the load device or you power them separately. The standard is 2mA maximum sink, but this varies device to device (load controller). This Tech note may help you understand. 

Most 0-10V dimmer controls DO NOT produce a 0-10V signal, they typically produce a 0.5 or 1V low to a 10V high signal. The IEC standard says that at &lt;= 1V the light would be off and at +> 9V the light would be 100%. For example. you can even just hook up a potentiometer to the 0-10V signal point and sink current to the Gnd and get a light to dim. 

Now to your specific problem, You don't say if you have externally powered (typically a 12VDC supply) dimmers or not. 

Assuming externally powered. then you just need to provide a current source and maximum voltage to the dimmer, and use a D/A to digitize the signal line. 







simulate this circuit &ndash; Schematic created using CircuitLab

Use something like an Arduino to digitize the dimmer signal, and produce the PWM signal you want.