The internal oscillator is set at 4MHz. But if you want 20MHz, then you need to sacrifice two pins, GPIO4 and GPIO5 to be used as Crystal connections for the High Speed oscillator.
Or you can drive the GPIO5 pin with an external can oscillator. See page 53 of the datasheet.
The settings for all above is in the CONFIG word during programming of the chip (page 52 of the datasheet).
Ioannis
Bookmarks