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
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