Richard,

Thank you very much for a very helpful reply.

dgg1 was of course a typo - being too clever in the (adjusted) cut & paste process. Ditto for the missing Pause 50. I did intend the pause to be 50mSec - simply for ease of viewing in this "get it going" test version. In the servo drive version the pulse is 1.5 - 2 mSec and a period of 20 mSec.

As I read your version, you have confirmed my suspicion my problem lay in the config and other statements above the program proper start line. My original effort(s) expressed OSCCON, TRISIO and so on in the form you have, but I tried setting one bit at a time to be sure (in my mind) I was not accidentally setting bits I did not intend. I shall reveret to your format.

From your version my suspicion is focused on my missing the DEFINE NO_CLRWDT 1. I did not see that in any of the material fi found on WDT.

Anyway, I shall try this as soon as I can and report back

Thanks again

(PS The comment "This is better than free to air TV is undoubtedly true. Well, I think it is, but the compiler rejected it when accidentally included in the program, so perhaps there is some doubt?)