Your 25 Hz 50% signal won’t be accurate either because it’s not evenly divisible by your instruction time 16/4 = 4 MHz.
Only the 2kHz 50% signal can be free of resolution error with the 16 MHz clock.
Your 25 Hz 50% signal won’t be accurate either because it’s not evenly divisible by your instruction time 16/4 = 4 MHz.
Only the 2kHz 50% signal can be free of resolution error with the 16 MHz clock.
I've managed to fix it, appears I had not disabled the Adc and the analog inputs and they were somehow causing issues.
Bookmarks