war nix, ist nur so ne feineinstellung für die 32kHz einer Uhr oder so...

aber das Programm läuft jetzt einwandfrei:

void main ()
{
ADCON1 = 0xFF; //PORTA. 0....4 auf IN/Out statt analog
TRISA = 0xFF; //PortA Richtungsreg auf Input (hex)
TRISB = 0x00; //PortB Output (hex)

while(1)
{
PORTB = 0x88; //Alle Ausgänge auf 1
}

}

Das Ziel ist es von mir, dass ich eine Blockkommutierung (für Drehstromerzeugung) programmieren kann, leider habe ich kein Plan wie ich da weiterfahren sollte....
Hat jemand eine Idee?