Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: benji on October 14, 2007, 04:32:15 AM

Title: download program into the 8051
Post by: benji on October 14, 2007, 04:32:15 AM
hey guys
2 days ago i did finish programing the 8051 to drive/control a stepper motor through a keypad
and i did simulate this over proteus and it works fine
the next step is that i want to buy the 8051 and download my hex file into it
i dont have info about doing this,, should this be through the serial port com ?
i would appreciate anybody can help me with this or know ome website that explains it,
thanks already for any input
Title: Re: download program into the 8051
Post by: paulstreats on October 14, 2007, 08:14:54 AM
there should be info in the datasheet for this. its quite specific depending on which chip you buy. 8051 is just an architecture type - there are lots of different 8051 mcu's to buy each will be slightly different in how you program it.
8051 mcu's are quite often plain eproms which are one time programmable only through software.
try to buy an 8051 with eeprom program memory.
which 8051 are you going to buy?
Title: Re: download program into the 8051
Post by: paulstreats on October 14, 2007, 08:20:32 AM
also some 8051's are just plain processors with no program space or data memory built in. you have to add these on yourself and figure out how to program plain eeproms
Title: Re: download program into the 8051
Post by: benji on October 14, 2007, 09:12:32 AM
i havnt decided yet which processor i would buy but surely its gonna be a 8051 core
ill get one with flash or eeprom built in to expirement with it
ill do check the datasheet for programming
i read somewhere about a monitor program called Paulmon 2
still not sure if i need it //
Title: Re: download program into the 8051
Post by: paulstreats on October 14, 2007, 10:02:12 AM
paulmon 2 is a program which you put into eprom/eeprom program space. it basically allows you to put your own program into the ram portion of the mcu device to make it easier to reprogram your own code while testing. when using this type of system because your own code is only stored in ram it will disappear when you turn the power off.
paulmon 2 is used as a debugger through hyper terminal, if you do use it then when you are satisfied with your own code you would erase paulmon2 and reprogram the eprom programming space with your own code.

its not necessary, it can just help to debug your program. i would try without it first, then if your code doesnt work as expected, use it to find out whats going on.
Title: Re: download program into the 8051
Post by: paulstreats on October 14, 2007, 10:30:41 AM
here is a long faq sheet on 8051

http://www.faqs.org/faqs/microcontroller-faq/8051/ (http://www.faqs.org/faqs/microcontroller-faq/8051/)
Title: Re: download program into the 8051
Post by: benji on October 14, 2007, 10:38:44 AM
thnks for the link lookslike it has intensive information
anyways i found a powerful 8051 core based micro (the 89CE558 by philips) and i did download its datasheet
the datasheet explains the hexcode format to download to the flash memory
but there is no information on how you connect it to the computer and what pc software you can use to transfer your program ,, which is the info im after,, im getting lost here
Title: Re: download program into the 8051
Post by: paulstreats on October 14, 2007, 11:40:11 AM
ic-prog will probably program it since its an 80c51

check out p57/58/59 of the datasheet for which pins are which

'http://www.ortodoxism.ro/datasheets/philips/P89CE558EBB.pdf (http://'http://www.ortodoxism.ro/datasheets/philips/P89CE558EBB.pdf)

if youre not happy with working out the pins etc.. you can buy a professional hardware programmer that comes with software to program it such as the mp-51 programmer or this http://rocky.digikey.com/scripts/ProductInfo.dll?Site=US&V=622&M=USB-ICP-80C51ISP (http://rocky.digikey.com/scripts/ProductInfo.dll?Site=US&V=622&M=USB-ICP-80C51ISP) / http://media.digikey.com/pdf/Data%20Sheets/Future%20Designs%20Inc%20PDFs/USB-ICP-80C51ISP.pdf (http://media.digikey.com/pdf/Data%20Sheets/Future%20Designs%20Inc%20PDFs/USB-ICP-80C51ISP.pdf)

a professionally made programmer will take the headache of working it out yourself away. the digikey one also comes with software made by phillips to read/ write to the flash eeprom, you have a phillips mcu so you cant go wrong
Title: Re: download program into the 8051
Post by: benji on October 14, 2007, 01:23:01 PM
yea i had this same datasheet and i did read these same pages
but the thing i dont know is that what is the software on the pc that sends the hex file?
thats all im asking for
i want to serial connect the micro to the pc using the max232