Showing posts with label Interupt. Show all posts
Showing posts with label Interupt. Show all posts

25 Sept 2012

what is mean by interrupt in microprocessor 8085 ?

In very simple sense interrupt in microprocessor 8085 means "order to do  new work with pausing its running work". I think this sentence "order to do  new work with pausing its running work" is bit confusing. let I give you an example to ease the matter.

Step 1 . let you are seating on a chair read a very interesting story book which you like / in microprocessor let processor doing program of arrange ascending order of 1000 number.

Step2 . Now you heard the telephone ring / in microprocessor now let it got request of interrupt means it get INTR (Interrupt Request) signal.

Step 3 . You pick-up the phone and say hallow / in microprocessor send acknowledgement of getting interrupt request to send INTA  (Interrupt Acknowledgement ).

Step 4 . You heard that your friend told you please shutdown the main door because it is open / in microprocessor you got the ISR (Interrupt service routine where the order of new work is written).

Step 5 . Now you put a page pointer between the page which you read / in microprocessor it store the address of current running program, where it interrupted, in stack pointer register.

Step 6 . Now you go there and shutdown the main door and return back to your chair and start reading the story book from where i put the page pointer. / in microprocessor now it process the ISR and after completion of work It pull the stored address of main programmed from stack and execute again.

So in above mansion step which you give the clear picture of how Interrupt is processed in microprocessor 8085.

9 Sept 2012

What is the function of the two DMA signals HOLD and HLDA?

DMA mode of data transfer is fastest and pins 39 and 38 (HOLD and HLDA) become active
only in this mode.
When DMA is required, the DMA controller IC (8257) sends a 1 to pin 39 of 8085. At
the end of the current instruction cycle of the microprocessor it issues a1 to pin 38 of
the controller. After this the bus control is totally taken over by the controller.
When 8085 is active and 8257 is idle, then the former is MASTER and the latter is
SLAVE, while the roles of 8085 and 8257 are reversed when 8085 is idle and 8257 becomes
active.