A simple console-program written in C++ that produces the code in Assembly for a square wave of any period, any duty cycle, etc.
Just follow the on-screen instructions and make sure you initialise and declare the variables used in the program (explain in the instructions/option 1) and you'll have a square wave, customisable to port/pins layouts, etc.
Once again, no/little input validation, I assume users have a level of competency.
Written as a random project, but useful for EN2057 students at Cardiff University.