You need to follow the instructions in the datasheet. You can do exactly what you mentioned, and more. --Bob john wrote: > How do you set cmcon if you still want to use one (or 2) of the analog > comparators, but require the rest digital, or is there another way to > set this? > > Regards > > John > > Bob Axtell wrote: > > >> Renzo wrote: >> >> >> >>> I have a circuit, mainly a counter, with Led display driven by a >>> 16F84a that runs perfectly. >>> I changed the chip with a 16F628A , no change in the circuit I only >>> replaced in the program the RAM beginning with 20h instead of 0Ch and >>> of course processor and include file.. >>> Now to start I have to momentary ground Rb0 and Rb4 never change. >>> >>> There are any other replacement to do? There is some article that >>> deal with this problem? >>> Thanks >>> Renzo Giurini >>> >>> >>> >>> >>> >> There are a few other changes, too. Look at the Microchip Spec sheet for >> the PIC16F628A. >> At the very least, CMCON will have to be loaded with 7 to turn off the >> analog comparators, >> and enable digital signal operation. >> >> --Bob >> >> >> > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist