Hi there,

Check the DEBUG/DEBUGIN instructions in your PBP manual.

These instructions are very easy to work with, very stable with low osc values and fast speeds and the DEFINES are very straightforward.

My best regards
Rui