Tenaja,

this means i have to always ( everytime i use internal oscillator AND have programmed the MCLR pin as an IO ) include a small code before the actual code, right ?



BeforeCode:

input portb.6 ' Turn PGC (PORTB.6) & PGD (PORTB.7) into inputs (tris.x =1)
input portb.7 ' Turn PGC (PORTB.6) & PGD (PORTB.7) into inputs (tris.x =1)

' Disable hardware Crystal drive -> What is the simplest way to do this ?

pause 2000 ' Pause ~2 seconds

Codestart:

' and here starts the program

.