Interrupts
Interrupts
Interrupts
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
An Example:<br />
• So, let’s work through an example:<br />
1/4/2010<br />
– Assume we have a switch attached to PD0 that will<br />
cause a high-to-low transition<br />
– We want the signal to interrupt the processor and<br />
execute our ISR<br />
• So, we must write a initialization routine that will<br />
allow this interrupt to occur<br />
Exercise: What must the first two instructions be for our program?<br />
22