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

help needed

i am using keil for the first time
can anyone give me some quick knowledge abt hw to use keil i have to write programs for micromouse and have to complete my project in 2 days

tell me whether we need startup.a51

where should we write our code in the startup.a51 since i cant understand what is written in startup.a51

i am using at89c51ed2

Parents
  • General init of the chip hardware I would do in other modules.
    some exceptions, to be done at the very beginning of startup
    1) if you have a watchdog, it is recommended to disable it in startup and reenable it in main, The code in startup and the 'secret' module it calls before main is entered can be quite lenghty
    2) if you have a XRAM cnfiguration register and the default does not match your hardware you need to set it here.
    3) DO NOT reset port pins to avoid them being high after reset here, the duration of reset can be disastrous if you rely on a port pin being reset as default.

    There are other exceptions, the above is what I can think of off the bat.

    Erik

Reply
  • General init of the chip hardware I would do in other modules.
    some exceptions, to be done at the very beginning of startup
    1) if you have a watchdog, it is recommended to disable it in startup and reenable it in main, The code in startup and the 'secret' module it calls before main is entered can be quite lenghty
    2) if you have a XRAM cnfiguration register and the default does not match your hardware you need to set it here.
    3) DO NOT reset port pins to avoid them being high after reset here, the duration of reset can be disastrous if you rely on a port pin being reset as default.

    There are other exceptions, the above is what I can think of off the bat.

    Erik

Children