Ramping Down the variable in Arduino IDE with the help of millis()??......

yes, the signal voltage curve should be/look as a rectangle/square function, starting from 0.0 Volts, then 3.279 Volts, staying at 3,279 for 10 µicroseconds, then going down to 0.0 Volts. Also it is important to do it as fast as possible. One more question: is there a chance to achieve a simple PID cycle rates of 1-20 microseconds? on Arduino Due.