>Your code looks good; I can't think of a reason why it wouldn't work. Should also disable comparators: CMCON=7. Otherwise inputs RA0, 1 always read zero. Josef