Maker Pro
Maker Pro

Looking for newer equivalent of PIC16C84

I have a program written for a PIC16C84 microcontroller that I need to
implement using one of the newer equivalents.

I know that the 'F' series replaced the 'C' series, but these might
have been discontinued as well.

Here is a link to the device I am building:

http://www.andrewkilpatrick.org/mind/laserharp/electronics.html

There are circuit diagrams towards the bottom for the PIC and code.

Any assistance would be greatly appreciated!

Steve
 
P

petrus bitbyter

Jan 1, 1970
0
I have a program written for a PIC16C84 microcontroller that I need to
implement using one of the newer equivalents.

I know that the 'F' series replaced the 'C' series, but these might
have been discontinued as well.

Here is a link to the device I am building:

http://www.andrewkilpatrick.org/mind/laserharp/electronics.html

There are circuit diagrams towards the bottom for the PIC and code.

Any assistance would be greatly appreciated!

Steve

Steve,

The PIC16C84 was discontinued and its successor, the PIC16F84(A), can be
considered obsolete. Both can be replaced by the PIC16F628 which has more
content in the same package. But... its architecture differs and its
objectcode is not compatible. Even the source code is not fully compatible,
so you may have to made changes in that source code and recompile it. I've
done this for a PIC16C56 source and it's quite some work. Nevertheless it
can be done... if you can get that source code. I can't find it on the
webpage you mentioned.

petrus bitbyter
 
P

petrus bitbyter

Jan 1, 1970
0
Here's a link to the code:

http://www.andrewkilpatrick.org/mind/laserharp/laser_asm.txt

At the moment I've got the thing working using a USB IO board to a PC,
and some simple software. I would like to make it embedded.

Steve

Steve,

A quick inspection learns that you have to change at least two things:
- Leave the configuration macros out. (Not the configurationdirective.) I
did not check whether or not you have to add something to the configuration
word. The parallel programming bit may need to be reset for instance.
- Add 14H to the addresses of the variables as the general purpose registers
of the PIC16F628 start at 20H rather then at 0Ch in the PIC16C84.

petrus bitbyter
 
Top