What's the easiest way to output a 50 kHz square wave on the Due?

Preferably without needing to use any additional circuitry

Search for PWM_lib or TC_lib from antodom.