pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 199

no-image

pic32mx320f064h

Manufacturer Part Number
pic32mx320f064h
Description
64/100-pin General Purpose, 32-bit Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-40I/PT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
pic32mx320f064h-40V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064h-80V/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
pic32mx320f064hT-40I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
EXAMPLE 9-8:
9.6.2.2
After completing all useful code of the interrupt handler
routine, the original state of the Status and ErrorEPC
registers, along with the General Purpose Registers
saved on the stack, must be restored. (The Status and
ErrorEPC registers are located in the CPU; refer to
Section 2.0 of this manual for more information.)
EXAMPLE 9-9:
© 2007 Microchip Technology Inc.
// end of interrupt handler code
addu
lw
lw
lw
lw
lw
lw
lw
lw
lw
lw
lw
lw
lw
lw
lw
lw
lw
di
lw
mtc0
lw
mtc0
eret
rdpgpr sp, sp
mfc0
mfc0
srl
addiu
sw
mfc0
sw
ins
ins
mtc0
addu
// start interrupt handler code here
sp, s8, zero
Multi-Vector Mode Epilogue
t9, 72(sp)
t8, 68(sp)
t7, 64(sp)
t6, 60(sp)
t5, 56(sp)
t4, 52(sp)
t3, 48(sp)
t2, 44(sp)
t1, 40(sp)
t0, 36(sp)
v1, 32(sp)
v0, 28(sp)
a3, 24(sp)
a2, 20(sp)
a1, 16(sp)
a0, 12(sp)
s8, 8(sp)
k0, 0(sp)
k0, EPC
k0, 4(sp)
k0, Status
k0, Cause
k1, EPC
k0, k0, 0xa
sp, sp, -76
k1, 0(sp)
k1, Status
k1, 4(sp)
k1, k0, 10, 6
k1,zero, 1, 4
k1, Status
s8, sp, zero
PROLOGUE WITH A
DEDICATED GENERAL
PURPOSE REGISTER SET
IN ASSEMBLY CODE
EPILOGUE WITHOUT A
DEDICATED GENERAL
PURPOSE REGISTER SET
IN ASSEMBLY CODE
Advance Information
EXAMPLE 9-10:
// end of interrupt handler code
addu
di
lw
mtc0
lw
mtc0
eret
PIC32MX FAMILY
sp, s8, zero
k0, 0(sp)
k0, EPC
k0, 4(sp)
k0, Status
EPILOGUE WITH A
DEDICATED GENERAL
PURPOSE REGISTER SET
IN ASSEMBLY CODE
DS61143A-page 197

Related parts for pic32mx320f064h