Hi all, i want to use a interupt to switch to a function can i do that? ie when i receive data that is when i get 'RI' can i define a function such that i can switch to it whenever i get RI else the rest of the code continues ? Thanks Ajay
read "the bible" here are the links to "the bible" Chapter 1 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_ARCH_1.pdf chapter 2 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_PROG_GUIDE_1.pdf chapter 3 http://www.semiconductors.philips.com/acrobat/various/80C51_FAM_HARDWARE_1.pdf The question you ask inducates that need. Erik
You did not bother to select a toolset, so the above may be irrelevant. Erik
Hi erik malund, I am sorry i forgot to select tool set its Cx51 & 8051. i wrote it in a hurry. i am thankfull for the books on 8051 but i was hoping to know if i can write a code in cx51 that will allow me to switch on the interrupt. Thanks Ajay
i was hoping to know if i can write a code in cx51 that will allow me to switch on the interrupt I have no idea if you can "switch on the interrupt" because I do not know what you mean. Read up on interrupt in "the bible", the information there will answer your question. If, after studying "the bible" the answer is still not clear to you, come back with a clear question using verbage learned from "the bible". Answering questions as basic as yours does NOT constitute help, it will only give you 10 minutes of progress before you need ask the next question. Being familiar with "the bible" will give you answers much faster. Erik
You need to understand 2 things here: 1. How interrupts work on the 8051 hardware. The links Erik has provided give this information. 2. How to use the Keil tools to take advantage of the facilities provided by the 8051 hardware. For that, you need to start by reading the uVision Getting Started Guide, and working through the example projects in it. This will give you a proper introduction to the tools, how they work, and how to use them - rather than just jumping-in blindly at the deep end. (The uVision Getting Started Guide is available on the 'Books' tab in the 'Project' Window; The 'Books' window is also available via the 'Help' menu; failing all that, search for GS51.PDF in your Keil folder) You might also want to review the Tutorials at http://www.8052.com/tutorial.phtml And maybe look at some books: http://www.8052.com/books.phtml http://www.keil.com/books/8051books.asp And don't forget all the examples, Application Notes, etc in the Support section of this site!
HI Neil, Thanks for your advice I will definitely go through the books you recoended and also try out the examples Thank you again ajay