Add ANSELH=0 to the top section of your code. P.S. you can get answers without multiple posts on the same subject..;o}