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???
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.
guess you guys cant (or wont) help me :(
In the list of threads, this one appears as "porting C code from AVR to 8051" - so nobody is going to guess that there might be a question about multimeters buried in it, are they?
Why don't you just start a new thread, properly, and ask your question there?