DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Assembly (http://www.daniweb.com/forums/forum125.html)
-   -   Interrupts (http://www.daniweb.com/forums/thread24625.html)

992982386 May 30th, 2005 11:48 am
Interrupts
 
Can anyone help me understand how to implement interrupts on a Motorola processor? Is there a preset list of possible interrupts and I choose them by setting certain control bits in preset registers? For example, how would I write a program to enter a routine whenever I pulse a high signal (using a push button switch on a breadboard) to one of the pins of the processor? I would also like the same button to stop the routine. Some sample code would be appreciated also.

tonakai Jun 12th, 2005 3:44 pm
Re: Interrupts
 
i didn't use motorola, but interrupts don't change much from chip to chip i think.
so if you want to make an interrupt, then you need to connect your button to an interrupt pin, then you need to write your code in the proper location of memory. that's all i think.
another way in 80x86 series chip that you signal to IR pin (interrupt request), then send your interrupt address (which your code is located) to the databus.
in motorola they will be similar, i think.


All times are GMT -4. The time now is 10:18 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC