Other Parts Discussed in Thread: TL074, TLV9001, TL072
I designed a 0-20mA transmitter based right on the Application block diagram Fig 46 out of the XTR111 Datasheet with the exception of using a PWM signal as the VIN voltage.
This PWM is beign filtered by a 4.7K over 4.7uF cap RC filter then goes through a voltage follower (Unity gain OP amp). The voltage comes out to .03V at 0% PWM to 3.307V at 100% PWM.
This voltage is passed into pin 6 of the XTR111.
The output voltage at the output, which is connected to a 250ohm 1/2W resister is 7.71V at 0% PWM, 4.07V at 50% PWM, 7.71V at 100% PWM. (wacked out) that translates to 30.8ma @ 0%, 16.2mA at 50% and back to 30.8mA at 100%.
I calculated Rset to 1.5K for a 3.3V input.
I'm not using the built in regulated but I put a 5.6K over 8.2K to regulate at 3.24V
Schematic with readings below.