[/QUOTE]
i want to maintain the current in a specific value that i define with the DAC reference. Say i want to drive the solenoid with 5A for a specific period of time (100µS for example) i use the OA2 to amplify the voltage across the shunt resistor (because i will be reducing the value, 15mohm or less) and OA2 (which is a comparator LM393) to make the comparison with the reference (with a hysteresis of 0.5A for example). This is the main goal of my circuit. Sorry for any miss understanding.define what you want to achieve