External Interrupts on 8051 - Questions & Answers

  • Thread starter Thread starter soul
  • Start date Start date
AI Thread Summary
The discussion centers on confusion regarding external interrupts in the 8051 microcontroller, specifically how to handle low-level situations before executing the RETI instruction in assembly language. Participants seek examples of assembly code to clarify this process and inquire about the workings of edge-triggered interrupts. There is a consensus that relevant information is available in the databook and application notes, which are essential resources for understanding interrupts. One user confirms that reviewing these documents helped clarify their understanding of the topic. Overall, the conversation emphasizes the importance of documentation for mastering external interrupts on the 8051.
soul
Messages
61
Reaction score
0
Hi eveyone,
I am taking a course about microcontrollers and 8051 family and now I am so confused about the external interrupts. Therefore, I have some questions to ask. First of all, as I know we need to remove the low level situation before the RETI instruction is executed. But how can we do this in assembly? Can anyone put some sort of code to make it clear?
Second one, how does edge-triggered interrupt work?
These are the basic questions that I want to learn. However, further information about the external interrupts are welcome.
 
Engineering news on Phys.org
Isn't this covered in the databook and app notes? It's been a long time since I wrote assembly for an 8051, but the documentation was pretty clear back then. Can you post a link to the databook for the 8051 variant you are using, and a link to an app note about using interrupts with it?
 
berkeman said:
Isn't this covered in the databook and app notes? It's been a long time since I wrote assembly for an 8051, but the documentation was pretty clear back then. Can you post a link to the databook for the 8051 variant you are using, and a link to an app note about using interrupts with it?

You are right berkeman, it is covered. I haven't understood this concept from my textbook but then I did what you said and the things that I didn't understand is clear now. Thanks for your help.
 
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Electromagnet magnetic field issue'
Hi Guys We are a bunch a mechanical engineers trying to build a simple electromagnet. Our design is based on a very similar magnet. However, our version is about 10 times less magnetic and we are wondering why. Our coil has exactly same length, same number of layers and turns. What is possibly wrong? PIN and bracket are made of iron and are in electrical contact, exactly like the reference design. Any help will be appreciated. Thanks. edit: even same wire diameter and coil was wounded by a...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top