Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
EC522_8051_09

EC522_8051_09

Ratings: (0)|Views: 12|Likes:
Published by Anurag Bansal

More info:

Published by: Anurag Bansal on Jun 30, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

11/19/2012

pdf

text

original

 
8051
INTERRUPTS
 
8051 Interrupts
An
interrupt
is some event which interrupts normal programexecution.Normal program flow is sequential, being altered only by thoseinstructions which expressly cause program flow to deviate insome way. Interrupts give us a mechanism to "put on hold" thenormal program flow, execute a subroutine, and then resumenormal program flow as if we had never left it.This subroutine, called an interrupt handler, is only executedwhen a certain event (interrupt) occurs. The event may be one ofthe timers "overflowing," receiving a character via the serial port,transmitting a character via the serial port, or one of two "externalevents." The 8051 may be configured so that when any of theseevents occur the main program is temporarily suspended andcontrol passed to a special section of code which presumablywould execute some function related to the event that occured.Once complete, control would be returned to the original program.The main program never even knows it was interrupted.
 
 
Assume a 16k program is executing many subroutines.Program is required to automatically toggle the P3.0 portevery time timer 0 overflows.
 

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->