pic32mx320f064h Microchip Technology Inc., pic32mx320f064h Datasheet - Page 264

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
TABLE 12-11: CHANGE NOTICE PIN AND
12.2.10
The Change Notice module is enabled as a source of
interrupts via the respective CN interrupt enable bits:
• CNIE (IEC1<0>)
• CNIF (IFS1<0>)
The interrupt priority level bits and interrupt subpriority
level bits must also be configured:
• CNIP<2:0> (IPC6<20:18>)
• CNIS<1:0> (IPC6<17:16>)
To enable CN interrupts, the ON bit (CNCON<15>)
must = 1, one or more CN input pins must be enabled
and the Change Notice Interrupt Enable bit, CNIE,
must = 1.
DS61143A - page 262
Change
Notice
CN10
CN12
CN13
CN14
CN15
CN16
CN17
CN18
CN19
CN20
CN21
CN11
CN0
CN1
CN2
CN3
CN4
CN5
CN6
CN7
CN8
CN9
CNPUE10
CNPUE12
CNPUE13
CNPUE14
CNPUE15
CNPUE16
CNPUE17
CNPUE18
CNPUE19
CNPUE20
CNPUE21
CNPUE11
CNPUE0
CNPUE1
CNPUE2
CNPUE3
CNPUE4
CNPUE5
CNPUE6
CNPUE7
CNPUE8
CNPUE9
CHANGE NOTICE INTERRUPTS
Pull-Up
Weak
PULL-UP TABLE
Port Pin
RC14
RC13
RB15
RD13
RD14
RD15
RG6
RG7
RG8
RG9
RB0
RB1
RB2
RB3
RB4
RB5
RD4
RD5
RD6
RD7
RF4
RF5
Device
64-Pin
48
47
16
15
14
13
12
30
52
53
54
55
31
32
11
4
5
6
8
Pin#
Advance Information
100-Pin
Device
74
73
25
24
23
22
21
20
10
12
14
44
81
82
83
84
49
50
80
47
48
11
To prevent possible spurious interrupts when configur-
ing change notice interrupts, the following steps are
recommended:
1.
2.
3.
4.
5.
6.
7.
8.
9.
The port must be read to clear the mismatch condition
and, then CN interrupt flag, CNIF (IFS1<0>), can be
cleared in software. Failing to read the port before
attempting to clear the CNIF bit may not allow the CNIF
bit to be cleared.
In addition to enabling the CN interrupt, an Interrupt
Service Routine (ISR), is required. Example 12-1 and
Example 12-2 show a partial code example of an ISR.
Note:
Disable CPU interrupts.
Set desired CN I/O pin as input by setting corre-
sponding TRISx register bits = 1.
Note: If the I/O pin is shared with an analog
peripheral, it may be necessary to set the corre-
sponding AD1PCFG bit = 1 to ensure that the
I/O pin is a digital input.
Enable change notice module
ON (CNCON<15>) = 1.
Enable individual CN input pin(s); enable
optional pull-up(s).
Read corresponding PORT registers to clear
mismatch condition on CN input pins.
Configure the CN interrupt priority, CNIP<2:0>,
and subpriority CNIS<1:0>.
Clear CN interrupt flag, CNIF = 0.
Enable CN interrupt enable, CNIE = 1.
Enable CPU interrupts.
It is the user’s responsibility to clear the
corresponding interrupt flag bit before
returning from an ISR.
© 2007 Microchip Technology Inc.

Related parts for pic32mx320f064h