Quote Originally Posted by ALFRED
Hello, I am having some trouble geting simple data into my PIC16F767. I have writen a program that goes somthing like this.

TRISB = %11111111
TRISA = %00000000
ADCON1 = %00001111

Start: IF PortB.0 = 1 THEN HIGH PortA.0
LOW PortA.0
PAUSE 1
GOTO Start
ADCON1 = %00000111