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

porting C code from AVR to 8051

The code does alot of IO port operations.
Keil uses SFR and SBIT declarations whereas the AVR code uses defines to set IO port locations and
byte operations to set/clear/test bits. There has to be a better way than slogging through the text conversion and then slogging through the debug???

Parents
  • You may be new to electronics, but what made you think that it would be appropriate to inject this question into a discussion about porting code from an AVR to an 8051?

    In fact, what made you think it was appropriate to this forum at all?

    Before posting to any forum, you should always check if your question is appropriate to that forum.

    This forum is for the discussion of Keil products:
    http://www.keil.com/forum/

    So you would probably be better off finding a general electronics forum.

    At the very least, start a new thread - and explain how your requirement relates to Keil products.

Reply
  • You may be new to electronics, but what made you think that it would be appropriate to inject this question into a discussion about porting code from an AVR to an 8051?

    In fact, what made you think it was appropriate to this forum at all?

    Before posting to any forum, you should always check if your question is appropriate to that forum.

    This forum is for the discussion of Keil products:
    http://www.keil.com/forum/

    So you would probably be better off finding a general electronics forum.

    At the very least, start a new thread - and explain how your requirement relates to Keil products.

Children