pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 398

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
PIC32MX FAMILY
EXAMPLE 20-7:
EXAMPLE 20-8:
DS61143A -page 396
/*
*/
/*
*/
void _IRQ(_PMP_VECTOR, ipl3) PMP_Interrupt_ISR(void)
{
}
The following code example illustrates a PMP interrupt configuration.
When the PMP interrupt is generated, the CPU will branch to the vector
assigned to PMP interrupt.
// Configure PMP for desired mode of operation
...
// Configure the PMP interrupts
IPC7SET = 0x0014;
IPC7SET = 0x0003;
IFS1CLR
IEC1SET
PMCONSET = 0x8000;
The following code example demonstrates a simple interrupt
service routine for PMP interrupts. The user’s code at this
vector should perform any application specific operations and must
clear the PMP interrupt status flag before exiting.
... perform application specific operations in response to the interrupt
IFS1CLR
= 0x0002;
= 0x0002;
= 0x00002;
PMP MODULE INTERRUPT INITIALIZATION
PMP ISR
// Set priority level=5
// Set subpriority level=3
// Could have also done this in single
// operation by assigning IPC7SET = 0x0017
// Clear the PMP interrupt status flag
// Enable PMP interrupts
// Enable PMP module
// Be sure to clear the PMP interrupt status
// flag before exiting the service routine.
Advance Information
© 2007 Microchip Technology Inc.

Related parts for pic32mx320f064h