+ Post New Thread
Results 1 to 9 of 9
  1. #1
    Newbie level 4
    Points: 103, Level: 1

    Join Date
    Jul 2012
    Posts
    7
    Helped
    0 / 0
    Points
    103
    Level
    1

    flash AT89C51 IC via COM port

    Hello,

    I need to program an 8051 micro controller (AT89C51 brand new...I mean not pre-programmed). I made the hardware wire up to connect the IC via UART-COM port to my Computer.
    Can I flash this IC via this COM port connection...? Before programming when I connect via minicom (or hyper terminal) I could not see any messages from the device.is this OK ?
    Any help appreciated...any HW circuit diagram just to verify I made the set up correct..?
    Thanks in advance

    regards,
    prathee_m

  2. #2
    Newbie level 6
    Points: 159, Level: 2

    Join Date
    Jun 2012
    Posts
    11
    Helped
    4 / 4
    Points
    159
    Level
    2

    Re: flash AT89C51 IC via COM port

    Here is a basic circuit for communication with PC using RS-232.


    1 members found this post helpful.

    •   Alt12th July 2012, 08:26

      advertising

        
       

  3. #3
    Newbie level 4
    Points: 103, Level: 1

    Join Date
    Jul 2012
    Posts
    7
    Helped
    0 / 0
    Points
    103
    Level
    1

    Re: flash AT89C51 IC via COM port

    Thanks a lot, prongs1911...
    I think I made the circuit right as in the diagram...so when I connect this to Hyperterminal, should I see some messages...?(because when I tried I did not see any messages...I am using a brand new AT89C51 IC, not preprogrammed)
    Is this IC will come with some program in it by default...? How can I flash the IC...?



  4. #4
    Newbie level 6
    Points: 159, Level: 2

    Join Date
    Jun 2012
    Posts
    11
    Helped
    4 / 4
    Points
    159
    Level
    2

    Re: flash AT89C51 IC via COM port

    If the AT89c51 is not programmed then how will you be able to send/receive data or do anything?
    You can refer to The 8051 Microcontroller and Embedded Systems Using Assembly and C by Muhammad Ali Mazidi Janice Gillispie Mazidi Rolin D. McKinlay. It has a few examples and good explanation of concepts.
    Also try: http://www.engineersgarage.com/micro...T89C51-circuit


    1 members found this post helpful.

    •   Alt12th July 2012, 11:09

      advertising

        
       

  5. #5
    Newbie level 4
    Points: 103, Level: 1

    Join Date
    Jul 2012
    Posts
    7
    Helped
    0 / 0
    Points
    103
    Level
    1

    Re: flash AT89C51 IC via COM port

    Yes, that was the confusion for me on how to download the program...
    If the IC is not preprogrammed, how can I download my first program in to it...? Is it possible to download the hex file via serial port..?
    Or do I need some special HW connections for that...?

    Definitely, I will have a look in to this book as you suggested...
    Thanks a lot again...!



  6. #6
    Newbie level 6
    Points: 159, Level: 2

    Join Date
    Jun 2012
    Posts
    11
    Helped
    4 / 4
    Points
    159
    Level
    2

    Re: flash AT89C51 IC via COM port

    No, 89C51 requires a parallel programmer, it can not be programmed through serial port. Since you are starting your design, may be you should use 89S51/52 for which you can get cheap circuits and Software for In-System Programming from Net.


    1 members found this post helpful.

  7. #7
    Newbie level 4
    Points: 103, Level: 1

    Join Date
    Jul 2012
    Posts
    7
    Helped
    0 / 0
    Points
    103
    Level
    1

    Re: flash AT89C51 IC via COM port

    Ok. Yes, as a starting point I was looking for an IC that can be programmed using serial port. (because I dont have an option to use the parallel port in my laptop)
    I just searched on how to program 89S51/52 that supports serial programmer...But in most of the schematics I had seen, it requires a pre-programmed ATmega/89 IC to build an ISP interface...
    Here my problem is..can I connect this 89S51/52 (not a pre-programmed one) to my PC serial port and program it...(alos, I don't have a preprogrammed ATmega or any other IC)? Any circuit diagram, please...?



    •   Alt13th July 2012, 07:41

      advertising

        
       

  8. #8
    Newbie level 6
    Points: 159, Level: 2

    Join Date
    Jun 2012
    Posts
    11
    Helped
    4 / 4
    Points
    159
    Level
    2

    Re: flash AT89C51 IC via COM port

    If you manage to find a parallel port, here is a simple programmer circuit http://sourceforge.net/projects/ispprogrammer/
    But if you want to use serial port, check this out http://oisanjaya.wordpress.com/2010/...89s51-and-avr/
    I haven't used any of these circuits, so cant guarantee whether they work.
    I think it would be easier to buy a programmer.


    1 members found this post helpful.

  9. #9
    Newbie level 4
    Points: 103, Level: 1

    Join Date
    Jul 2012
    Posts
    7
    Helped
    0 / 0
    Points
    103
    Level
    1

    Re: flash AT89C51 IC via COM port

    Yes, I think it would be better to buy a serial-programmer...
    I just saw the details of Sunrom 89 usb programmer, but it needs Windows OS to use the applications
    I am having only Ubuntu Linux. Do you suggest some good programmer that works with Linux distributions...?
    Any hint whether the sunrom progrmmer can work with Linux...or any way to make it work...?



--[[ ]]--