I have to program 89c51 IC in assembly
How to write the program
from where to start the addressing
Since am using the IC for first time,can I get programs for ADC-DAC interfacing
Isn't the first thing to do when being new to something to try to read up on available information? Have you looked at the sample applications and application notes from Atmel and the Keil samples?
One way to start is to look at disassembled code. You can write inline assembly after the C code starts. That way the stack is already initialized.
Hmmm... machine-generated code (of any kind) is not usually a great style-guide for writing your own, human-readable code...
Unfortunately for the OP - who specifically wants to program in Assembler - very little (if any) of the Keil tutorial material (including examples) deals with programming in Assembler. It's all 'C'.
Take a look at this thread - which is specifically about books on Assembler: www.8052.com/.../169876
here are the links to "the bible" Chapter 1 - 80C51 Family Architecture: www.nxp.com/.../80C51_FAM_ARCH_1.pdf Chapter 2 - 80C51 Family Programmer's Guide and Instruction Set: www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf Chapter 3 - 80C51 Family Hardware Description: www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf
Thanks erik...:)
I had used the AT89S52 IC for one year. I use the C language to write the program. I search the examples of program from the Web and the examples are very helpful. If you want to use the function of ADC. Maybe you can select the AVR IC foe example ATmega32 and so on.
There are large numbers of 8051 chips with ADC, so there is no need to jump family.
which IC has ADC.....my college teacher suggested this IC....tell me if you know a better one than this.....
Your teacher probably wants you to learn how to interface an external ADC, for the simple reason that in real life, you will regularly need to interface external hardware.
For 8051 chips with ADC, just do a parametric search for supported microprocessors. The search function is available on this web site if you check under products.
Here: http://www.keil.com/dd/search_parm.asp
Disassembled C code may not be readable to some but it's what works. As to style issues - take that up with the compiler designers.
Hi, I did interfacing of 16*2LCD,ADC,DAC to 89c51. Want to know its initialization coding in C language. Also want to know verify my circuit diagram interfacing.
Hi,
I want to use a step up transformer giving 200volt output but this is not available in market. So can you suggest me an alternative to step up transformer.I wan to generate stimulating pulse from it...
Hi, Is it possible to generate Biphasic square pulse from microcontroller. If yes then how??..and what will be its coding like...