How do NiCad and NiMh chargers detect -deltaV to stop charging? (SOLVED)

What i am asking is how do the chargers to this. ie how can it be done with a microcontroller. I would like some technical details. I mean, the "loop" that the microcontroller would have to repeat in order to figure out when this -deltaV has been reached and some circuitry that would be required.

@Mr.Retroplayer:
You kind of confused me there. If i understood correctly, you are basically saying that by knowing the voltage you provide to the battery through the series resistor and the voltage drop across the resistor in series with the battery you can calculate the EMF of the battery ?? (ie EMF of the battery = voltage supplied to the resistor and battery - Voltage across the series resistor)

Wouldn't this equation give me the voltage that is used to charge the battery?
Would it give me the actual EMF of the battery in order for me to log the data down and be abple to determine the -deltaV?
Wouldn't i have to stop the charging process, measure the open circuit voltage of the battery and the continue with the charging process in order to measure the EMF of the battery?
By the way, i know that for lipos, its mostly the cell voltage that changes (drops) while the battery is drained (increase in internal resistance has a smaller effect). Does this not apply for NiCads and NiMhs? Does internal resistance vary greatly while the EMF of the battery remains more or less constant?

@Mr.Lefty:
How do you continuously monitor the battery terminal voltage while charging? What to you mean the change in direction of the voltage?

Again thanks for the help people.