I made an inverter using the full bridge mosfet configuration which worked perfectly. I used transformer 7v-220v for the inverter with a 12v battery, which is a common practice with a pure sine wave inverter.
Now, I want to add a charging circuit, in the sense that, the same transformer that is used for inverting will be used for the charging.
As we all know, a typical battery charger will consist of just the transformer, bridge rectifier and possibly some capacitors to smoothen the current.

With the full bridge mosfet configuration, if I send 220v AC mains to the 220v side of the transformer, the body diode of the full bridge mosfets automatically forms a bridge rectifier, the input filter capacitors automatically becomes smoothing capacitors for the incoming rectified current which automatically charges the battery.
Now here is the question, since the transformer is 7v-220v and the battery is 12v, if 220v AC is applied to the transformer, the rectified voltage at the other side will be 7v DC which will not be sufficient to charge a 12v battery.
So, how can I make the same transformer to charge the inverter battery?
Now, I want to add a charging circuit, in the sense that, the same transformer that is used for inverting will be used for the charging.
As we all know, a typical battery charger will consist of just the transformer, bridge rectifier and possibly some capacitors to smoothen the current.

With the full bridge mosfet configuration, if I send 220v AC mains to the 220v side of the transformer, the body diode of the full bridge mosfets automatically forms a bridge rectifier, the input filter capacitors automatically becomes smoothing capacitors for the incoming rectified current which automatically charges the battery.
Now here is the question, since the transformer is 7v-220v and the battery is 12v, if 220v AC is applied to the transformer, the rectified voltage at the other side will be 7v DC which will not be sufficient to charge a 12v battery.
So, how can I make the same transformer to charge the inverter battery?

