Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 08:03:48 08:03


Login with username, password and session length


Pages: [1]
Print
Author Topic: PIC16F877A to PIC16F887`  (Read 4163 times)
0 Members and 1 Guest are viewing this topic.
Unhappy
Senior Member
****
Offline Offline

Posts: 285

Thank You
-Given: 988
-Receive: 100


« on: March 25, 2011, 09:20:09 21:20 »

I know this is silly can anyone tell me how to use/convert *.hex file meant for PIC16F877A to program a PIC16F887. I do not have any source code files.
Thanking you all in anticipation
UnHappy
Logged
tAhm1D
Senior Member
****
Offline Offline

Posts: 326

Thank You
-Given: 103
-Receive: 180



« Reply #1 on: March 26, 2011, 05:55:57 17:55 »

This is rather difficult as 16F877A and 16F887 have some differences, which you would need to change in the code to make it compatible for 887. You could disassemble it (software are available) and modify it, but it would become quite messy.
Logged
Ichan
Hero Member
*****
Offline Offline

Posts: 833

Thank You
-Given: 312
-Receive: 392



WWW
« Reply #2 on: March 27, 2011, 06:36:13 06:36 »

What i will do:

1. Find the difference between the two micros
2. Find where your new hardware meet 1
3. Disasembly the hex in mplab
4. Modify the disasemlby listing  related to 2
5. Rebuild the hex

It will not be easy.

-ichan
Logged

There is Gray, not only Black or White.
gan_canny
Junior Member
**
Offline Offline

Posts: 89

Thank You
-Given: 101
-Receive: 26


« Reply #3 on: March 27, 2011, 05:35:40 17:35 »

Attempting this without source code may become a fools errand. Even assuming it was coded to be as portable as possible the compiler is often charged with small micros to make the code compact and maximize the efficient use of the on chip firmware.This means the instruction level code becomes specific even if the higher level wasn't.
I'd try the dis-assembly route but then using the ASM code  I'd recode in c. 
« Last Edit: March 27, 2011, 05:38:47 17:38 by gan_canny » Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC