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

Setting a Port Pin to 0 on Power ON

I would like to set a port pin for example P1.7 to zero "0" on "Power On" condition. I would like to do it in init.a51 or startup.a51. Please let me know how to do it?

I am using keil UV2.37. Compiler 7.05



regards
Ganesh

Parents
  • "I would like to do it in init.a51 or startup.a51. Please let me know how to do it?"

    There is absolutely nothing special nor magic about startup.a51 - it's just an assembler source file like any other assembler source file.
    Thus, the way to control a port pin in startup.a51 is no different to the way to do it in any other assembler source file.

Reply
  • "I would like to do it in init.a51 or startup.a51. Please let me know how to do it?"

    There is absolutely nothing special nor magic about startup.a51 - it's just an assembler source file like any other assembler source file.
    Thus, the way to control a port pin in startup.a51 is no different to the way to do it in any other assembler source file.

Children
No data