Time for a sanity check. Forget your project for a while, make something simple work.

Measure the clock frequency. Is it really 20 meg?

Make a loop timed with a PAUSE to wiggle a pin up and down. Is it the right period?

Sorry I can't be of more help with the serial commands as I've yet to use them.