Pic 16F87 compatible

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
User avatar
psf
Posts: 45
Joined: Mon Jun 25, 2007 9:44 pm
Location: Italia
Has thanked: 6 times
Been thanked: 2 times
Contact:

Pic 16F87 compatible

Post by psf »

I have developped my first "serius" pic project but at 90% I finished the memory of my 16F87 so I can't realise some function. Is there a pin to pin compatible PIC to avoid use another one? I think to use 16F876A but It doesn't support 64 seconds WDT timeout period I need. Thanks for help!

User avatar
Steve
Matrix Staff
Posts: 3424
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

The 16F87 has the largest memory of all 18-pin 16F PICmicros, so you're stuck if you need pin-for-pin compatibility.

The 16F886 might be an option for you (double the flash memory, but 28-pins). Other than than, you will need to move to an 18F device.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Post by Benj »

Remember that code can be optimised by using things like macros and loops.

Doing things like this can greatly improve the amount of memory taken up by your program.

User avatar
psf
Posts: 45
Joined: Mon Jun 25, 2007 9:44 pm
Location: Italia
Has thanked: 6 times
Been thanked: 2 times
Contact:

Post by psf »

Thanks, I'll use 16F886 that has the same function of 16F87 (like WDT up to 265s). In future it should be compatible with 18F252 for example and it's easy to exchange.

PS
Now I discovered that my DIY programmer doesn't support 16F886. If i set 16F676 or similar it's the same? Or it's better to buy a new one?

User avatar
Steve
Matrix Staff
Posts: 3424
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

I think it uses the same programming method as that chip, but the chip sizes are different and your programmer may not like it. It's best to try it and see.

Post Reply