PIC16F628A is pin compatible with pic16f84.
I urge to migrate from pic16f84 to pic16f628a.
Only confusion is 16f628a have built in ADC, osc (internal) and
comparator.
Source code is in asm.
Any suggestion?
If you are upgrading from a PIC16F (or C) 84 (A) all the port pins are in the same positions on both chips. Port B is identical. Port A on the PIC16F84 has 4 in/out and 1 "input and "half-output". The PIC16F628 has 6 in/out, one "input and half-output" (RA4) and 1 input only (RA5).
The thing you have to remember is:
On both the PIC16F84 and PIC16F628, RA4 is an "input and half-output". When used as an output, these pins will only sink 25mA and source 0mA. To make the pin source, connect the base of a transistor to the pin and put the transistor in emitter-follower mode by connecting the collector to the positive rail as in the diagram below. RA5 on a PIC16F628 is input only.
The 628A is a much better choice over the 84A with its on board 4Mhz oscillator and its Analogue Comparator - that is not ADC, Analogue to Digitial Converter, important difference.
Also look at the 16F88 chip, an even better chip, again pin compatible but has the advantage of several channels for the 10 bit ADC, an internal oscillator with several selectable frequencies up to 8 Mhz etc.
Before i work with PIC16F72
And pin out display as AN0 AN1, pic16f72 have these pins with adc module.
When i see pin out of PIC16F628A.
I see these pins 1, 2, 17, 18, also marked as AN0 - AN3.
according to data sheet of 16F628A, it do not have adc module.
We can use these pins as analog input.
Can we use these pin same as we use in PIC16F72.
Before i work with PIC16F72
And pin out display as AN0 AN1, pic16f72 have these pins with adc module.
When i see pin out of PIC16F628A.
I see these pins 1, 2, 17, 18, also marked as AN0 - AN3.
according to data sheet of 16F628A, it do not have adc module.
We can use these pins as analog input.
Can we use these pin same as we use in PIC16F72.
Sorry,in my earlier post i mean to say i have experience of a code
writing for PIC16F72.
Now i am thinking F88 is just right,as you suggested.
PIC16F88 have adc module with 5 analog inputs.