Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 05, 2016, 05:34:24 17:34


Login with username, password and session length


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

Posts: 200

Thank You
-Given: 369
-Receive: 52


« 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: 336

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: 840

Thank You
-Given: 312
-Receive: 387



WWW
« Reply #2 on: March 27, 2011, 07:36:13 07: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
**
 Warned
Offline Offline

Posts: 85

Thank You
-Given: 98
-Receive: 25


« Reply #3 on: March 27, 2011, 06:35:40 18: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, 06:38:47 18: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