The end of your comment is most important thing to use the maximum solar energy. But would like turn back to PWM. Generally, what frequency is used for battery charging ?

Best regards