Interrupt Sources
Interrupt Response and Latency
Interrupt Response
Interrupt Response
-
-
Hardware Sequence
Hardware Sequence
Note: some actions occur simultaneously, none are interruptible
Note: some actions occur simultaneously, none are interruptible
CPU Action
CPU Action
Description
Description
T
T
ST0
ST0
AH
AH
AL
AL
PH
PH
PL
PL
AR1
AR1
AR0
AR0
DP
DP
ST1
ST1
DBSTAT
DBSTAT
IER
IER
PC(
PC(
msw
msw
)
)
PC(
PC(
lsw
lsw
)
)
Registers
Registers
→
→
stack
stack
14 Register words auto saved
14 Register words auto saved
0
0
→
→
IFR (bit)
IFR (bit)
Clear corresponding IFR bit
Clear corresponding IFR bit
0
0
→
→
IER (bit)
IER (bit)
Clear corresponding IER bit
Clear corresponding IER bit
1
1
→
→
INTM/DBGM
INTM/DBGM
Disable global
Disable global
ints
ints
/debug events
/debug events
Vector
Vector
→
→
PC
PC
Loads PC with
Loads PC with
int
int
vector address
vector address
Clear other status bits
Clear other status bits
Clear LOOP, EALLOW, IDLESTAT
Clear LOOP, EALLOW, IDLESTAT
Interrupt Latency
Interrupt Latency
Latency
Latency
Depends on wait states, ready, INTM, etc.
Depends on wait states, ready, INTM, etc.
Maximum latency:
Maximum latency:
Recognition
Recognition
delay (3), SP
delay (3), SP
alignment (1),
alignment (1),
vector placed
vector placed
in PC
in PC
4
4
Minimum latency (to when real work occurs in the ISR):
Minimum latency (to when real work occurs in the ISR):
¾
¾
Internal interrupts: 14 cycles
Internal interrupts: 14 cycles
¾
¾
External interrupts: 16 cycles
External interrupts: 16 cycles
Get vector
Get vector
(3 reg.
(3 reg.
pairs
pairs
saved)
saved)
3
3
PF1/PF2/D1
PF1/PF2/D1
of ISR
of ISR
instruction
instruction
(3 reg. pairs
(3 reg. pairs
saved)
saved)
3
3
Save
Save
return
return
address
address
1
1
D2/R1/R2 of
D2/R1/R2 of
ISR
ISR
instruction
instruction
3
3
Sync ext.
Sync ext.
signal
signal
(ext.
(ext.
interrupt
interrupt
only)
only)
2
2
cycles
Above is for PIE enabled or disabled
Above is for PIE enabled or disabled
Assumes ISR in
Assumes ISR in
internal RAM
internal RAM
Internal
Internal
interrupt
interrupt
occurs
occurs
here
here
ext.
ext.
interrupt
interrupt
occurs
occurs
here
here
ISR
ISR
instruction
instruction
executed
executed
on next
on next
cycle
cycle
C28x - Reset and Interrupts
4 - 13
Summary of Contents for C28 Series
Page 64: ...Summary 3 16 C28x Peripheral Registers Header Files ...
Page 78: ...Interrupt Sources 4 14 C28x Reset and Interrupts ...
Page 218: ...Lab 9 DSP BIOS 9 22 C28x Using DSP BIOS ...
Page 244: ...Lab 10 Programming the Flash 10 26 C28x System Design ...
Page 273: ...Appendix A eZdsp F2812 C28x Appendix A eZdsp F2812 A 1 ...
Page 276: ...Appendix P2 Expansion Interface A 4 C28x Appendix A eZdsp F2812 ...
Page 277: ...Appendix P4 P8 P7 I O Interface C28x Appendix A eZdsp F2812 A 5 ...
Page 278: ...Appendix A 6 C28x Appendix A eZdsp F2812 ...
Page 279: ...Appendix P5 P9 Analog Interface C28x Appendix A eZdsp F2812 A 7 ...
Page 282: ...Appendix A 10 C28x Appendix A eZdsp F2812 TP1 TP2 Test Points ...