KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD
KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD
KING'S IT WORLD
Would you like to react to this message? Create an account in a few clicks or log in to continue.

KING'S IT WORLD


 
HomeHome  GalleryGallery  SearchSearch  Latest imagesLatest images  RegisterRegister  Log inLog in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
kings it world text ad
KINGSITWORLD CALENDAR
Follow me on G+
KINGSITWORLD WEATHER
Latest topics
» QURAN MAJEED KE TAFSEER
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeMon Aug 20, 2012 2:59 am by YOUSUFHALI

» PHY301 CIRCUIT THEORY REFERENCE BOOK
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeWed Jul 25, 2012 11:36 am by shabbir1915

» MTH202 ASSIGNMENT NO 3 SOLUVED
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeMon Jun 11, 2012 9:51 am by jaffarhussain

» Retrieve the DTC In the Jewel Module of 1995 Ford
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeThu May 31, 2012 11:51 am by obd2tool

» How you can Obvious the Check Engine Light on the
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeThu May 31, 2012 11:43 am by obd2tool

» send free sms and send free sms update on facebook
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeTue May 15, 2012 8:33 pm by rizwan269

» United Bank Limited (UBL) - Fee Deposit
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeThu May 10, 2012 3:33 pm by irumnaz

» PHOTO MIXER SOFTWARE
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeFri Apr 20, 2012 10:02 am by sacredwkb

» Entrepreneurship Survey
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeThu Mar 08, 2012 2:20 pm by Admin

» Fall 2011 Semester Result Announced
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeThu Mar 08, 2012 2:19 pm by Admin

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
kings it world text ad
Social bookmarking
Social bookmarking reddit      

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website
visitors counter
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Image
Powered by website analytics technology.
Keywords
paper 2011 2010 term MGMT611 final assignment MGT502 HRM611
kings it world text ad
FLAG COUNTER
free counters
LIVE TRAFFIC

 

 CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010

Go down 
AuthorMessage
Admin
Admin
Admin


Scorpio
Posts : 638
Points : 2155
Reputation : 19
Join date : 2010-05-15
Age : 36
Location : islamabad

CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Empty
PostSubject: CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010   CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010 Icon_minitimeSun Jan 02, 2011 9:41 am

CS401 IDEA SOL BY SOME ONE
Interrupts are asynchronous and unpredictable. Asynchronous means that the interrupts occur, independent of the working of the processor, i.e. independent of the instruction currently executing. Synchronous events are those that occur side by side with another activity. Interrupts must be asynchronous as they are generated by the external world which is unaware of the happenings inside the processor.
True interrupts that occur in real time are asynchronous with the execution. Also it is unpredictable at which time an interrupt will come. The two concepts of being unpredictable and asynchronous are overlapping .Unpredictable means the time at which an interrupt will come cannot be predicted, while asynchronous means that the interrupt has nothing to do with the currently executing instruction and the current state of the processor. Hardware interrupts are the real interrupts generated by the external world as discussed above. Software interrupts on the contrary are not generated from outside the processor. They just provide
an extended far call mechanism. Far call allows us to jump anywhere in the whole megabyte of memory. To return from the target we place both the segment and offset on the stack. Software interrupts show a similar behavior. Hardware interrupts , the third category that we will refer to simply as interrupts, are program control interruption based on an external hardware event (external to the CPU). These interrupts generally have nothing at all to do with the instructions currently executing; instead, some event, such as pressing a key on the keyboard or a time out on a timer chip, informs the CPU that a device needs some attention. The CPU interrupts the currently executing program, services the device, and then returns control back to the program. hardware interrupts are generally asynchronous , meaning they can occur at any time and rarely do they occur at the same spot in a program. An interrupt is an asynchronous procedure call the CPU generates in response to an external hardware signal. However there is a single pin outside the processor called the INT pin that is used by external hardware to generate interrupts. There are many external devices that need the processor’s attention like the keyboard, hard disk, floppy disk, sound card. All of them need real time interrupts at some point in their operation. when the printer is busy printing we cannot send it more data. As soon as it gets free from the previous job it interrupts the processor to inform that it is free now. There are many other examples where the processor needs to be informed of an external event. If the processor actively monitors all devices instead of being automatically interrupted then it there won’t be any time to do meaningful work.


Question#2
Read the following lines of code. It will read the mask register from port 0×21 and then
set the 2nd bit in the register. As soon as it is written back to port 0×21; Keyboard will be
disabled that is connected to IRQ1.
in al, 0×21 ; read interrupt mask register
or al, 2 ; set bit for IRQ1
out 0×21, al ; write back mask register
Take out line 2 i.e.
or al, 2
modify it to solve the following parts
1. set bit to disable IRQ7
Sol:
or al, 128
2. set bit to disable IRQ0
Sol:
or al, 1
3. set bit to disable IRQ5
Sol:
or al, 32
4. enable IRQ1, IRQ2, IRQ7 and disable the rest.
Sol:
and al, 0 // first enable all to get desired result
or al, 121 // disable IRQ0, IRQ3, IRQ4, IRQ5, IRQ6
5. enable all IRQs
Sol:
and al, 0

Back to top Go down
 
CS401 ASSIGNMENT NO 3 IDEA SOLUTION FALL 2010
Back to top 
Page 1 of 1
 Similar topics
-
» CS401 ASSIGNMENT NO 4 SOLUTION FALL 2010
» psy101 assignment idea solution fall 2010
» MGT501 ASSIGNMENT NO 2 SOLUTION FALL 2010
» CS101 ASSIGNMENT NO 3 SOLUTION FALL 2010
» cs201 assignment no 3 solution fall 2010

Permissions in this forum:You cannot reply to topics in this forum
KING'S IT WORLD :: EDUCATION :: ASSIGNMENTS-
Jump to: