i am using C51 compiler for my project.i downloaded C51 compiler from u'r web.i have a doubt that how to write programs for atmel89052 microcontroller i.e, the codes in writing programs.for eg.in calling tcon or any port how can i use the words either TCON or tcon.
thanks.
u'r web what is that? the microresistor web? what does that have to do with programming?
I can not help you when I do not understand your post.
one thing I can deduct is that you are totally wrong in calling tcon TCON is a SFR, not a function.
Erik
Have you ever considered taking a course in general C programming, reading the technical documentation for the C51 compiler, studying example programs supplied with the compiler, and reading the 8051 documentation, not to speak of the chip datasheets?
Example programs are in the Keil\C51\examples folder on your PC;
Other support materials - including examples, application notes, the Knowledge base, and tool Manuals - can be found by clicking on the 'Support' link.
There's a book list here: http://www.keil.com/books/8051books.asp And another here: www.8052.com/books.phtml
And with reviews here: accu.org/.../book_reviews
See also: www.mcu-memory.com/.../THE_FINAL_WORD_ON_THE_8051.pdf (1.5M download, very slow)
The fundamental reference document for the 8051 architecture is the so-called "bible" for the 8051:
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
www.mcu-memory.com/.../THE_FINAL_WORD_ON_THE_8051.pdf
It appears that this link may be broken, or that server just can't cope with a 1.5M download :-(
You could try googling for "Final Word 8051" to see if you can find it anywhere else with a better connection...
This is a website in China.I checked it and make sure that the link has been moved by the webmaster.So the OP has to google.
I have succeeded in crawlloading it. The download rate is somewhat lower than 30KBps, so it may time out some connections.
BTW, overall it is a very nice book, although anything named 'final word' should be looked on suspiciously.
"anything named 'final word' should be looked on suspiciously."
Indeed - especially as it must be well over 5 years old by now...
What I liked in that book is that it includes a fair amount of real implementation work, with detailed steps using state machines for, e.g., ad-hoc serial communication protocols, and has a good coverage of assembly/C interworking.
It is NOT a starters book, and still requires knowledge of the Bible set and the datasheets, but offer good advice and guidance along the path.
As the author, I can tell you the book is alot older than 5 years old, it was actually written in the mid 90's. I don't do embedded systems anymore, but I assume much of the content of my book still applies, based on the number of sites hosting it for free download.
BTW: The title seemed amusing at the time it was chosen and was intended to be tongue in cheek.