Thanks for your reply and for your interest in trying to solve my problem.
As you advised, I compiled the Simple A/D (EX_ADMM.C) example write from the CCS web page.
I have recently tried the CCS Demo compiler for a school project. What I want to do is to make a square wave signal from a sinusoidal signal using PIC16F877A internal comparator.
So I st ...