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
  • Yes,

    From an organizational perspective, it's not all SPI: There is an intrinsic routine on the AVR and needs to be added to 8051, and time of day which runs on the host.

    Am left with two questions:
    1) What optimizations should be expected from a C compiler for small microprocessor? (a new thread?)
    2) Number of source files & their relation to the hardware and software structure?

Reply
  • Yes,

    From an organizational perspective, it's not all SPI: There is an intrinsic routine on the AVR and needs to be added to 8051, and time of day which runs on the host.

    Am left with two questions:
    1) What optimizations should be expected from a C compiler for small microprocessor? (a new thread?)
    2) Number of source files & their relation to the hardware and software structure?

Children
No data