Results 1 to 10 of 10

Thread: at89s52 uC programming

  1. #1
    sharadbirmiwal
    Guest

    Default at89s52 uC programming

    i've this at89s52 uC that i've been trying to program for the past several days but haven't had any luck. i don't have a kit/board for programming and don't plan to use any such board either. from what i gather from the net/data sheet, it can be programmed without using such elaborate hw. has anybody programmed this particular uC (using free software only, pref for linux)?
    'cause in that case i have a few questions to ask..
    even otherwise, can the uC be programmed without a programmer board?

    tia
    sharad birmiwal
    delhi

  2. #2
    Rotem
    Guest

    Default at89s52 uC programming

    Hi,

    You can find free software that would fit your project at this address:

    www.ses.co.il

    under "Downloads".

    They also have a forum that might help you.

  3. #3
    sharadbirmiwal
    Guest

    Default

    this might seem as a very stupid question, but after reading so many things, i am a little confused. i know my uC is 8052/8052 derivative. you ask me to try "SES51C" which is a "8051 Editor,C Compiler, Assembler and Debugger". will this program work for me?

  4. #4
    sharadbirmiwal
    Guest

    Default

    anyways, i'm using sdcc and it's working fine, ie i get some ihx file from it. using a tool 'packihx' i can get an intel hex format file from that. my real problem is the programmer.
    i'm using sp89 (http://www.xs4all.nl/~sbolt/e-ser89.html) which should also program at89s52 (it supports at89s53). for programming the uC, since i don't have access to a programmer board, the circuit that i'm making is the one as given on the above link + connecting two capacitors and a 11.0592Mhz crystal at xtal1 and xtal2 and connecting Vcc (Vcc=5V) and Gnd.
    when i try to read program memory (+ generate checksum), they come out to be different on every run. chip erase doesn't work either.
    now i can't be sure if the circuit is sufficient or if there is some software issue.
    from what i get from the datasheet of at89s52 (http://www.atmel.com/dyn/resources/p...ts/doc1919.pdf), for serial programming (page 25), all they have are the 2 capacitors and clock connected, and arrows pointing in towards the uC at SCLK, MISO, MOSI and RESET pins. so i have that part made.
    for sp89 page, they hae a little circuit, and below the diagram, it says the uC with other circuitry, which i am assuming to be just the clock part.
    for the software part, when i run sp89, i use a clock speed of 0.3Mhz (<11.0592Mhz/16) and i've tried both -i52 and -i53 (for at89s8252s and at89s53s)

    all the help is appreciated. would you require any more information?
    thanks

  5. #5
    Junior Member
    Join Date
    Jan 2005
    Location
    mumbai india
    Posts
    1

    Default 89s52 programming

    download software called keil from www.keil.com
    you can write your program in C language in that

    to make programmer for 89s52 you can go to
    http://chaokhun.kmitl.ac.th/~kswichi...ble/index.html or
    http://chaokhun.kmitl.ac.th/~kswichi...SP-Pgm30a.html


    also a good link is
    http://chaokhun.kmitl.ac.th/~kswichit/

    amol
    iit-bombay

  6. #6
    sharadbirmiwal
    Guest

    Default

    hi
    thanks for the post. i've already tried running keil, but they download option or something was always gray. does it allow downloading, or only programming in c?
    also, have you tried programming this particular chip with this combination (programmer + keil's uVision)
    sharad birmiwal

  7. #7
    priyank_bolia
    Guest

    Default Which is the cheapest ATmel programmer

    I want to start embedded programming, where can I get a good general purpouse programmer and at what cost. and what are the other tools needed like evaluation boards & compilers as I don't have any idea of this field but I want to learn.

  8. #8
    sharadbirmiwal
    Guest

    Default

    got an email from the author sp89, it's not supposed to program my uC.. hehehe, silly me. anyways, i had started writing my own programmer for linux.. current status is that it can erase the chip.. pretty cool

    anyways, thans everybody
    sharad birmiwal

  9. #9
    Sunrom Technologies
    Guest

    Default 89 Series Programmer

    We have released 89 Series programmer under GNU at this popular site,


    http://chaokhun.kmitl.ac.th/~kswichit/89prog/index.html



    Regards,
    Sunrom Technologies[/url]

  10. #10
    Senior Member Cyborg devpriya's Avatar
    Join Date
    Jul 2005
    Location
    Seattle, WA, USA
    Posts
    275

    Default

    So guys finally which software would be the easiest to program 89S52?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •