i may not have been very accurate in my question, what i have done so far is that i designed a small solar power system using 18V panel,LM317 regulator ,charge controller as well as 9V rechargeable battery,, my problem is how to charge the battery and when it's full it cuts of the charging current to feed the load resistor???,,thank you