Don't mean to be picky, but there is no such thing as a PIC12F765, according to Microchip.
Perhaps a typo, maybe you meant PIC16F765?
The latest waveform shows <=50% charging time. A charger should not waste time charging a cell and this waveform guarantees that approx. half the time the design causes a cell to not being fed electrons.
My idea here is too evaluate an unusual circuit for a charger. In design of a charger, there are always alternative ways to accomplish a task. If a circuit, after some experimentation, seems like a hare-brained idea then it is a poor choice to accomplish the goal, and one should then go back to the drawing board!
There are more ways to skin a cat. A plan B might be better here.
A circuit idea might be a good idea to be implemented if:
1) It accomplishes a task better than an alternate circuit.
2) It is cheaper to make, easier to find parts for, easy to make, yet gives as good performance as alternatives.
3) It has fewer and inexpensive components than other circuit ideas, but doesn't compromise performance.
4) It has a smaller PCB footprint, yet works as good as an alternate.
5) It offers many advantages in performance, it is more versatile, easier to repair than alternatives.
A circuit idea should be abandoned or rethought if:
1) It is a dumb way to do something, unstable, hard to fabricate, uses hard to get, obsolete or imaginary components, performs erratically, costs too much in parts, wastes time accomplishing a design goal, doesn't perform as well as alternative circuits, isn't safe, likely to catch fire or burns, scares small children, police or pets, or likely to explode or maybe just trying to set it up to work causes incidences of mental illness, severe frustration and depression, or its operation cannot be understood by ordinary people, or is likely to require a visit by a Buddhist priest for a blessing, and even then requires summoning both a member of the clergy and then an exorcist to get it to work, or just brings bad luck to anyone who constructs it and tries to use it.
2) Hasn't been optimized to work well so much that it causes unexpected results, causes damage to the environment, damages libido, else somehow causes pains in the neck or the posterior, else its implementation just causes you to be shamed and shunned by your friends, parents, peers and also insults your ancestors.
3)Hideously ugly.
So, maybe too early to throw code at an imaginary chip?