EE2801: Foundations of Embedded SystemsLecture 24Review: InterruptA method to change program flow A very useful mechanism to response to time-critical event. •It draws attention of CPU to the event that needs to be taken care of when such an event does happen.How CPU responds to an interrupt?•Push PC and SR onto the stack•Execute the Interrupt Service Routine•Where to find the ISR? -- Interrupt vector table at 0xFFE0-0xFFFE•Restore SR and PC to return to the main program
EE2801: Foundations of Embedded SystemsLecture 24Mixed C and Assembly ProgrammingC: high level language, easy to learn, structured design and software development methods aid in creating reliable codeAssembly: low-level language, speed, efficiency, and direct control of the peripheral devices. Mixed C and Assembly: enjoy the benefits from both
has intentionally blurred sections.
Sign up to view the full version.