Ramp generator
When Vcommand = VDD :
The current source made by T1, R1, R2, R3 charges C1 with a constant current during until Vramp reaches Vmax
When
When Vcommand = GND :
The current source made of T2, R4, R5, R6 discharge C1 with a constant current during until Vramp reaches Vmin
When