This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

startup.asm

Hi,
I am starting studying 8051 uC and want to learn 8051 embedded programming, I have silabs 8051f340dk to use.
Just want to ask this, why I should use startup.asm? I've seen a lot of program did use this startup.asm, the bootloader has one and the firmware also has startup.asm loaded.
I am just a little confused since my very basic program that don't use startup.asm run smoothly.
How does startup.asm affect my firmware if I'm gonna use it?

thanks
gi

Parents
  • Well explained. Thank you sir.
    Is there a need for my firmware to use Init.a51? Some firmware code I have seen they initialize variables(bit, data, idata, pdata, xdata, and far) in there C code not in Init.a51 I may think this file is optional, is my understanding correct?

    I will document this for future use for beginners like me that is eager to learn uC programming.

    thanks
    gp

Reply
  • Well explained. Thank you sir.
    Is there a need for my firmware to use Init.a51? Some firmware code I have seen they initialize variables(bit, data, idata, pdata, xdata, and far) in there C code not in Init.a51 I may think this file is optional, is my understanding correct?

    I will document this for future use for beginners like me that is eager to learn uC programming.

    thanks
    gp

Children