Can you elaborate on the following statement?
... output a square wave at 325hz with a duty cycle and frequency that can be defined in the program ...
Do you want a frequency of 325-Hz or do you want a variable frequency?

Happy Holidays. Mike