Author Topic: download program into the 8051  (Read 3988 times)

0 Members and 1 Guest are viewing this topic.

Offline benjiTopic starter

  • Supreme Robot
  • *****
  • Posts: 832
  • Helpful? 0
download program into the 8051
« 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
good ol' BeNNy

Offline paulstreats

  • Supreme Robot
  • *****
  • Posts: 1,381
  • Helpful? 21
Re: download program into the 8051
« Reply #1 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?

Offline paulstreats

  • Supreme Robot
  • *****
  • Posts: 1,381
  • Helpful? 21
Re: download program into the 8051
« Reply #2 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

Offline benjiTopic starter

  • Supreme Robot
  • *****
  • Posts: 832
  • Helpful? 0
Re: download program into the 8051
« Reply #3 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 //
good ol' BeNNy

Offline paulstreats

  • Supreme Robot
  • *****
  • Posts: 1,381
  • Helpful? 21
Re: download program into the 8051
« Reply #4 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.

Offline paulstreats

  • Supreme Robot
  • *****
  • Posts: 1,381
  • Helpful? 21
Re: download program into the 8051
« Reply #5 on: October 14, 2007, 10:30:41 AM »

Offline benjiTopic starter

  • Supreme Robot
  • *****
  • Posts: 832
  • Helpful? 0
Re: download program into the 8051
« Reply #6 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
good ol' BeNNy

Offline paulstreats

  • Supreme Robot
  • *****
  • Posts: 1,381
  • Helpful? 21
Re: download program into the 8051
« Reply #7 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

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

Offline benjiTopic starter

  • Supreme Robot
  • *****
  • Posts: 832
  • Helpful? 0
Re: download program into the 8051
« Reply #8 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
good ol' BeNNy

 


Get Your Ad Here