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.

programming 89S51/52 using serial port

Status
Not open for further replies.

nitincool01

Newbie level 6
Joined
Jan 20, 2012
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,359
Hi,

Can any one help me to program 89S51/52 using serial port.

Please give me the complete details

and i dont have any hardware programmer for the same.

Thanks.
 

**broken link removed**

89sch.gif
 
U can do pragramming bit easier if u use parallel port..
U need to just download ISP programmer and one buffer IC
 

Parellel port + buffer IC
 

Attachments

  • 89S-2(BUFFER).pdf
    14.8 KB · Views: 123

which ISP Programmer should i use...

Please provide me some more details, Can i use Seral port for programming ?
If yes? , How can i do it
 

You can use serial programmer for 89S.. I give you in second post, you request for serial, but parallel is simple and easy to build.

Circuit:
Asim's ISP loader.GIF


isp1.jpg



If you use laptop/notebook and have only serial not parallel, you may use usb programmer like USBasp.
 
  • Like
Reactions: ggmssr

    ggmssr

    Points: 2
    Helpful Answer Positive Rating
Hi Are you sure the circuit which you have given for parallel port programming works fine for 89s51....
If yes, today itself i will try it... I need to purchase nor buffer IC thats all.

Thanks
 

Hi Are you sure the circuit which you have given for parallel port programming works fine for 89s51....
If yes, today itself i will try it... I need to purchase nor buffer IC thats all.

Thanks


I use this programmer from my post #6, working 100%, you dont need some buffer chip.
 

thanks. what should be the xtal frequency ?
u have mentioned as from 4 to 24 ...

---------- Post added at 17:26 ---------- Previous post was at 17:24 ----------

thanks. what should be the xtal frequency ?
you have mentioned as 4 to 24 MHZ

---------- Post added at 17:31 ---------- Previous post was at 17:26 ----------

what should be the XTAL frequency, U have mentioned as 4 to 24 MHZ
 

thanks. what should be the xtal frequency ?
u have mentioned as from 4 to 24 ...

---------- Post added at 17:26 ---------- Previous post was at 17:24 ----------

thanks. what should be the xtal frequency ?
you have mentioned as 4 to 24 MHZ

---------- Post added at 17:31 ---------- Previous post was at 17:26 ----------

what should be the XTAL frequency, U have mentioned as 4 to 24 MHZ


theepak is offline right now, its theepak circuit, he provide this.

Circuit in my post uses 4MHz.
 

u can use the frequency by seeing the datasheet of 89s52

In my college have i have used 11.0592MHz as the baud rates generated by its compatible with PC baud rates

(BAUD RATE CALCULATIONS

The baud rate is determined by the crystal frequency we will be using 11.0592 MHz crystal for calculation. You must be thinking why such an odd value, why 11.0592 MHz & why not 12MHz. The reason we use 11.0592 MHz crystal is it generates baud rate that is compatible with PC's baud rates i.e. it can generate exact baud rates of 300, 1200, 4800, 9600, 19200 bps whereas if we use other crystal values then those exact baud rate cannot be generated. This doesn’t mean that we cannot use other crystals for serial communication the error generated is very small & hence can be used if data to be send is not very large.

**broken link removed**

)

I have used this circuit and it ll work..
but u need programing software..I ll try to search and upload..
u can do using serial port, ...But using parallel port is easy

---------- Post added at 07:49 ---------- Previous post was at 07:49 ----------

**broken link removed**

---------- Post added at 07:53 ---------- Previous post was at 07:49 ----------

u can register in this website and download the software for ISP for 89s52
 

hi,
you can access to ur device through UART by opening the device driver.
in c it wud be like this:
int fd; // file descriptor
fd = open("/dev/YOUR_DRIVER", OPTION); //OPTION can be read only or write only, take a look at open system call
if (fd < 0)
{
// couldnt open driver, exit(0);
}

write("some byte"); // send or apply query to device
read("read some byte"); // get response for ur request from device.


NOTE: you can also control baud rate inside the code, which i had a problem before
if u cannot anymore let me know i attach for u the code but i was also same with u, couldnt know anything a week ago, searched over net and came with solution.

cheers~
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top