Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - PIC16F887

(you are viewing a thread; or go back to list of threads)

PIC16F887 (by Shawn)
Microchip is recommending that people stop using the 16F877 and switch the 16F887. Is this chip compatible?
Tue Oct 20 2009, 06:23:02
(no subject) (by Jonathan Westhues)
It is not code compatible. But the latest development build of LDmicro does support it,

http://cq.cx/ladder-forum.pl?action=viewthread&parent=20
Tue Oct 20 2009, 06:34:53
(no subject) (by Shawn)
thank you, I see that some testing has been done with the 16F866. I will checkout your link as well.
Tue Oct 20 2009, 16:16:47
(no subject) (by Jonathan Westhues)
I'm not entirely sure what you mean.

That link points to a new version of LDmicro with specific support for the 'F887 and 'F886. Download that version and select the desired target, and it will work with either of those two parts.

The 'F877 is not in any way code compatible with the 'F887. An attempt to generate code for the 'F877 and run it on an 'F887 will fail. And the PIC16F866 does not exist; that is not a valid part number.
Tue Oct 20 2009, 17:04:17
Program size (by Evan Raftery)
I tried the development version to take advantage of the 14kb program capacity of the 16F887 and LDmicro reported that had run out of memory for same program that was written for F877 (Gave max program size as 8kb when tried to compile). Also UART not supported on the 887 according to Microchip
Wed Oct 21 2009, 05:43:06
(no subject) (by Shawn)
Sorry for the typo it should of been 16F886. I had a chance to go through your link and that help a lot.

thank you
Wed Oct 21 2009, 08:51:12
(no subject) (by Jonathan Westhues)
The PIC16F887 has 8k words of program memory, the same as the PIC16F877. Microchip sometimes also gives the capacity in bytes (which are 8/14 of a word, since a word is 14 bits and a byte is 8), because bigger numbers look better for marketing.

The PIC16F887 and 6 do have a UART; in fact, a slightly more advanced version called the EUSART. All of the usual ops should work.
Wed Oct 21 2009, 14:14:03
(no subject) (by Evan Raftery)
Thank you for the clarification. Will have to pursue the ATMEGA chips. Does the UART & PWM work with the ATMEGA? Need larger memory.
Wed Oct 21 2009, 16:59:47
(no subject) (by Jonathan Westhues)
Many AVR parts do have a UART and PWM peripheral. LDmicro does support those peripherals when they are present.
Wed Oct 21 2009, 23:34:17
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):