Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

at89s51 Programmer using PIC Microcontroller

Status
Not open for further replies.

sukumar

Junior Member level 3
Joined
Nov 18, 2006
Messages
31
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,464
pic programmer

Hi All,

I am Using PIC16f877a's SPI Protocol to program the 8051 IC.
My design is to Program the 89s51 one by one ie..Single byte at a time.
I will get the Address, Opcode from Serial Port(No intel Hex Format) and Programming the 89s51.

I Programmed the IC successfully and Tested it.

Here the Problem i cannot write a same location second time.
For Example:
I have written 0x0046--0xaa

If i Write the same location Second Time 0x0046---0x32.

The Location 0x0046 changed to 0x00...( 0x32 not written).

Why?
 

nandhu015

Advanced Member level 5
Joined
Feb 11, 2006
Messages
1,965
Helped
300
Reputation
600
Reaction score
224
Trophy points
1,353
Location
India
Activity points
9,826
First you have to erase the content (make all the locations 0xff)

Nandhu
 

sukumar

Junior Member level 3
Joined
Nov 18, 2006
Messages
31
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,464
Hi,

Is there any method to erase a Particular memory location?
Erasing all the contents will erase everything
but i need to edit some portion of a large program by modifying few memory locations only.
remaining content should be retained.
That particular memory location editing is not working. thats is my problem
 

wek

Full Member level 4
Joined
Dec 21, 2004
Messages
239
Helped
28
Reputation
56
Reaction score
2
Trophy points
1,298
Activity points
1,991
No, you can erase only the whole chip.

The only way to modify a part of the content is to read the whole content into a temporary storage (I'd use an external serial eeprom e.g. 24Cxx, if there is not enough internal storage onchip of the PIC); perform the erase, and then write back the modified content.

JW
 

sukumar

Junior Member level 3
Joined
Nov 18, 2006
Messages
31
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,464
I already Included SEEPROM in My Board.

Then I thought you people will have different Idea.

Okay. I will Try With Serial Memory. Thanks a Lot for all.

Just Suggest any other 16Fxx IC compatible with 16f877a with more EEPROM?
 

Medtronic

Full Member level 5
Joined
May 19, 2005
Messages
243
Helped
29
Reputation
58
Reaction score
16
Trophy points
1,318
Location
Egypt
Activity points
2,680
Dear My Friend sukumar

Can you please shar your sucess with us,share your programmer schematic and firmware wiyh my pleasure

Best Regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top