Electrical – Square wave generator J1772

function generatormicrocontroller

For an electric car charger I need to design a square wave of ±12V at 1kHz [SAE J1772]. I would like to make this one with a adjustable duty cycle so that the charging current can be adjusted. I designed the following schematic:

schematic

simulate this circuit – Schematic created using CircuitLab

This design lets me adjust the on time vs the off time but not the duty cycle. Is there a way to realize this? maybe with a programmable IC because the 0-5V square wave will be generated by a micro controller.

Best Answer

A common way to do this is to use an integrator and comparator in a loop to form a triangle wave generator. The triangle output feeds a second comparator with an adjustable reference input. The output is an adjustable pulse width ratio. This is the basis of many class-D audio amplifiers.