On Mon, 23 Jun 2003 19:27:33 +0200, Ofer Saferman wrote: >=A0Hi,=20 >=A0 >=A0For sensing both ways with a lot of complication you might try hi= gh=20 >=A0side current sensing. A chip like MAX471 or MAX472 or similar giv= es=20 >=A0you the current as a voltage across a sense resistor and there is= =20 >=A0also a sign output that determines the direction. These amplifiers work exceptionally well and are simple to use. I use= =20 them in several uninterruptable power supplies (UPS) I designed to= =20 sense and display in real time both the charge and discharge current = of=20 the batteries. I've also used them as an active feedback element in switch mode battery charger circuits to convert a standard buck regulator to constant current battery charger. Really versatile devices for high-side current sensing! Matt Pobursky=20 Maximum Performance Systems -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.