In-Reply-To: <003601bfbeb9$a687ad40$2a01fea9@computer> Dan Mulally wrote: > I'm looking for some sample c code for the CCS compiler which uses the AD > converter on a PIC16F743-20 I've never heard of that chip. > What type of number is returned by the function read_adc() ? If the chip has a ten bit A/D a number between 0 and 1023 is returned. If the chip has an 8 bit A/D a number between 0 and 255 is returned. Brian Gregory. briang@cix.co.uk