migrating from 16f876a to 16f886 (by Olivier)
Hi i have a program witch work well with 16f876a that i made with ld micro, i must change for a 16f886 since it is the new version of microchip, 16f876a is becoming obsololete and cost twice than 16f886. I have tried a 16f876a program and programming bits in my programmer for a 16f886 but it doens't work well.
any idea what to check to make this work, i have check migration document for microchip, but i dont understand everything!
new support for these devices (by Jonathan Westhues)
The '886 isn't particularly software-compatible with the '876A; they've changed a bunch of little things.
But the '876A and '877A are indeed going obsolete, so I suppose that I'll have to add some new targets eventually. So I've just added support for the PIC16F886 and PIC16F887. A test build is attached.
If anyone tries the new version, then please report your experiences here. Please indicate what features you tried (which processor, ADC, PWM, UART, EEPROM variables, etc.), and whether anything didn't work.
If all seems good, then I'll add this to the official release in a month or so.
(no subject) (by Olivier)
i have tried it with a 16f886 with same program of 16f876a (just changed type of microprocessor) and everything work
i tested
ADC
PWM
EEPROM
and variables
Thank you !
(no subject) (by Olivier)
i forgot to say i use external crystal at 20mhz and 1.5ms cycle
i set configurations bit on my programmer like that
2007h : 1 (bit 13) 0 1 1 1 1 1 1 1 1 1 0 1 0 (bit 0)
(no subject) (by Jonathan Westhues)
Excellent. Although I would note that your configuration bits are incomplete; those parts have two configuration words, not just one. Both of those words will be specified in the compiler output. If your programmer can read the fuses out of the IHEX file, then you shouldn't need to touch them.
Has anyone else tried this target? Or has anyone tried the '877A ?
(no subject) (by Shafikul Azam Khan)
I have tried it with a 16f887 with same program of 16f877A and everything works fine.
Testboard: EasyPIC5 (PIC Flash programmer)