Professional Documents
Culture Documents
Sistem Mikroprosesor - W7S1
Sistem Mikroprosesor - W7S1
Week 7 Session 1
Introduction
• Instructions that executed by microcontroller
stored in program memory
• By default, CPU will execute the instructions
from 0x0000 address and increases by one bit.
So 0x0000 and then 0x0001.
Instruction is addressed by the program counter.
• If there is program jump (branching, subroutine
call, or loop), the program will jump out from the
recent address to the jumping address.
Interrupt definition
• An interrupt is an exception, a change of
the normal progression, or interruption in
the normal flow of program execution.
• An interrupt is essentially a hardware
generated function call.
• Interrupts are caused by both internal and
external sources.
Interrupt definition
• An interrupt causes the normal program
execution to halt and for the interrupt
service routine (ISR) to be executed.
• At the conclusion of the ISR, normal
program execution is resumed at the point
where it was last.
Interrupt
Instruction 2
Instruction n
Interrupt routine
executed
Interrupt
Interrupt Vector