Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

How can I write my own software to program AT89S52?

Status
Not open for further replies.

nvd

Full Member level 2
Full Member level 2
Joined
Jan 17, 2005
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Solar System
Activity points
1,219
at89s52 programa

I know about the cable used to program this chip. (from aec electronics)
How can I write my own software to program this chip?
 

silvio

Advanced Member level 3
Advanced Member level 3
Joined
Dec 31, 2001
Messages
715
Helped
105
Reputation
210
Reaction score
16
Trophy points
1,298
Location
Romania
Activity points
11,468
Re: AT89S52

Do you want to write an application program which will be stored into microcontroller flash or
a PC software program that uses the ISP cable to program whatever compiled code ?
 

shayraq

Newbie level 1
Newbie level 1
Joined
Mar 1, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Malaysia
Activity points
1,288
AT89S52

hi...i just do the same microcontroller...you just go the atmel site to download the software for the ISP..it`s an easy way to download ur program into the MicroC ;)
 

nvd

Full Member level 2
Full Member level 2
Joined
Jan 17, 2005
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Solar System
Activity points
1,219
Re: AT89S52

But I am unable to program the microcontroller. I have used 74HC245 buffer but still the micro is not detectable. I have used the cable from AEC electronics.
 

UroBoros

Advanced Member level 2
Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,463
Re: AT89S52

Hai


Try this link

**broken link removed**

This is the one worked for me.

picstudent
 

ekawahyu

Newbie level 3
Newbie level 3
Joined
Mar 2, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
EaseMicro51

I built a text editor in DOS mode, include AEC ISP, and asm compiler. The schematic for the cable is included in the software. You can use or copy it freely, go to:

http://www.8052.com

or

**broken link removed**

the keyword is EaseMicro51. I have test the software and run in DOS, Win95, Win98, and WinXP, but not tested in Win2000 yet. You can mail me for the source code if you want.

Thanks,
Eka
 

nvd

Full Member level 2
Full Member level 2
Joined
Jan 17, 2005
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Solar System
Activity points
1,219
Re: AT89S52

Using the Atmel AT89S52 datasheet, I built my own ISP software using VB6.
Because of some timing problems, it is a bit slower. But still I can now put any functionality into it.:D:D:D
 

UroBoros

Advanced Member level 2
Advanced Member level 2
Joined
May 5, 2004
Messages
642
Helped
19
Reputation
38
Reaction score
8
Trophy points
1,298
Location
Cochin - India
Activity points
6,463
Re: AT89S52

nvd said:
Using the Atmel AT89S52 datasheet, I built my own ISP software using VB6.
Because of some timing problems, it is a bit slower. But still I can now put any functionality into it.:D:D:D


Is this something you will share including VB sourse?

picstudent
 

nvd

Full Member level 2
Full Member level 2
Joined
Jan 17, 2005
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Solar System
Activity points
1,219
Re: AT89S52

I am working on that. Once that's complete, I will post that here with the source code.
 

swgchlry

Member level 4
Member level 4
Joined
Dec 8, 2003
Messages
69
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
718
AT89S52

you can DIY a programmer, use google to serch, there's much solutions.
 

Art

Newbie level 6
Newbie level 6
Joined
Jul 28, 2002
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
17
AT89S52

Try this one **broken link removed**
I used it for about 2 years
 

maxchirag

Newbie level 3
Newbie level 3
Joined
May 29, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
India
Activity points
1,309
Hello NVD,

can you share the VB Source Code with me?

thanks in advance!
 

nvd

Full Member level 2
Full Member level 2
Joined
Jan 17, 2005
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Solar System
Activity points
1,219
Such an old thread!

I have not yet decided to make it open source.

Nevertheless, I can share the compiled version (though it has some problems).

I have to dig in my code to finalize it and then create an installer.

Regards.
 

badri89

Junior Member level 3
Junior Member level 3
Joined
Oct 19, 2009
Messages
29
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
india
Activity points
1,484
hi...could you guys tell me how to write an ISP for a microcontroller??atleast some tutorials or basics..i googled but it was quite hard for me to get the source..help me out.
 

nvd

Full Member level 2
Full Member level 2
Joined
Jan 17, 2005
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Solar System
Activity points
1,219
I think the best way is to read the datasheet of AT89S51,52.

They have the timing diagrams and other tips.

I am not sure about the source code though.
 

srizbf

Advanced Member level 5
Advanced Member level 5
Joined
Apr 3, 2010
Messages
1,992
Helped
417
Reputation
840
Reaction score
328
Trophy points
1,363
Activity points
10,985
for the benefit of forum members who like to write
their own isp code for 89s51 or 52:

the flash data to be programmed into 89s51 is sent in serial format.
(called as spi protocol)

in SPI there is a Master and a Slave.
if a PC is used in programming 89s51 , then PC is the Master
and 89s51 is the Slave.

(Master is the sender and Slave is the receiver)

there are mainly fourlines:
MOSI(MasteOutSlaveIn)
MISO(MasterInSlaveOut)
SCK(SeroalClocK)
SS(SlaveSelect)

in our example since 89s51 is Slave , we put it appropriate level.

PC place the databit in MOSI line of 89s51
and applies a pulse in the SCK line.

this is one bit and 89s51 reads the bitdata in MOSI under the SCK line
and stores and assembles it.

for any number of bytes to be sent to 809s51
send it bit by bit.

one must prepare the 89s51 in the SPI mode by controlling RESET line of 89s51.

in SPI programming to 89s51 use:
MOSI and SCK (controlled by PC)
and RESET and SlaveSelct of 89s51 in appropriate level.

once programming is over , remove the RESET line from the earlier level , and 89s51 will start reading from 0000h.


srizbf
31stmay2010
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top