Presentation is loading. Please wait.

Presentation is loading. Please wait.

Interrupt, again! Lin Zhong ELEC424, Fall 2010.

Similar presentations


Presentation on theme: "Interrupt, again! Lin Zhong ELEC424, Fall 2010."— Presentation transcript:

1 Interrupt, again! Lin Zhong ELEC424, Fall 2010

2

3 IAR EWR interrupt Enable interrupt 3

4 IAR EWR interrupt Interrupt handler is a special subroutine 4

5 16-bit address for interrupt handler routine

6

7 Registers General purpose registers – R4-R15 in MSP430F169 Special purpose registers – Program counter (PC), stack pointer (SP), status (SR), … Pipeline registers ……… …….. Controller state registers

8 Copyright © 2007 Elsevier 3- Finite State Machine (FSM) Consists of: –State register that Store the current state and Load the next state at the clock edge –Combinational logic that Computes the next state Computes the outputs

9 Copyright © 2007 Elsevier 3- Finite State Machines (FSMs) Next state is determined by the current state and the inputs Two types of finite state machines differ in the output logic: –Moore FSM: outputs depend only on the current state –Mealy FSM: outputs depend on the current state and the inputs

10 Copyright © 2007 Elsevier 3- State Transition Diagrams Mealy FSM: arcs indicate input/output

11 Processor controller: a hierarchical FSM as a state can be a FSM too


Download ppt "Interrupt, again! Lin Zhong ELEC424, Fall 2010."

Similar presentations


Ads by Google