|
" @danna i used lm358 with 3.3 vcc.output of voltage divider is 3.3v and given to lm358.i used pull up resistor 20k in vcc 3.3 so it's giving 3 v at the output.i shouldn't give 5 v vcc bcz psoc can take up to 3.3 v oly so op amp may go around 5 v"
The LM358, with a Vcc = 3.3, its output will essentially saturate at Vcc - 1.5 = 1.8. The fact you are getting 2V is
the output swing spec is with a small load, 2K if I remember correctly. So LM358 is not a good choice if you
run it off of 3.3. You can run it off 5V, you just have to make sure that if its output went to max it would drive <
100 uA into PSOC input pin. Using the pullup on output does not increase the linear operating range of the
LM358, even though Voh is higher. Thats because the final driver stage is a compound darlington and its base
was driven high long before your input got to 3.3.
Additonally LM358 CM input range is only Vcc - 1.5, in this case 1.8 V.
So in short run the LM358 at 5 V, add a series r on its output to PSOC pin to limit 100 uA injection
current problem, or get another OpAmp. And as hli points out, run the current sensor at 5V, in spec.
Regards, Dana.
|