Yes it's actually pic 16f873 that I am using not a 16f628 sorry about that, I got a couple projects on the go right now. I tried using a shunt resistor with dcin to calculate the current but it was not very accurate. I even checked the circuit in a battery charger the full charge led is connected to an op-amp with a bunch of voltage dividers. I guess I could do some reverse engineering to figure it out.

I was wondering if anyone else had any ideas. All I want to know is when the current has reached close to zero an analog value would be more useful.