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

87C552 PWM assemblly code

I am using Keil 2 to run a program (a servo driven robotic arm) for the 87C552, I downloaded an example for the PWM usage from Keil.com, in C which works grand, but the compiler does not recognise any PWM refernces in assemblly.

Why is this ?

Is there any way around it?

Parents
  • "I need to insert
    $NOMOD51
    Before including my SFR definition file in .a51 modules."


    The A51 Assembler has the standard 8051 registers & SFRs built-in.
    Therefore, you don't need an include file if all you use is those "standard" symbols.

    Obviously, if you then include a file which also defines those "built-in" symbols, you will get an error like "ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL!"

    The $NOMOD51 directive removes the built-in definitions:
    http://www.keil.com/support/man/docs/a51/a51_nomod51.htm

    Note that C51 does not predefine any SFRs.

Reply
  • "I need to insert
    $NOMOD51
    Before including my SFR definition file in .a51 modules."


    The A51 Assembler has the standard 8051 registers & SFRs built-in.
    Therefore, you don't need an include file if all you use is those "standard" symbols.

    Obviously, if you then include a file which also defines those "built-in" symbols, you will get an error like "ATTEMPT TO DEFINE AN ALREADY DEFINED SYMBOL!"

    The $NOMOD51 directive removes the built-in definitions:
    http://www.keil.com/support/man/docs/a51/a51_nomod51.htm

    Note that C51 does not predefine any SFRs.

Children