nice, very simple design, i thing the charger is of normal type (no charging current regulation/overload short circuit protection) )
from the circuit assumes pin 6 and 9 are pwm outputs, search internet there is a design with 89C2051 for sine wave design, try that method