I am trying to make a timer circuit with the help of 89c52 micro controller. I have one assembly language program, but the programming kit supports only to C language. I want to translate assembly program to C program so that I can use it for the above mentioned micro controller. If anyone of you know how to translate, then please do tell me. Thank you. If any other information you need related to the circuit please ask about it.
If the compiler supports inline assembly, just use that:
#asm
<your assembly language program here>
#endasm
Otherwise, the only way is to write a timer program using your knowledge of the 89C52 architecture. (It’s a lot easier in assembly than in C, since C has very little to do with the chip.)
If the compiler supports inline assembly, just use that:
#asm
<your assembly language program here>
#endasm
Otherwise, the only way is to write a timer program using your knowledge of the 89C52 architecture. (It’s a lot easier in assembly than in C, since C has very little to do with the chip.)
References :
I don’t know of any program that would automatically convert from assembly to C especially for a specific chip. You will probably need t write your program in C in the first place. You need to find some instructions on how to use C to interface with the chip, it might come with the chip or you may need to search online.
The long and short of it is, you will need to write a new C program.
References :