70005144e 1314001 PDF
70005144e 1314001 PDF
70005144e 1314001 PDF
The device names, pin counts, memory sizes and peripheral availability of each device are listed in Table 1. The following pages show the devices’ pinout diagrams.
Op Amp/Comparators
External Interrupts
16-Bit Timers (T1)
Output Compare
DMA Channels
10/12-Bit ADC
Input Capture
32-Bit Timers
SRAM Bytes
ADC Inputs
Packages
Security
CTMU
UART
SENT
PWM
CAN
Pins
SPI
I2C
Device
dsPIC33EV32GM002 0
32K 4K
dsPIC33EVXXXGM00X/10X FAMILY
dsPIC33EV32GM102 1
dsPIC33EV64GM002 0
64K 8K
dsPIC33EV64GM102 1 SPDIP, SOIC,
4 5 2 4 4 3x2 2 2 1 2 1 11 3/4 1 Intermediate Y 21 3 28
dsPIC33EV128GM002 0 SSOP, QFN-S
128K 8K
dsPIC33EV128GM102 1
dsPIC33EV256GM002 0
256K 16K
dsPIC33EV256GM102 1
dsPIC33EV32GM004 0
32K 4K
dsPIC33EV32GM104 1
dsPIC33EV64GM004 0
64K 8K
dsPIC33EV64GM104 1
4 5 2 4 4 3x2 2 2 1 2 1 24 4/5 1 Intermediate Y 35 3 44 TQFP, QFN
dsPIC33EV128GM004 0
128K 8K
dsPIC33EV128GM104 1
dsPIC33EV256GM004 0
256K 16K
dsPIC33EV256GM104 1
dsPIC33EV32GM006 0
32K 4K
dsPIC33EV32GM106 1
dsPIC33EV64GM006 0
64K 8K
dsPIC33EV64GM106 1
DS70005144E-page 3
Pin Diagrams
28-Pin SPDIP/SOIC/SSOP(1,2,3)
MCLR 1 28 AVDD
OA2OUT/AN0/C2IN4-/C4IN3-/RPI16/RA0 2 27 AVSS
OA2IN+/AN1/C2IN1+/RPI17/RA1 3 26 RPI47/PWM1L1/T5CK/RB15
dsPIC33EV128GM002/102
dsPIC33EV256GM002/102
dsPIC33EV32GM002/102
dsPIC33EV64GM002/102
PGED3/OA2IN-/AN2/C2IN1-/SS1/RPI32/CTED2/RB0 4 25 RPI46/PWM1H1/T3CK/RB14
PGEC3/OA1OUT/AN3/C1IN4-/C4IN2-/RPI33/CTED1/RB1 5 24 RPI45/PWM1L2/CTPLS/RB13
PGEC1/OA1IN+/AN4/C1IN3-/C1IN1+/C2IN3-/RPI34/RB2 6 23 RPI44/PWM1H2/RB12
PGED1/OA1IN-/AN5/C1IN1-/CTMUC/RP35/RB3 7 22 RP43/PWM1L3/RB11
VSS 8 21 RP42/PWM1H3/RB10
OSC1/CLKI/AN32/RPI18/RA2 9 20 VCAP
OSC2/CLKO/RPI19/RA3 10 19 VSS
FLT32/RP36/RB4 11 18 OA5IN-/AN27/C5IN1-/ASDA1/SDI1/RP41/RB9
OA5IN+/AN24/C5IN3-/C5IN1+/RP20/T1CK/RA4 12 17 AN26/CVREF1O/ASCL1/SDO1/RP40/T4CK/RB8
VDD 13 16 OA5OUT/AN25/C5IN4-/C4IN1+/SCK1/RP39/INT0/RB7
PGED2/SDA1/RP37/RB5 14 15 PGEC2/SCL1/RP38/RB6
Note 1: The RPn/RPIn pins can be used by any remappable peripheral with some limitation. See Section 11.5 “Peripheral
Pin Select (PPS)” for available peripherals and information on limitations.
2: Every I/O port pin (RAx-RGx) can be used as a Change Notification pin (CNAx-CNGx). See Section 11.0 “I/O
Ports” for more information.
3: If the op amp is selected when OPAEN (CMxCON<10>) = 1, the OAx input is used; otherwise, the ANx input is
used.
28-Pin QFN-S(1,2,3,4)
OA2OUT/AN0/C2IN4-/C4IN3-/RPI16/RA0
OA2IN+/AN1/C2IN1+/RPI17/RA1
RPI46/PWM1H1/T3CK/RB14
RPI47/PWM1L1/T5CK/RB15
MCLR
AVDD
AVSS
28 27 26 25 24 23 22
PGED3/OA2IN-/AN2/C21N1-/SS1/RPI32/CTED2/RB0 1 21 RPI45/PWM1L2/CTPLS/RB13
PGEC3/OA1OUT/AN3/C1IN4-/C4IN2-/RPI33/CTED1/RB1 2 20 RPI44/PWM1H2/RB12
PGEC1/OA1IN+/AN4/C1IN3-/C1IN1+/C2IN3-/RPI34/RB2 3 dsPIC33EV 32GM002/102 19 RP43/PWM1L3/RB11
dsPIC33EV 64GM002/102
PGED1/OA1IN-/AN5/C1IN1-/CTMUC/RP35/RB3 4 dsPIC33EV 128GM002/102 18 RP42/PWM1H3/RB10
VSS 5 dsPIC33EV256GM002/102 17 VCAP
OSC1/CLKI/AN32/RPI18/RA2 6 16 VSS
OSC2/CLKO/RPI19/RA3 7 15 OA5IN-/AN27/C5IN1-/ASDA1/SDI1/RP41/RB9
8 9 10 11 12 13 14
OA 5 IN+/AN24/C5IN3-/C5 IN1+/RP20/T1CK/RA4
OA5OUT/AN25/C5IN4-/C4IN1+/SCK1/RP39/INT0/RB7
PGED2/SDA1/RP37/RB5
PGEC2/SCL1/RP38/RB6
FLT32/RP36/RB4
VDD
AN26/CVREF1O/ASCL1/SDO1/RP40/T4CK/RB8
Note 1: The RPn/RPIn pins can be used by any remappable peripheral with some limitation. See Section 11.5 “Peripheral
Pin Select (PPS)” for available peripherals and information on limitations.
2: Every I/O port pin (RAx-RGx) can be used as a Change Notification pin (CNAx-CNGx). See Section 11.0 “I/O
Ports” for more information.
3: If the op amp is selected when OPAEN (CMxCON<10>) = 1, the OAx input is used; otherwise, the ANx input is
used.
4: The metal pad at the bottom of the device is not connected to any pins and is recommended to be connected to
VSS externally.
44-Pin TQFP(1,2,3)
OA5IN+/AN24/C5IN3-/C5IN1+/SDO1/RP20/T1CK/RA4
AN26/CVREF1O/ASCL1/RP40/T4CK/RB8
OA5OUT/AN25/C5IN4-/RP39/INT0/RB7
AN31/CVREF2O/RPI53/RC5
AN30/CVREF+/RPI52/RC4
PGED2/SDA1/RP37/RB5
PGEC2/SCL1/RP38/RB6
AN29/SCK1/RPI51/RC3
AN28/SDI1/RPI25/RA9
VDD
VSS
44
43
42
41
40
39
38
37
36
35
34
OA5IN-/AN27/C5IN1-/ASDA1/RP41/RB9 1 33 FLT32/RP36/RB4
AN53/RP54/RC6 2 32 RPI24/RA8
AN52/RP55/RC7 3 31 OSC2/CLKO/RPI19/RA3
AN51/RP56/RC8 4 30 OSC1/CLKI/AN32/RPI18/RA2
AN54/RP57/RC9 5
dsPIC33EV32GM004/104 29 VSS
dsPIC33EV64GM004/104
VSS 6 dsPIC33EV128GM004/104 28 VDD
VCAP 7 dsPIC33EV256GM004/104 27 OA3IN+/AN8/C3IN3-/C3IN1+/RPI50/U1RTS/BCLK1/FLT3/RC2
RP42/PWM1H3/RB10 8 26 OA3IN-/AN7/C3IN1-/C4IN1-/RP49/RC1
RP43/PWM1L3/RB11 9 25 OA3OUT/AN6/C3IN4-/C4IN4-/C4IN1+/RP48/RC0
RPI44/PWM1H2/RB12 10 24 PGED1/OA1IN-/AN5/C1IN1-/CTMUC/RP35/RB3
RPI45/PWM1L2/CTPLS/RB13 11 23 PGEC1/OA1IN+/AN4/C1IN3-/C1IN1+/C2IN3-/RPI34/RB2
12
13
14
15
16
17
18
19
20
21
22
MCLR
RPI46/PWM1H1/T3CK/RB14
AN56/RA10
AN55/RA7
RPI47/PWM1L1/T5CK/RB15
OA2OUT/AN0/C2IN4-/C4IN3-/RPI16/RA0
OA2IN+/AN1/C2IN1+/RPI17/RA1
PGED3/OA2IN-/AN2/C2IN1-/SS1/RPI32/CTED2/RB0
PGEC3/OA1OUT/AN3/C1IN4-/C4IN2-/RPI33/CTED1/RB1
AVDD
AVSS
Note 1: The RPn/RPIn pins can be used by any remappable peripheral with some limitation. See Section 11.5 “Peripheral
Pin Select (PPS)” for available peripherals and information on limitations.
2: Every I/O port pin (RAx-RGx) can be used as a Change Notification pin (CNAx-CNGx). See Section 11.0 “I/O
Ports” for more information.
3: If the op amp is selected when OPAEN (CMxCON<10>) = 1, the OAx input is used; otherwise, the ANx input is
used.
OA5IN+/AN24/C5IN3-/C5IN1+/SDO1/RP20/T1CK/RA4
44-Pin QFN(1,2,3,4)
AN26/CVREF1O/ASCL1/RP40/T4CK/RB8
OA5OUT/AN25/C5IN4-/RP39/INT0/RB7
AN31/CVREF2O/RPI53/RC5
AN30/CVREF+/RPI52/RC4
PGED2/SDA1/RP37/RB5
PGEC2/SCL1/RP38/RB6
AN29/SCK1/RPI51/RC3
AN28/SDI1/RPI25/RA9
VDD
VSS
44 43 42 41 40 39 38 37 36 35 34
OA5IN-/AN27/C5IN1-/ASDA1/RP41/RB9 1 33 FLT32/RP36/RB4
AN53/RP54/RC6 2 32 RPI24/RA8
AN52/RP55/RC7 3 31 OSC2/CLKO/RPI19/RA3
AN51/RP56/RC8 4 30 OSC1/CLKI/AN32/RPI18/RA2
dsPIC33EV32GM004/104
AN54/RP57/RC9 5 dsPIC33EV64GM004/104 29 VSS
VSS 6
dsPIC33EV128GM004/104 28 VDD
dsPIC33EV256GM004/104
VCAP 7 27 OA3IN+/AN8/C3IN3-/C3IN1+/RPI50/U1RTS/BCLK1/FLT3/RC2
RP42/PWM1H3/RB10 8 26 OA3IN-/AN7/C3IN1-/C4IN1-/RP49/RC1
RP43/PWM1L3/RB11 9 25 OA3OUT/AN6/C3IN4-/C4IN4-/C4IN1+/RP48/RC0
RPI44/PWM1H2/RB12 10 24 PGED1/OA1IN-/AN5/C1IN1-/CTMUC/RP35/RB3
RPI45/PWM1L2/CTPLS/RB13 11 23 PGEC1/OA1IN+/AN4/C1IN3-/C1IN1+/C2IN3-/RPI34/RB2
12 13 14 15 16 17 18 19 20 21 22
RPI46/PWM1H1/T3CK/RB14
OA2IN+/AN1/C2IN1+/RPI17/RA1
PGEC3/OA1OUT/AN3/C1IN4-/C4IN2-/RPI33/CTED1/RB1
AN56/RA10
AN55/RA7
RPI47/PWM1L1/T5CK/RB15
OA2OUT/AN0/C2IN4-/C4IN3-/RPI16/RA0
PGED3/OA2IN-/AN2/C2IN1-/SS1/RPI32/CTED2/RB0
MCLR
AVSS
AVDD
Note 1: The RPn/RPIn pins can be used by any remappable peripheral with some limitation. See Section 11.5 “Peripheral
Pin Select (PPS)” for available peripherals and information on limitations.
2: Every I/O port pin (RAx-RGx) can be used as a Change Notification pin (CNAx-CNGx). See Section 11.0 “I/O
Ports” for more information.
3: If the op amp is selected when OPAEN (CMxCON<10>) = 1, the OAx input is used; otherwise, the ANx input is
used.
4: The metal pad at the bottom of the device is not connected to any pins and is recommended to be connected to
VSS externally.
64-Pin TQFP(1,2,3)
OA5IN-/AN27//C5IN1-/ASDA1/RP41/RB9
RPI45/PWM1L2/CTPLS/RB13
RPI44/PWM1H2/RB12
RP42/PWM1H3/RB10
RP43/PWM1L3/RB11
AN54/RP57/RC9
AN51/RP56/RC8
AN52/RP55/RC7
AN53/RP54/RC6
AN56/RA10
RPI96/RF0
RP70/RD6
RP69/RD5
RP97/RF1
VCAP
VDD
64
63
62
61
60
59
58
57
56
54
53
52
51
50
49
55
AN55/RA7 1 48 AN26/CVREF1O/ASCL1/RP40/T4CK/RB8
RPI46/PWM1H1/T3CK/RB14 2 47 RPI61/RC13
RPI47/PWM1L1/T5CK/RB15 3 46 OA5OUT/AN25/C5IN4-/RP39/INT0/RB7
AN19/RP118/RG6 4 45 AN48/CVREF2O/RPI58/RC10
AN18/RPI119/RG7 5 44 PGEC2/SCL1/RP38/RB6
AN17/RP120/RG8 6 43 PGED2/SDA1/RP37/RB5
MCLR 7 dsPIC33EV32GM006/106 42 RPI72/RD8
AN16/RPI121/RG9 8 dsPIC33EV64GM006/106 41 VSS
VSS 9 dsPIC33EV128GM006/106 40 OSC2/CLKO/RPI63/RC15
VDD 10 dsPIC33EV256GM006/106 39 OSC1/CLKI/AN49/RPI60/RC12
AN10/RPI28/RA12 11 38 VDD
AN9/RPI27/RA11 12 37 AN31/RPI53/RC5
OA2OUT/AN0/C2IN4-/C4IN3-/RPI16/RA0 13 36 AN30/CVREF+/RPI52/RC4
OA2IN+/AN1/C2IN1+/RPI17/RA1 14 35 AN29/SCK1/RPI51/RC3
PGED3/OA2IN-/AN2/C2IN1-/SS1/RPI32/CTED2/RB0 15 34 AN28/SDI1/RPI25/RA9
PGEC3/OA1OUT/AN3/C1IN4-/C4IN2-/RPI33/CTED1/RB1 16 33 OA5IN+/AN24/C5IN3-/C5IN1+/SDO1/RP20/T1CK/RA4
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
AVDD
VDD
AVSS
OA3IN+/AN8/C3IN3-/C3IN1+/RPI50/U1RTS/BCLK1/FLT3/RC2
AN11/C1IN2-/U1CTS/FLT4/RC11
VSS
AN12/C2IN2-/C5IN2-/U2RTS/BCLK2/FLT5/RE12
AN13/C3IN2-/U2CTS/FLT6/RE13
AN14/RPI94/FLT7/RE14
AN15/RPI95/FLT8/RE15
FLT32/RP36/RB4
PGEC1/OA1IN+/AN4/C1IN3-/C1IN1+/C2IN3-/RPI34/RB2
PGED1/OA1IN-/AN5/C1IN1-/(CTMUC)/RP35/RB3
OA3OUT/AN6/C3IN4-/C4IN4-/C4IN1+/RP48/RC0
RPI24/RA8
OA3IN-/AN7/C3IN1-/C4IN1-/RP49/RC1
Note 1: The RPn/RPIn pins can be used by any remappable peripheral with some limitation. See Section 11.5 “Peripheral
Pin Select (PPS)” for available peripherals and information on limitations.
2: Every I/O port pin (RAx-RGx) can be used as a Change Notification pin (CNAx-CNGx). See Section 11.0 “I/O
Ports” for more information.
3: If the op amp is selected when OPAEN (CMxCON<10>) = 1, the OAx input is used; otherwise, the ANx input is
used.
64-Pin QFN(1,2,3,4)
OA5IN-/AN27/C5IN1-/ASDA1/RP41/RB9
RPI45/PWM1L2/CTPLS/RB13
RPI44/PWM1H2/RB12
RP42/PWM1H3/RB10
RP43/PWM1L3/RB11
AN54/ RP57/RC9
AN51/RP56/RC8
AN52/RP55/RC7
AN53/RP54/RC6
AN56/RA10
RPI96/RF0
RP70/RD6
RP69/RD5
RP97/RF1
VCAP
VDD
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
AN55/RA7 1 48 AN26/CVREF1O/ASCL1/RP40/T4CK/RB8
RPI46/PWM1H1/T3CK/RB14 2 47 RPI61/RC13
RPI47/PWM1L1/T5CK/RB15 3 46 OA5OUT/AN25/C5IN4-/RP39/INT0/RB7
AN19/RP118/RG6 4 45 AN48/CVREF2O/RPI58/RC10
AN18/RPI119/RG7 5 44 PGEC2/SCL1/RP38/RB6
AN17/RP120/RG8 6 dsPIC33EV32GM006/106 43 PGED2/SDA1/RP37/RB5
MCLR 7 42 RPI72/RD8
dsPIC33EV64GM006/106
AN16/RPI121/RG9 8 41 VSS
VSS 9 dsPIC33EV128GM006/106 40 OSC2/CLKO/RPI63/RC15
VDD 10 dsPIC33EV256GM006/106 39 OSC1/CLKI/AN49/RPI60/RC12
AN10/RPI28/RA12 11 38 VDD
AN9/RPI27/RA11 12 37 AN31/RPI53/RC5
OA2OUT/AN0/C2IN4-/C4IN3-/RPI16/RA0 13 36 AN30/CVREF+/RPI52/RC4
OA2IN+/AN1/C2IN1+/RPI17/RA1 14 35 AN29/SCK1/RPI51/RC3
PGED3/OA2IN-/AN2/C2IN1-/SS1/RPI32/CTED2/RB0 15 34 AN28/SDI1/RPI25/RA9
PGEC3/OA1OUT/AN3/C1IN4-/C4IN2-/RPI33/CTED1/RB1 16 33 OA5 IN+/AN24/C5IN3-/C5IN1+/SDO1/RP20/T1CK/RA4
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PGEC1/OA1IN+/AN4/C1IN3-/C1IN1+/C2IN3-/RPI34/RB2
PGED1/OA1IN-/AN5/C1IN1-/(CTMUC)/RP35/RB3
OA3OUT/AN6/C3IN4-/C4IN4-/C4IN1+/RP48/RC0
OA3IN-/AN7/C3IN1-/C4IN1-/RP49/RC1
OA3IN+/AN8/C3IN3-/C3IN1+/RPI50/U1RTS/BCLK1/FLT3/RC2
AN11/C1IN2-/U1CTS/FLT4/RC11
AN12/C2IN2-/C5IN2-/U2RTS/BCLK2/FLT5/RE12
AN13/C3IN2-/U2CTS/FLT6/RE13
AN14/RPI94/FLT7/RE14
AN15/RPI95/FLT8/RE15
RPI24/RA8
FLT32/RP36/RB4
AVDD
VDD
AVSS
VSS
Note 1: The RPn/RPIn pins can be used by any remappable peripheral with some limitation. See Section 11.5 “Peripheral
Pin Select (PPS)” for available peripherals and information on limitations.
2: Every I/O port pin (RAx-RGx) can be used as a Change Notification pin (CNAx-CNGx). See Section 11.0 “I/O
Ports” for more information.
3: If the op amp is selected when OPAEN (CMxCON<10>) = 1, the OAx input is used; otherwise, the ANx input is
used.
4: The metal pad at the bottom of the device is not connected to any pins and is recommended to be connected to
VSS externally.
Table of Contents
1.0 Device Overview ........................................................................................................................................................................ 13
2.0 Guidelines for Getting Started with 16-Bit Digital Signal Controllers .......................................................................................... 17
3.0 CPU ............................................................................................................................................................................................ 21
4.0 Memory Organization ................................................................................................................................................................. 31
5.0 Flash Program Memory .............................................................................................................................................................. 83
6.0 Resets ....................................................................................................................................................................................... 91
7.0 Interrupt Controller ..................................................................................................................................................................... 95
8.0 Direct Memory Access (DMA) .................................................................................................................................................. 109
9.0 Oscillator Configuration ............................................................................................................................................................ 123
10.0 Power-Saving Features ............................................................................................................................................................ 133
11.0 I/O Ports ................................................................................................................................................................................... 143
12.0 Timer1 ...................................................................................................................................................................................... 173
13.0 Timer2/3 and Timer4/5 ............................................................................................................................................................ 175
14.0 Deadman Timer (DMT) ............................................................................................................................................................ 181
15.0 Input Capture............................................................................................................................................................................ 189
16.0 Output Compare ....................................................................................................................................................................... 193
17.0 High-Speed PWM Module ....................................................................................................................................................... 199
18.0 Serial Peripheral Interface (SPI)............................................................................................................................................... 221
19.0 Inter-Integrated Circuit (I2C) ..................................................................................................................................................... 229
20.0 Single-Edge Nibble Transmission (SENT) ............................................................................................................................... 237
21.0 Universal Asynchronous Receiver Transmitter (UART) ........................................................................................................... 247
22.0 Controller Area Network (CAN) Module (dsPIC33EVXXXGM10X Devices Only).................................................................... 253
23.0 Charge Time Measurement Unit (CTMU) ................................................................................................................................ 279
24.0 10-Bit/12-Bit Analog-to-Digital Converter (ADC) ...................................................................................................................... 285
25.0 Op Amp/Comparator Module ................................................................................................................................................... 301
26.0 Comparator Voltage Reference................................................................................................................................................ 313
27.0 Special Features ...................................................................................................................................................................... 317
28.0 Instruction Set Summary .......................................................................................................................................................... 327
29.0 Development Support............................................................................................................................................................... 337
30.0 Electrical Characteristics .......................................................................................................................................................... 341
31.0 High-Temperature Electrical Characteristics ............................................................................................................................ 403
32.0 Characteristics for Industrial/Extended Temperature Devices (-40°C to +125°C).................................................................... 413
33.0 Characteristics for High-Temperature Devices (+150°C) ......................................................................................................... 439
34.0 Packaging Information.............................................................................................................................................................. 461
Appendix A: Revision History............................................................................................................................................................. 485
Index ................................................................................................................................................................................................. 487
The Microchip Web Site ..................................................................................................................................................................... 495
Customer Change Notification Service .............................................................................................................................................. 495
Customer Support .............................................................................................................................................................................. 495
Product Identification System............................................................................................................................................................. 497
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Referenced Sources
This device data sheet is based on the following
individual chapters of the “dsPIC33/PIC24 Family
Reference Manual”, which are available from the
Microchip web site (www.microchip.com). The follow-
ing documents should be considered as the general
reference for the operation of a particular module or
device feature:
• “Introduction” (DS70573)
• “CPU” (DS70359)
• “Data Memory” (DS70595)
• “dsPIC33E/PIC24E Program Memory” (DS70000613)
• “Flash Programming” (DS70609)
• “Interrupts” (DS70000600)
• “Oscillator” (DS70580)
• “Reset” (DS70602)
• “Watchdog Timer and Power-Saving Modes” (DS70615)
• “I/O Ports” (DS70000598)
• “Timers” (DS70362)
• “CodeGuard™ Intermediate Security” (DS70005182)
• “Deadman Timer (DMT)” (DS70005155)
• “Input Capture” (DS70000352)
• “Output Compare” (DS70005157)
• “High-Speed PWM”(DS70645)
• “Analog-to-Digital Converter (ADC)” (DS70621)
• “Universal Asynchronous Receiver Transmitter (UART)” (DS70000582)
• “Serial Peripheral Interface (SPI)” (DS70005185)
• “Inter-Integrated Circuit™ (I2C™)” (DS70000195)
• “Enhanced Controller Area Network (ECAN™)”(DS70353)
• “Direct Memory Access (DMA)” (DS70348)
• “Programming and Diagnostics” (DS70608)
• “Op Amp/Comparator” (DS70000357)
• “Device Configuration” (DS70000618)
• “Charge Time Measurement Unit (CTMU)” (DS70661)
• “Single-Edge Nibble Transmission (SENT) Module” (DS70005145)
PORTA
CPU
16
Refer to Figure 3-1 for CPU diagram details.
PORTB
PORTC
Power-up
Timer
OSC1/CLKI Oscillator PORTD
Timing Start-up
Generation Timer
POR/BOR PORTE
MCLR
Watchdog 16
Timer/
Deadman
VDD, VSS Timer PORTF
AVDD, AVSS
Remappable
Pins
Op Amp/ PORTS
CTMU PWM Timers Comparator SPI1/2 UART1/2
Peripheral Modules
FIGURE 2-1: RECOMMENDED The placement of this capacitor should be close to the
MINIMUM CONNECTION VCAP pin. It is recommended that the trace length
should not exceed one-quarter inch (6 mm).
VDD 10 µF 0.1 µF
Tantalum Ceramic 2.4 Master Clear (MCLR) Pin
The MCLR pin provides two specific device
VCAP
VSS
VDD
R
functions:
R1
MCLR • Device Reset
• Device Programming and Debugging
C
dsPIC33EV During device programming and debugging, the
resistance and capacitance that can be added to the
VSS VDD
pin must be considered. Device programmers and
debuggers drive the MCLR pin. Consequently,
VDD VSS
0.1 µF 0.1 µF specific voltage levels (VIH and VIL) and fast signal
AVDD
AVSS
VDD
VSS
NOTES:
X Address Bus
Y Data Bus
X Data Bus
16 16 16
16
Interrupt Data Latch Data Latch
PSV and Table
Controller Data Access Y Data X Data
8 16
24 Control Block RAM RAM
Address Address 16 24
24 Latch Latch
16 16
Y Address Bus
24 PCU PCH PCL X RAGU
Program Counter 16 X WAGU
Stack Loop
Control Control
Address Latch Logic Logic
Y AGU
Program Memory
16 EA MUX
Data Latch
16
ROM Latch
16 24
IR
24
Literal Data
16
16 x 16
W Register Array
16
16 16
Divide
DSP Support
Engine
16-Bit ALU
Peripheral
Modules
D15 D0
D15 D0
D15 D0
W0 (WREG) W0 W0
W1 W1 W1
W2 W2 W2
W3 W3 W3
W4 W4 W4
DSP Operand W5 W5 W5 Alternate
Registers W6 W6 W6 Working/Address
Working/Address Registers
Registers W7 W7 W7
W8 W8 W8
DSP Address W9 W9 W9
Registers W10 W10 W10
W11 W11 W11
W12 W12 W12
W13 W13 W13
Frame Pointer/W14 W14 W14
Stack Pointer/W15 0
PUSH.s and POP.s Shadows
SPLIM 0 Stack Pointer Limit
Nested DO Stack
DSP ACCA
Accumulators(1) ACCB
PC23 PC0
0 0 Program Counter
7 0
TBLPAG Data Table Page Address
9 0
DSRPAG X Data Space Read Page Address
15 0
RCOUNT REPEAT Loop Counter
15 0
DCOUNT DO Loop Counter and Stack
23 0
0 DOSTART 0 DO Loop Start Address and Stack
23 0
0 DOEND 0 DO Loop End Address and Stack
15 0
CORCON CPU Core Control Register
SRL
OA OB SA SB OAB SAB DA DC IPL2 IPL1 IPL0 RA N OV Z C STATUS Register
Note 1: The IPL<2:0> bits are concatenated with the IPL3 bit (CORCON<3>) to form the CPU Interrupt Priority
Level. The value in parentheses indicates the IPL if IPL3 = 1. User interrupts are disabled when IPL3 = 1.
2: The IPL<2:0> Status bits are read-only when the NSTDIS bit (INTCON1<15>) = 1.
3: A data write to the SR register can modify the SA and SB bits by either a data write to SA and SB or by
clearing the SAB bit. To avoid a possible SA or SB bit write race condition, the SA and SB bits should not
be modified using the bit operations.
Note 1: The IPL<2:0> bits are concatenated with the IPL3 bit (CORCON<3>) to form the CPU Interrupt Priority
Level. The value in parentheses indicates the IPL if IPL3 = 1. User interrupts are disabled when IPL3 = 1.
2: The IPL<2:0> Status bits are read-only when the NSTDIS bit (INTCON1<15>) = 1.
3: A data write to the SR register can modify the SA and SB bits by either a data write to SA and SB or by
clearing the SAB bit. To avoid a possible SA or SB bit write race condition, the SA and SB bits should not
be modified using the bit operations.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Flash Memory
(10944 instructions) 0x00577E
0x005780
Device Configuration
0x0057FE
0x005800
Unimplemented
(Read ‘0’s)
0x7FFFFE
0x800000
Executive Code Memory
0x800BFE
0x800C00
Reserved
0x800F80
Configuration Memory Space
Reserved
0xF9FFFE
0xFA0000
Write Latches 0xFA0002
0xFA0004
Reserved
0xFEFFFE
0xFF0000
DEVID
0xFF0002
0xFF0004
Reserved
0xFFFFFE
Unimplemented
(Read ‘0’s)
0x7FFFFE
0x800000
Executive Code Memory
0x800BFE
0x800C00
Reserved
0x800F80
Configuration Memory Space
Reserved
0xF9FFFE
0xFA0000
Write Latches 0xFA0002
0xFA0004
Reserved
0xFEFFFE
0xFF0000
DEVID
0xFF0002
0xFF0004
Reserved
0xFFFFFE
Unimplemented
(Read ‘0’s)
0x7FFFFE
0x800000
Executive Code Memory
0x800BFE
0x800C00
Reserved
0x800F80
0x800FFE
0x801000
Reserved
0xF9FFFE
0xFA0000
Write Latches
0xFA0002
0xFA0004
Reserved
0xFEFFFE
0xFF0000
DEVID
0xFF0002
0xFF0004
Reserved
0xFFFFFE
Unimplemented
(Read ‘0’s)
0x7FFFFE
0x800000
Executive Code Memory
0x800BFE
0x800C00
Reserved
0x800F80
0x800FFE
0x801000
Reserved
0xF9FFFE
0xFA0000
Write Latches
0xFA0002
0xFA0004
Reserved
0xFEFFFE
0xFF0000
DEVID
0xFF0002
0xFF0004
Reserved
0xFFFFFE
4.2 Data Address Space All word accesses must be aligned to an even address.
Misaligned word data fetches are not supported, there-
The dsPIC33EVXXXGM00X/10X family CPU has a fore, care must be taken when mixing byte and word
separate, 16-bit wide data memory space. The Data operations or translating from 8-bit MCU code. If a
Space (DS) is accessed using separate Address Gen- misaligned read or write is attempted, an address error
eration Units (AGUs) for read and write operations. The trap is generated. If the error occurred on a read, the
data memory maps, which are presented by device instruction underway is completed. If the error occurred
family and memory size, are shown in Figure 4-6 and on a write, the instruction is executed but the write does
Figure 4-8. not occur. In either case, a trap is then executed,
All Effective Addresses (EAs) in the data memory space allowing the system and/or user application to examine
are 16 bits wide and point to bytes within the DS. This the machine state prior to execution of the address
arrangement gives a Base Data Space address range of Fault.
64 Kbytes or 32K words. All byte loads into any W register are loaded into the
The Base Data Space address is used in conjunction LSB; the MSB is not modified.
with a Data Space Read or Write Page register A Sign-Extend (SE) instruction is provided to allow user
(DSRPAG or DSWPAG) to form an Extended Data applications to translate 8-bit signed data to 16-bit
Space (EDS), which has a total address range of signed values. Alternatively, for 16-bit unsigned data,
16 Mbytes. user applications can clear the MSB of any W register
dsPIC33EVXXXGM00X/10X family devices implement by executing a Zero-Extend (ZE) instruction on the
up to 20 Kbytes of data memory (4 Kbytes of data appropriate address.
memory for Special Function Registers and up to
16 Kbytes of data memory for RAM). If an EA points to 4.2.3 SFR SPACE
a location outside of this area, an all zero word or byte The first 4 Kbytes of the Near Data Space, from 0x0000
is returned. to 0x0FFF, is primarily occupied by Special Function
Registers (SFRs). These are used by the
4.2.1 DATA SPACE WIDTH dsPIC33EVXXXGM00X/10X family core and peripheral
The data memory space is organized in byte- modules for controlling the operation of the device.
addressable, 16-bit wide blocks. Data is aligned in SFRs are distributed among the modules that they
data memory and registers as 16-bit words, but all DS control and are generally grouped together by module.
EAs resolve to bytes. The Least Significant Bytes Much of the SFR space contains unused addresses;
(LSBs) of each word have even addresses, while the these are read as ‘0’.
Most Significant Bytes (MSBs) have odd addresses.
Note: The actual set of peripheral features and
4.2.2 DATA MEMORY ORGANIZATION interrupts varies by the device. Refer to the
AND ALIGNMENT corresponding device tables and pinout
diagrams for device-specific information.
To maintain backward compatibility with PIC® MCU
devices and improve Data Space memory usage
4.2.4 NEAR DATA SPACE
efficiency, the dsPIC33EVXXXGM00X/10X family
instruction set supports both word and byte operations. The 8-Kbyte area, between 0x0000 and 0x1FFF, is
As a consequence of byte accessibility, all the Effective referred to as the Near Data Space. Locations in this
Address calculations are internally scaled to step space are directly addressable through a 13-bit abso-
through word-aligned memory. For example, the core lute address field within all memory direct instructions.
recognizes that Post-Modified Register Indirect Additionally, the whole DS is addressable using MOV
Addressing mode [Ws++] results in a value of Ws + 1 instructions, which support Memory Direct Addressing
for byte operations and Ws + 2 for word operations. mode with a 16-bit address field, or by using Indirect
Addressing mode using a Working register as an
A data byte read, reads the complete word that con-
Address Pointer.
tains the byte, using the LSb of any EA to determine
which byte to select. The selected byte is placed onto
the LSB of the data path. That is, data memory and reg-
isters are organized as two parallel, byte-wide entities
with shared (word) address decode, but separate write
lines. Data byte writes only write to the corresponding
side of the array or register that matches the byte
address.
MSB LSB
Address 16 Bits Address
MSB LSB
0x0001 0x0000
4-Kbyte SFR Space
SFR Space
0x0FFF 0x0FFE
0x1001 0x1000
8-Kbyte
Near Data
4-Kbyte 0x17FF 0x17FE
Space
SRAM Space 0x1801 0x1800
0x1FFF 0x1FFE
0x2001 0x2000
0x7FFF 0x7FFE
0x8000
0x8001
X Data Optionally
Unimplemented (X) Mapped
into Program
Memory Space
(via PSV)
0xFFFF 0xFFFE
MSB LSB
Address 16 Bits Address
MSB LSB
0x0001 0x0000
4-Kbyte SFR Space
SFR Space
0x0FFF 0x0FFE
0x1001 0x1000
8-Kbyte
Near Data
X Data RAM (X) Space
0x2FFF 0x2FFE
0x3001 0x3000
0x7FFF 0x7FFE
0x8000
0x8001
X Data Optionally
Unimplemented (X) Mapped
into Program
Memory Space
(via PSV)
0xFFFF 0xFFFE
MSB LSB
Address 16 Bits Address
MSB LSB
0x0001 0x0000
4-Kbyte
SFR Space
SFR Space
0x0FFF 0x0FFE
0x1001 0x1000 8-Kbyte
Near Data
Space
0x1FFF 0x1FFE
X Data RAM (X)
0x2001 0x2000
16-Kbyte
SRAM Space
0x2FFF 0x2FFE
0x3001 0x3000
0x4FFF 0x4FFE
0x5001 0x5000
0x7FFF 0x7FFE
0x8001 0x8000
X Data Optionally
Mapped
Unimplemented (X) into Program
Memory Space
(via PSV)
0xFFFF 0xFFFE
4.2.5 X AND Y DATA SPACES The Y DS is used in concert with the X DS by the MAC
class of instructions (CLR, ED, EDAC, MAC, MOVSAC,
The dsPIC33EVXXXGM00X/10X family core has two
MPY, MPY.N and MSC) to provide two concurrent data
Data Spaces: X and Y. These Data Spaces can be
read paths.
considered either separate (for some DSP instructions)
or as one unified, linear address range (for MCU Both the X and Y Data Spaces support Modulo
instructions). The Data Spaces are accessed using two Addressing mode for all instructions, subject to
Address Generation Units (AGUs) and separate data addressing mode restrictions. Bit-Reversed Addressing
paths. This feature allows certain instructions to mode is only supported for writes to the X Data Space.
concurrently fetch two words from RAM, thereby All data memory writes, including in DSP instructions,
enabling efficient execution of DSP algorithms, such as view Data Space as combined X and Y address space.
Finite Impulse Response (FIR) filtering and Fast The boundary between the X and Y Data Spaces is
Fourier Transform (FFT). device-dependent and is not user-programmable.
The X DS is used by all instructions and supports all
addressing modes. The X DS has separate read and
write data buses. The X read data bus is the read data
path for all instructions that view the DS as combined X
and Y address space. It is also the X data prefetch path
for the dual operand DSP instructions (MAC class).
dsPIC33EVXXXGM00X/10X FAMILY
0000
W9 0012 W9 0000
W10 0014 W10 0000
W11 0016 W11 0000
W12 0018 W12 0000
W13 001A W13 0000
W14 001C W14 0000
W15 001E W15 0800
SPLIM 0020 SPLIM xxxx
ACCAL 0022 ACCAL xxxx
ACCAH 0024 ACCAH xxxx
ACCAU 0026 Sign Extension of ACCA<39> ACCAU xxxx
ACCBL 0028 ACCBL xxxx
ACCBH 002A ACCBH xxxx
ACCBU 002C Sign Extension of ACCB<39> ACCBU xxxx
PCL 002E Program Counter Low Word Register — 0000
PCH 0030 — — — — — — — — — Program Counter High Word Register 0000
DSRPAG 0032 — — — — — — Data Space Read Page Register 0001
DSWPAG 0034 — — — — — — — Data Space Write Page Register
DS70005144E-page 41
0001
RCOUNT 0036 REPEAT Loop Counter Register 0 xxxx
DCOUNT 0038 DCOUNT<15:1> 0 xxxx
DOSTARTL 003A DOSTARTL<15:1> 0 xxxx
DOSTARTH 003C — — — — — — — — — — DOSTARTH<5:0> 00xx
DOENDL 003E DOENDL<15:1> — xxxx
Legend: x = unknown value on Reset; — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
TABLE 4-1: CPU CORE REGISTER MAP (CONTINUED)
DS70005144E-page 42
dsPIC33EVXXXGM00X/10X FAMILY
All
SFR
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Reset
Name
s
dsPIC33EVXXXGM00X/10X FAMILY
TMR5HLD 0116 Timer5 Holding Register (For 32-bit operations only) 0000
TMR5 0118 Timer5 Register 0000
PR4 011A Period Register 4 FFFF
PR5 011C Period Register 5 FFFF
T4CON 011E TON — TSIDL — — — — — — TGATE TCKPS1 TCKPS0 T32 — TCS — 0000
T5CON 0120 TON — TSIDL — — — — — — TGATE TCKPS1 TCKPS0 — — TCS — 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
DS70005144E-page 43
DS70005144E-page 44
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-3: INPUT CAPTURE 1 THROUGH INPUT CAPTURE 4 REGISTER MAP
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
IC1CON1 0140 — — ICSIDL ICTSEL2 ICTSEL1 ICTSEL0 — — — ICI1 ICI0 ICOV ICBNE ICM2 ICM1 ICM0 0000
IC1CON2 0142 — — — — — — — IC32 ICTRIG TRIGSTAT — SYNCSEL4 SYNCSEL3 SYNCSEL2 SYNCSEL1 SYNCSEL0 000D
IC1BUF 0144 Input Capture 1 Buffer Register xxxx
IC1TMR 0146 Input Capture 1 Timer Register 0000
IC2CON1 0148 — — ICSIDL ICTSEL2 ICTSEL1 ICTSEL0 — — — ICI1 ICI0 ICOV ICBNE ICM2 ICM1 ICM0 0000
IC2CON2 014A — — — — — — — IC32 ICTRIG TRIGSTAT — SYNCSEL4 SYNCSEL3 SYNCSEL2 SYNCSEL1 SYNCSEL0 000D
IC2BUF 014C Input Capture 2 Buffer Register xxxx
IC2TMR 014E Input Capture 2 Timer Register 0000
IC3CON1 0150 — — ICSIDL ICTSEL2 ICTSEL1 ICTSEL0 — — — ICI1 ICI0 ICOV ICBNE ICM2 ICM1 ICM0 0000
IC3CON2 0152 — — — — — — — IC32 ICTRIG TRIGSTAT — SYNCSEL4 SYNCSEL3 SYNCSEL2 SYNCSEL1 SYNCSEL0 000D
IC3BUF 0154 Input Capture 3 Buffer Register xxxx
IC3TMR 0156 Input Capture 3 Timer Register 0000
IC4CON1 0158 — — ICSIDL ICTSEL2 ICTSEL1 ICTSEL0 — — — ICI1 ICI0 ICOV ICBNE ICM2 ICM1 ICM0 0000
IC4CON2 015A — — — — — — — IC32 ICTRIG TRIGSTAT — SYNCSEL4 SYNCSEL3 SYNCSEL2 SYNCSEL1 SYNCSEL0 000D
IC4BUF 015C Input Capture 4 Buffer Register xxxx
IC4TMR 015E Input Capture 4 Timer Register 0000
Legend: x = unknown value on Reset; — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
I2C1CON1 0200 I2CEN — I2CSIDL SCLREL STRICT A10M DISSLW SMEN GCEN STREN ACKDT ACKEN RCEN PEN RSEN SEN 1000
I2C1CON2 0202 — — — — — — — — — PCIE SCIE BOEN SDAHT SBCDE AHEN DHEN 1000
2013-2016 Microchip Technology Inc.
I2C1STAT 0204 ACKSTAT TRSTAT ACKTIM — — BCL GCSTAT ADD10 IWCOL I2COV D_A P S R_W RBF TBF 0000
I2C1ADD 0206 — — — — — — I2C1 Address Register 0000
I2C1MSK 0208 — — — — — — I2C1 Address Mask Register 0000
I2C1BRG 020A Baud Rate Generator Register 0000
I2C1TRN 020C — — — — — — — — I2C1 Transmit Register 00FF
I2C1RCV 020E — — — — — — — — I2C1 Receive Register 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
2013-2016 Microchip Technology Inc.
U1MODE 0220 UARTEN — USIDL IREN RTSMD — UEN1 UEN0 WAKE LPBACK ABAUD URXINV BRGH PDSEL1 PDSEL0 STSEL 0000
U1STA 0222 UTXISEL1 UTXINV UTXISEL0 — UTXBRK UTXEN UTXBF TRMT URXISEL1 URXISEL0 ADDEN RIDLE PERR FERR OERR URXDA 0110
U1TXREG 0224 — — — — — — — UART1 Transmit Register xxxx
U1RXREG 0226 — — — — — — — UART1 Receive Register 0000
U1BRG 0228 UART1 Baud Rate Generator Prescaler Register 0000
U2MODE 0230 UARTEN — USIDL IREN RTSMD — UEN1 UEN0 WAKE LPBACK ABAUD URXINV BRGH PDSEL1 PDSEL0 STSEL 0000
U2STA 0232 UTXISEL1 UTXINV UTXISEL0 — UTXBRK UTXEN UTXBF TRMT URXISEL1 URXISEL0 ADDEN RIDLE PERR FERR OERR URXDA 0110
U2TXREG 0234 — — — — — — — UART2 Transmit Register xxxx
U2RXREG 0236 — — — — — — — UART2 Receive Register 0000
U2BRG 0238 UART2 Baud Rate Generator Prescaler Register 0000
Legend: x = unknown value on Reset; — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-6: SPI1 AND SPI2 REGISTER MAP
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
SPI1STAT 0240 SPIEN — SPISIDL — — SPIBEC2 SPIBEC1 SPIBEC0 SRMPT SPIROV SRXMPT SISEL2 SISEL1 SISEL0 SPITBF SPIRBF 0000
SPI1CON1 0242 — — — DISSCK DISSDO MODE16 SMP CKE SSEN CKP MSTEN SPRE2 SPRE1 SPRE0 PPRE1 PPRE0 0000
SPI1CON2 0244 FRMEN SPIFSD FRMPOL — — — — — — — — — — — FRMDLY SPIBEN 0000
SPI1BUF 0248 SPI1 Transmit and Receive Buffer Register 0000
SPI2STAT 0260 SPIEN — SPISIDL — — SPIBEC2 SPIBEC1 SPIBEC0 SRMPT SPIROV SRXMPT SISEL2 SISEL1 SISEL0 SPITBF SPIRBF 0000
SPI2CON1 0262 — — — DISSCK DISSDO MODE16 SMP CKE SSEN CKP MSTEN SPRE2 SPRE1 SPRE0 PPRE1 PPRE0 0000
SPI2CON2 0264 FRMEN SPIFSD FRMPOL — — — — — — — — — — — FRMDLY SPIBEN 0000
SPI2BUF 0268 SPI2 Transmit and Receive Buffer Register 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
DS70005144E-page 45
DS70005144E-page 46
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-7: ADC1 REGISTER MAP
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
Legend: x = unknown value on Reset; — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
CTMUCON1 033A CTMUEN — CTMUSIDL TGEN EDGEN EDGSEQEN IDISSEN CTTRIG — — — — — — — — 0000
CTMUCON2 033C EDG1MOD EDG1POL EDG1SEL3 EDG1SEL2 EDG1SEL1 EDG1SEL0 EDG2STAT EDG1STAT EDG2MOD EDG2POL EDG2SEL3 EDG2SEL2 EDG2SEL1 EDG2SEL0 — — 0000
CTMUICON 033E ITRIM5 ITRIM4 ITRIM3 ITRIM2 ITRIM1 ITRIM0 IRNG1 IRNG0 — — — — — — — — 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
2013-2016 Microchip Technology Inc.
TABLE 4-9: CAN1 REGISTER MAP WHEN WIN (C1CTRL<0>) = 0 OR 1 FOR dsPIC33EVXXXGM10X DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
C1CTRL1 0400 — — CSIDL ABAT CANCKS REQOP2 REQOP1 REQOP0 OPMODE2 OPMODE1 OPMODE0 — CANCAP — — WIN 0480
C1CTRL2 0402 — — — — — — — — — — — DNCNT<4:0> 0000
C1VEC 0404 — — — FILHIT4 FILHIT3 FILHIT2 FILHIT1 FILHIT0 — ICODE6 ICODE5 ICODE4 ICODE3 ICODE2 ICODE1 ICODE0 0000
C1FCTRL 0406 DMABS2 DMABS1 DMABS0 — — — — — — — FSA5 FSA4 FSA3 FSA2 FSA1 FSA0 0000
C1FIFO 0408 — — FBP5 FBP4 FBP3 FBP2 FBP1 FBP0 — — FNRB5 FNRB4 FNRB3 FNRB2 FNRB1 FNRB0 0000
C1INTF 040A — — TXBO TXBP RXBP TXWAR RXWAR EWARN IVRIF WAKIF ERRIF — FIFOIF RBOVIF RBIF TBIF 0000
C1INTE 040C — — — — — — — — IVRIE WAKIE ERRIE — FIFOIE RBOVIE RBIE TBIE 0000
C1EC 040E TERRCNT7 TERRCNT6 TERRCNT5 TERRCNT4 TERRCNT3 TERRCNT2 TERRCNT1 TERRCNT0 RERRCNT7 RERRCNT6 RERRCNT5 RERRCNT4 RERRCNT3 RERRCNT2 RERRCNT1 RERRCNT0 0000
C1CFG1 0410 — — — — — — — — SJW1 SJW0 BRP5 BRP4 BRP3 BRP2 BRP1 BRP0 0000
C1CFG2 0412 — WAKFIL — — — SEG2PH2 SEG2PH1 SEG2PH0 SEG2PHTS SAM SEG1PH2 SEG1PH1 SEG1PH0 PRSEG2 PRSEG1 PRSEG0 0000
C1FEN1 0414 FLTEN<15:0> FFFF
dsPIC33EVXXXGM00X/10X FAMILY
C1FMSKSEL1 0418 F7MSK1 F7MSK0 F6MSK1 F6MSK0 F5MSK1 F5MSK0 F4MSK1 F4MSK0 F3MSK1 F3MSK0 F2MSK1 F2MSK0 F1MSK1 F1MSK0 F0MSK1 F0MSK0 0000
C1FMSKSEL2 041A F15MSK1 F15MSK0 F14MSK1 F14MSK0 F13MSK1 F13MSK0 F12MSK1 F12MSK0 F11MSK1 F11MSK0 F10MSK1 F10MSK0 F9MSK1 F9MSK0 F8MSK1 F8MSK0 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
TABLE 4-10: CAN1 REGISTER MAP WHEN WIN (C1CTRL<0>) = 0 FOR dsPIC33EVXXXGM10X DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-11: CAN1 REGISTER MAP WHEN WIN (C1CTRL<0>) = 1 FOR dsPIC33EVXXXGM10X DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
C1RXF6SID 0458 SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF6EID 045A EID<15:0> xxxx
C1RXF7SID 045C SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF7EID 045E EID<15:0> xxxx
C1RXF8SID 0460 SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF8EID 0462 EID<15:0> xxxx
C1RXF9SID 0464 SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF9EID 0466 EID<15:0> xxxx
C1RXF10SID 0468 SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF10EID 046A EID<15:0> xxxx
Legend: x = unknown value on Reset; — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
2013-2016 Microchip Technology Inc.
TABLE 4-11: CAN1 REGISTER MAP WHEN WIN (C1CTRL<0>) = 1 FOR dsPIC33EVXXXGM10X DEVICES (CONTINUED)
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
C1RXF11SID 046C SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF11EID 046E EID<15:0> xxxx
C1RXF12SID 0470 SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF12EID 0472 EID<15:0> xxxx
C1RXF13SID 0474 SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF13EID 0476 EID<15:0> xxxx
C1RXF14SID 0478 SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF14EID 047A EID<15:0> xxxx
C1RXF15SID 047C SID10 SID9 SID8 SID7 SID6 SID5 SID4 SID3 SID2 SID1 SID0 — EXIDE — EID17 EID16 xxxx
C1RXF15EID 047E EID<15:0> xxxx
Legend: x = unknown value on Reset; — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-12: SENT1 RECEIVER REGISTER MAP
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
SENT1CON1 0500 SNTEN — SNTSIDL — RCVEN TXM TXPOL CRCEN PPP SPCEN — PS — NIBCNT2 NIBCNT1 NIBCNT0 0000
SENT1CON2 0504 TICKTIME<15:0> (Transmit modes) or SYNCMAX<15:0> (Receive mode) FFFF
SENT1CON3 0508 FRAMETIME<15:0> (Transmit modes) or SYNCMIN<15:0> (Receive mode) FFFF
SENT1STAT 050C — — — — — — — — PAUSE NIB2 NIB1 NIB0 CRCERR FRMERR RXIDLE SYNCTXEN 0000
SENT1SYNC 0510 Synchronization Time Period Register (Transmit mode) 0000
SENT1DATL 0514 DATA4<3:0> DATA5<3:0> DATA6<3:0> CRC<3:0> 0000
SENT1DATH 0516 STAT<3:0> DATA1<3:0> DATA2<3:0> DATA3<3:0> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
SENT2CON1 0520 SNTEN — SNTSIDL — RCVEN TXM TXPOL CRCEN PPP SPCEN — PS — NIBCNT2 NIBCNT1 NIBCNT0 0000
SENT2CON2 0524 TICKTIME<15:0> (Transmit modes) or SYNCMAX<15:0> (Receive mode)
DS70005144E-page 49
FFFF
SENT2CON3 0528 FRAMETIME<15:0> (Transmit modes) or SYNCMIN<15:0> (Receive mode) FFFF
SENT2STAT 052C — — — — — — — — PAUSE NIB2 NIB1 NIB0 CRCERR FRMERR RXIDLE SYNCTXEN 0000
SENT2SYNC 0530 Synchronization Time Period Register (Transmit mode) 0000
SENT2DATL 0534 DATA4<3:0> DATA5<3:0> DATA6<3:0> CRC<3:0> 0000
SENT2DATH 0536 STAT<3:0> DATA1<3:0> DATA2<3:0> DATA3<3:0> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
TABLE 4-14: PERIPHERAL PIN SELECT OUTPUT REGISTER MAP FOR dsPIC33EVXXXGM002/102 DEVICES
DS70005144E-page 50
dsPIC33EVXXXGM00X/10X FAMILY
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
RPOR0 0670 — — RP35R5 RP35R4 RP35R3 RP35R2 RP35R1 RP35R0 — — RP20R5 RP20R4 RP20R3 RP20R2 RP20R1 RP20R0 0000
RPOR1 0672 — — RP37R5 RP37R4 RP37R3 RP37R2 RP37R1 RP37R0 — — RP36R5 RP36R4 RP36R3 RP36R2 RP36R1 RP36R0 0000
RPOR2 0674 — — RP39R5 RP39R4 RP39R3 RP39R2 RP39R1 RP39R0 — — RP38R5 RP38R4 RP38R3 RP38R2 RP38R1 RP38R0 0000
RPOR3 0676 — — RP41R5 RP41R4 RP41R3 RP41R2 RP41R1 RP41R0 — — RP40R5 RP40R4 RP40R3 RP40R2 RP40R1 RP40R0 0000
RPOR4 0678 — — RP43R5 RP43R4 RP43R3 RP43R2 RP43R1 RP43R0 — — RP42R5 RP42R4 RP42R3 RP42R2 RP42R1 RP42R0 0000
RPOR10 0684 — — RP176R<5:0> — — — — — — — — 0000
RPOR11 0686 — — RP178R5 RP178R4 RP178R3 RP178R2 RP178R1 RP178R0 — — RP177R5 RP177R4 RP177R3 RP177R2 RP177R1 RP177R0 0000
RPOR12 0688 — — RP180R5 RP180R4 RP180R3 RP180R2 RP180R1 RP180R0 — — RP179R5 RP179R4 RP179R3 RP179R2 RP179R1 RP179R0 0000
RPOR13 068A — — — — — — — — — — RP181R<5:0> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
TABLE 4-15: PERIPHERAL PIN SELECT OUTPUT REGISTER MAP FOR dsPIC33EVXXXGM004/104 DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
RPOR0 0670 — — RP35R5 RP35R4 RP35R3 RP35R2 RP35R1 RP35R0 — — RP20R5 RP20R4 RP20R3 RP20R2 RP20R1 RP20R0 0000
RPOR1 0672 — — RP37R5 RP37R4 RP37R3 RP37R2 RP37R1 RP37R0 — — RP36R5 RP36R4 RP36R3 RP36R2 RP36R1 RP36R0 0000
RPOR2 0674 — — RP39R5 RP39R4 RP39R3 RP39R2 RP39R1 RP39R0 — — RP38R5 RP38R4 RP38R3 RP38R2 RP38R1 RP38R0 0000
RPOR3 0676 — — RP41R5 RP41R4 RP41R3 RP41R2 RP41R1 RP41R0 — — RP40R5 RP40R4 RP40R3 RP40R2 RP40R1 RP40R0 0000
RPOR4 0678 — — RP43R5 RP43R4 RP43R3 RP43R2 RP43R1 RP43R0 — — RP42R5 RP42R4 RP42R3 RP42R2 RP42R1 RP42R0 0000
RPOR5 067A — — RP49R5 RP49R4 RP49R3 RP49R2 RP49R1 RP49R0 — — RP48R5 RP48R4 RP48R3 RP48R2 RP48R1 RP48R0 0000
RPOR6 067C — — RP55R5 RP55R4 RP55R3 RP55R2 RP55R1 RP55R0 — — RP54R5 RP54R4 RP54R3 RP54R2 RP54R1 RP54R0 0000
RPOR7 067E — — RP57R5 RP57R4 RP57R3 RP57R2 RP57R1 RP57R0 — — RP56R5 RP56R4 RP56R3 RP56R2 RP56R1 RP56R0 0000
RPOR10 0684 — — RP176R<5:0> — — — — — — — — 0000
RPOR11 0686 — — RP178R5 RP178R4 RP178R3 RP178R2 RP178R1 RP178R0 — — RP177R5 RP177R4 RP177R3 RP177R2 RP177R1 RP177R0 0000
2013-2016 Microchip Technology Inc.
RPOR12 0688 — — RP180R5 RP180R4 RP180R3 RP180R2 RP180R1 RP180R0 — — RP179R5 RP179R4 RP179R3 RP179R2 RP179R1 RP179R0 0000
RPOR13 068A — — — — — — — — — — RP181R<5:0> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
2013-2016 Microchip Technology Inc.
TABLE 4-16: PERIPHERAL PIN SELECT OUTPUT REGISTER MAP FOR dsPIC33EVXXXGM006/106 DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
RPOR0 0670 — — RP35R5 RP35R4 RP35R3 RP35R2 RP35R1 RP35R0 — — RP20R5 RP20R4 RP20R3 RP20R2 RP20R1 RP20R0 0000
RPOR1 0672 — — RP37R5 RP37R4 RP37R3 RP37R2 RP37R1 RP37R0 — — RP36R5 RP36R4 RP36R3 RP36R2 RP36R1 RP36R0 0000
RPOR2 0674 — — RP39R5 RP39R4 RP39R3 RP39R2 RP39R1 RP39R0 — — RP38R5 RP38R4 RP38R3 RP38R2 RP38R1 RP38R0 0000
RPOR3 0676 — — RP41R5 RP41R4 RP41R3 RP41R2 RP41R1 RP41R0 — — RP40R5 RP40R4 RP40R3 RP40R2 RP40R1 RP40R0 0000
RPOR4 0678 — — RP43R5 RP43R4 RP43R3 RP43R2 RP43R1 RP43R0 — — RP42R5 RP42R4 RP42R3 RP42R2 RP42R1 RP42R0 0000
RPOR5 067A — — RP49R5 RP49R4 RP49R3 RP49R2 RP49R1 RP49R0 — — RP48R5 RP48R4 RP48R3 RP48R2 RP48R1 RP48R0 0000
RPOR6 067C — — RP55R5 RP55R4 RP55R3 RP55R2 RP55R1 RP55R0 — — RP54R5 RP54R4 RP54R3 RP54R2 RP54R1 RP54R0 0000
RPOR7 067E — — RP57R5 RP57R4 RP57R3 RP57R2 RP57R1 RP57R0 — — RP56R5 RP56R4 RP56R3 RP56R2 RP56R1 RP56R0 0000
RPOR8 0680 — — RP70R5 RP70R4 RP70R3 RP70R2 RP70R1 RP70R0 — — RP69R5 RP69R4 RP69R3 RP69R2 RP69R1 RP69R0 0000
RPOR9 0682 — — RP118R5 RP118R4 RP118R3 RP118R2 RP118R1 RP118R0 — — RP97R5 RP97R4 RP97R3 RP97R2 RP97R1 RP97R0 0000
RPOR10 0684 — — RP176R5 RP176R4 RP176R3 RP176R2 RP176R1 RP176R0 — — RP120R5 RP120R4 RP120R3 RP120R2 RP120R1 RP120R0 0000
dsPIC33EVXXXGM00X/10X FAMILY
RPOR11 0686 — — RP178R5 RP178R4 RP178R3 RP178R2 RP178R1 RP178R0 — — RP177R5 RP177R4 RP177R3 RP177R2 RP177R1 RP177R0 0000
RPOR12 0688 — — RP180R5 RP180R4 RP180R3 RP180R2 RP180R1 RP180R0 — — RP179R5 RP179R4 RP179R3 RP179R2 RP179R1 RP179R0 0000
RPOR13 068A — — — — — — — — — — RP181R<5:0> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
DS70005144E-page 51
DS70005144E-page 52
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-17: PERIPHERAL INPUT REMAP REGISTER MAP
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
DMTCON 0700 ON — — — — — — — — — — — — — — —
2013-2016 Microchip Technology Inc.
0000
DMTPRECLR 0704 STEP1<7:0> — — — — — — — — 0000
DMTCLR 0708 — — — — — — — — STEP2<7:0> 0000
DMTSTAT 070C — — — — — — — — BAD1 BAD2 DMTEVENT — — — — WINOPN 0000
DMTCNTL 0710 COUNTER<15:0> 0000
DMTCNTH 0712 COUNTER<31:16> 0000
DMTHOLDREG 0714 UPRCNT<15:0> 0000
DMTPSCNTL 0718 PSCNT<15:0> 0000
DMTPSCNTH 071A PSCNT<31:16> 0000
DMTPSINTVL 071C PSINTV<15:0> 0000
DMTPSINTVH 071E PSINTV<31:16> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
TABLE 4-19: NVM REGISTER MAP
2013-2016 Microchip Technology Inc.
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
NVMCON 0728 WR WREN WRERR NVMSIDL — — RPDF URERR — — — — NVMOP3 NVMOP2 NVMOP1 NVMOP0 0000
NVMADR 072A NVMADR<15:0> 0000
NVMADRU 072C — — — — — — — — NVMADRU<23:16> 0000
NVMKEY 072E — — — — — — — — NVMKEY<7:0> 0000
NVMSRCADRL 0730 NVMSRCADR<15:1> 0 0000
NVMSRCADRH 0732 — — — — — — — — NVMSRCADR<23:16> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
dsPIC33EVXXXGM00X/10X FAMILY
RCON 0740 TRAPR IOPUWR — — VREGSF — CM VREGS EXTR SWR SWDTEN WDTO SLEEP IDLE BOR POR Note 1
OSCCON 0742 — COSC2 COSC1 COSC0 — NOSC2 NOSC1 NOSC0 CLKLOCK IOLOCK LOCK — CF — — OSWEN Note 2
CLKDIV 0744 ROI DOZE2 DOZE1 DOZE0 DOZEN FRCDIV2 FRCDIV1 FRCDIV0 PLLPOST1 PLLPOST0 — PLLPRE4 PLLPRE3 PLLPRE2 PLLPRE1 PLLPRE0 0000
PLLFBD 0746 — — — — — — — PLLDIV<8:0> 0000
OSCTUN 0748 — — — — — — — — — — TUN<5:0> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
Note 1: RCON register Reset values are dependent on the type of Reset.
2: OSCCON register Reset values are dependent on the Configuration fuses.
REFOCON 074E ROON — ROSSLP ROSEL RODIV3 RODIV2 RODIV1 RODIV0 — — — — — — — — 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
DS70005144E-page 53
DS70005144E-page 54
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-22: PMD REGISTER MAP FOR dsPIC33EVXXXGM00X/10X FAMILY DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
PMD1 0760 T5MD T4MD T3MD T2MD T1MD — PWMMD — I2C1MD U2MD U1MD SPI2MD SPI1MD — C1MD(1) AD1MD 0000
PMD2 0762 — — — — IC4MD IC3MD IC2MD IC1MD — — — — OC4MD OC3MD OC2MD OC1MD 0000
PMD3 0764 — — — — — CMPMD — — — — — — — — — — 0000
PMD4 0766 — — — — — — — — — — — REFOMD CTMUMD — — 0000
PMD6 076A — — — — — PWM3MD PWM2MD PWM1MD — — — — — — — — 0000
PMD7 076C — — — — — — — — — — — DMA0MD — — — — 0000
DMA1MD
DMA2MD
DMA3MD
PMD8 076E — — — SENT2MD SENT1MD — — DMTMD — — — — — — — — 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
Note 1: This feature is available only on dsPIC33EVXXXGM10X devices.
2013-2016 Microchip Technology Inc.
2013-2016 Microchip Technology Inc.
TABLE 4-23: INTERRUPT CONTROLLER REGISTER MAP FOR dsPIC33EVXXXGM00X/10X FAMILY DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
IFS0 0800 NVMIF DMA1IF AD1IF U1TXIF U1RXIF SPI1IF SPI1EIF T3IF T2IF OC2IF IC2IF DMA0IF T1IF OC1IF IC1IF INT0IF 0000
IFS1 0802 U2TXIF U2RXIF INT2IF T5IF T4IF OC4IF OC3IF DMA2IF — — — INT1IF CNIF CMPIF MI2C1IF SI2C1IF 0000
IFS2 0804 — — — — — — — — — IC4IF IC3IF DMA3IF C1IF C1RXIF(1) SPI2IF SPI2EIF 0000
IFS3 0806 — — — — — — PSEMIF — — — — — — — — — 0000
IFS4 0808 — — CTMUIF — — — — — — C1TXIF(1) — — — U2EIF U1EIF — 0000
IFS5 080A PWM2IF PWM1IF — — — — — — — — — — — — — — 0000
IFS6 080C — — — — — — — — — — — — — — — PWM3IF 0000
IFS8 0810 — ICDIF — — — — — — — — — — — — — — 0000
IFS10 0814 — — I2C1BCIF — — — — — — — — — — — — 0000
IFS11 0816 — — — — — ECCSBEIF SENT2IF SENT2EIF SENT1IF SENT1EIF — — — — — — 0000
IEC0 0820 NVMIE DMA1IE AD1IE U1TXIE U1RXIE SPI1IE SPI1EIE T3IE T2IE OC2IE IC2IE DMA0IE T1IE OC1IE IC1IE INT0IE 0000
dsPIC33EVXXXGM00X/10X FAMILY
IEC1 0822 U2TXIE U2RXIE INT2IE T5IE T4IE OC4IE OC3IE DMA2IE — — — INT1IE CNIE CMPIE MI2C1IE SI2C1IE 0000
IEC2 0824 — — — — — — — — — IC4IE IC3IE DMA3IE C1IE C1RXIE(1) SPI2IE SPI2EIE 0000
IEC3 0826 — — — — — — PSEMIE — — — — — — — — — 0000
IEC4 0828 — — CTMUIE — — — — — — C1TXIE(1) — — — U2EIE U1EIE — 0000
IEC5 082A PWM2IE PWM1IE — — — — — — — — — — — — — — 0000
IEC6 082C — — — — — — — — — — — — — — — PWM3IE 0000
IEC8 0830 — ICDIE — — — — — — — — — — — — — — 0000
IEC10 0834 — — I2C1BCIE — — — — — — — — — — — — — 0000
IEC11 0836 — — — — — ECCSBEIE SENT2IE SENT2EIE SENT1IE SENT1EIE — — — — — — 0000
IPC0 0840 — T1IP2 T1IP1 T1IP0 — OC1IP2 OC1IP1 OC1IP0 — IC1IP2 IC1IP1 IC1IP0 — INT0IP2 INT0IP1 INT0IP0 4444
IPC1 0842 — T2IP2 T2IP1 T2IP0 — OC2IP2 OC2IP1 OC2IP0 — IC2IP2 IC2IP1 IC2IP0 — DMA0IP2 DMA0IP1 DMA0IP0 4444
IPC2 0844 — U1RXIP2 U1RXIP1 U1RXIP0 — SPI1IP2 SPI1IP1 SPI1IP0 — SPI1EIP2 SPI1EIP1 SPI1EIP0 — T3IP2 T3IP1 T3IP0 4444
IPC3 0846 — NVMIP2 NVMIP1 NVMIP0 — DMA1IP2 DMA1IP1 DMA1IP0 — AD1IP2 AD1IP1 AD1IP0 — U1TXIP2 U1TXIP1 U1TXIP0 4444
IPC4 0848 — CNIP2 CNIP1 CNIP0 — CMPIP2 CMPIP1 CMPIP0 — MI2C1IP2 MI2C1IP1 MI2C1IP0 — SI2C1IP2 SI2C1IP1 SI2C1IP0 4444
IPC5 084A — — — — — — — — — — — — — INT1IP<2:0> 0004
IPC6 084C — T4IP2 T4IP1 T4IP0 — OC4IP2 OC4IP1 OC4IP0 — OC3IP2 OC3IP1 OC3IP0 — DMA2IP2 DMA2IP1 DMA2IP0 4444
IPC7 084E — U2TXIP2 U2TXIP1 U2TXIP0 — U2RXIP2 U2RXIP1 U2RXIP0 — INT2IP2 INT2IP1 INT2IP0 — T5IP2 T5IP1 T5IP0 4444
IPC8 0850 — C1IP2 C1IP1 C1IP0 — C1RXIP2(1) C1RXIP1(1) C1RXIP0(1) — SPI2IP2 SPI2IP1 SPI2IP0 — SPI2EIP2 SPI2EIP1 SPI2EIP0 4444
DS70005144E-page 55
IPC9 0852 — — — — — IC4IP2 IC4IP1 IC4IP0 — IC3IP2 IC3IP1 IC3IP0 — DMA3IP2 DMA3IP1 DMA3IP0 0444
IPC14 085C — — — — — — — — — PSEMIP<2:0> — — — — 0040
IPC16 0860 — — — — — U2EIP2 U2EIP1 U2EIP0 — U1EIP2 U1EIP1 U1EIP0 — — — — 0440
IPC17 0862 — — — — — C1TXIP<2:0>(1) — — — — — — — — 0400
Legend: — = unimplemented, read as ‘0’ Reset values are shown in hexadecimal.
Note 1: This feature is available only on dsPIC33EVXXXGM10X devices.
DS70005144E-page 56
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-23: INTERRUPT CONTROLLER REGISTER MAP FOR dsPIC33EVXXXGM00X/10X FAMILY DEVICES (CONTINUED)
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
OC1CON1 0900 — — OCSIDL OCTSEL2 OCTSEL1 OCTSEL0 — — ENFLTA — — OCFLTA TRIGMODE OCM2 OCM1 OCM0 0000
OC1CON2 0902 FLTMD FLTOUT FLTTRIEN OCINV — — — OC32 OCTRIG TRIGSTAT OCTRIS SYNCSEL4 SYNCSEL3 SYNCSEL2 SYNCSEL1 SYNCSEL0 000C
OC1RS 0904 Output Compare 1 Secondary Register xxxx
OC1R 0906 Output Compare 1 Register xxxx
OC1TMR 0908 Output Compare 1 Timer Value Register xxxx
OC2CON1 090A — — OCSIDL OCTSEL2 OCTSEL1 OCTSEL0 — — ENFLTA — — OCFLTA TRIGMODE OCM2 OCM1 OCM0 0000
OC2CON2 090C FLTMD FLTOUT FLTTRIEN OCINV — — — OC32 OCTRIG TRIGSTAT OCTRIS SYNCSEL4 SYNCSEL3 SYNCSEL2 SYNCSEL1 SYNCSEL0 000C
OC2RS 090E Output Compare 2 Secondary Register xxxx
OC2R 0910 Output Compare 2 Register xxxx
OC2TMR 0912 Output Compare 2 Timer Value Register xxxx
OC3CON1 0914 — — OCSIDL OCTSEL2 OCTSEL1 OCTSEL0 — — ENFLTA — — OCFLTA TRIGMODE OCM2 OCM1 OCM0 0000
dsPIC33EVXXXGM00X/10X FAMILY
OC3CON2 0916 FLTMD FLTOUT FLTTRIEN OCINV — — — OC32 OCTRIG TRIGSTAT OCTRIS SYNCSEL4 SYNCSEL3 SYNCSEL2 SYNCSEL1 SYNCSEL0 000C
OC3RS 0918 Output Compare 3 Secondary Register xxxx
OC3R 091A Output Compare 3 Register xxxx
OC3TMR 091C Output Compare 3 Timer Value Register xxxx
OC4CON1 091E — — OCSIDL OCTSEL2 OCTSEL1 OCTSEL0 — — ENFLTA — — OCFLTA TRIGMODE OCM2 OCM1 OCM0 0000
OC4CON2 0920 FLTMD FLTOUT FLTTRIEN OCINV — — — OC32 OCTRIG TRIGSTAT OCTRIS SYNCSEL4 SYNCSEL3 SYNCSEL2 SYNCSEL1 SYNCSEL0 000C
OC4RS 0922 Output Compare 4 Secondary Register xxxx
OC4R 0924 Output Compare 4 Register xxxx
OC4TMR 0926 Output Compare 4 Timer Value Register xxxx
Legend: x = unknown value on Reset; — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
DS70005144E-page 57
DS70005144E-page 58
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-25: OP AMP/COMPARATOR REGISTER MAP
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
CMSTAT 0A80 PSIDL — — C5EVT C4EVT C3EVT C2EVT C1EVT — — — C5OUT C4OUT C3OUT C2OUT C1OUT 0000
CVR1CON 0A82 CVREN CVROE — — CVRSS VREFSEL — — — CVR6 CVR5 CVR4 CVR3 CVR2 CVR1 CVR0 0000
CM1CON 0A84 CON COE CPOL — — OPAEN CEVT COUT EVPOL1 EVPOL0 — CREF — — CCH1 CCH0 0000
CM1MSKSRC 0A86 — — — — SELSRCC3 SELSRCC2 SELSRCC1 SELSRCC0 SELSRCB3 SELSRCB2 SELSRCB1 SELSRCB0 SELSRCA3 SELSRCA2 SELSRCA1 SELSRCA0 0000
CM1MSKCON 0A88 HLMS — OCEN OCNEN OBEN OBNEN OAEN OANEN NAGS PAGS ACEN ACNEN ABEN ABNEN AAEN AANEN 0000
CM1FLTR 0A8A — — — — — — — — — CFSEL2 CFSEL1 CFSEL0 CFLTREN CFDIV2 CFDIV1 CFDIV0 0000
CM2CON 0A8C CON COE CPOL — — OPAEN CEVT COUT EVPOL1 EVPOL0 — CREF — — CCH1 CCH0 0000
CM2MSKSRC 0A8E — — — — SELSRCC3 SELSRCC2 SELSRCC1 SELSRCC0 SELSRCB3 SELSRCB2 SELSRCB1 SELSRCB0 SELSRCA3 SELSRCA2 SELSRCA1 SELSRCA0 0000
CM2MSKCON 0A90 HLMS — OCEN OCNEN OBEN OBNEN OAEN OANEN NAGS PAGS ACEN ACNEN ABEN ABNEN AAEN AANEN 0000
CM2FLTR 0A92 — — — — — — — — — CFSEL2 CFSEL1 CFSEL0 CFLTREN CFDIV2 CFDIV1 CFDIV0 0000
CM3CON 0A94 CON COE CPOL — — OPAEN CEVT COUT EVPOL1 EVPOL0 — CREF — — CCH1 CCH0 0000
CM3MSKSRC 0A96 — — — — SELSRCC3 SELSRCC2 SELSRCC1 SELSRCC0 SELSRCB3 SELSRCB2 SELSRCB1 SELSRCB0 SELSRCA3 SELSRCA2 SELSRCA1 SELSRCA0 0000
CM3MSKCON 0A98 HLMS — OCEN OCNEN OBEN OBNEN OAEN OANEN NAGS PAGS ACEN ACNEN ABEN ABNEN AAEN AANEN 0000
CM3FLTR 0A9A — — — — — — — — — CFSEL2 CFSEL1 CFSEL0 CFLTREN CFDIV2 CFDIV1 CFDIV0 0000
CM4CON 0A9C CON COE CPOL — — — CEVT COUT EVPOL1 EVPOL0 — CREF — — CCH1 CCH0 0000
CM4MSKSRC 0A9E — — — — SELSRCC3 SELSRCC2 SELSRCC1 SELSRCC0 SELSRCB3 SELSRCB2 SELSRCB1 SELSRCB0 SELSRCA3 SELSRCA2 SELSRCA1 SELSRCA0 0000
CM4MSKCON 0AA0 HLMS — OCEN OCNEN OBEN OBNEN OAEN OANEN NAGS PAGS ACEN ACNEN ABEN ABNEN AAEN AANEN 0000
CM4FLTR 0AA2 — — — — — — — — — CFSEL2 CFSEL1 CFSEL0 CFLTREN CFDIV2 CFDIV1 CFDIV0 0000
CM5CON 0AA4 CON COE CPOL — — OPAEN CEVT COUT EVPOL1 EVPOL0 — CREF — — CCH1 CCH0 0000
CM5MSKSRC 0AA6 — — — — SELSRCC3 SELSRCC2 SELSRCC1 SELSRCC0 SELSRCB3 SELSRCB2 SELSRCB1 SELSRCB0 SELSRCA3 SELSRCA2 SELSRCA1 SELSRCA0 0000
CM5MSKCON 0AA8 HLMS — OCEN OCNEN OBEN OBNEN OAEN OANEN NAGS PAGS ACEN ACNEN ABEN ABNEN AAEN AANEN 0000
CM5FLTR 0AAA — — — — — — — — — CFSEL2 CFSEL1 CFSEL0 CFLTREN CFDIV2 CFDIV1 CFDIV0 0000
CVR2CON 0AB4 CVREN CVROE(1) — — CVRSS VREFSEL — — — CVR6 CVR5 CVR4 CVR3 CVR2 CVR1 CVR0 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
Note 1: CVROE (CVR2CON<14>) is not available on 28-pin devices.
2013-2016 Microchip Technology Inc.
TABLE 4-26: DMAC REGISTER MAP
2013-2016 Microchip Technology Inc.
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
DMA0CON 0B00 CHEN SIZE DIR HALF NULLW — — — — — AMODE1 AMODE0 — — MODE1 MODE0 0000
DMA0REQ 0B02 FORCE — — — — — — — IRQSEL7 IRQSEL6 IRQSEL5 IRQSEL4 IRQSEL3 IRQSEL2 IRQSEL1 IRQSEL0 00FF
DMA0STAL 0B04 STA<15:0> 0000
DMA0STAH 0B06 — — — — — — — — STA<23:16> 0000
DMA0STBL 0B08 STB<15:0> 0000
DMA0STBH 0B0A — — — — — — — — STB<23:16> 0000
DMA0PAD 0B0C PAD<15:0> 0000
DMA0CNT 0B0E — — CNT<13:0> 0000
DMA1CON 0B10 CHEN SIZE DIR HALF NULLW — — — — — AMODE1 AMODE0 — — MODE1 MODE0 0000
DMA1REQ 0B12 FORCE — — — — — — — IRQSEL7 IRQSEL6 IRQSEL5 IRQSEL4 IRQSEL3 IRQSEL2 IRQSEL1 IRQSEL0 00FF
DMA1STAL 0B14 STA<15:0> 0000
dsPIC33EVXXXGM00X/10X FAMILY
DMA1STAH 0B16 — — — — — — — — STA<23:16> 0000
DMA1STBL 0B18 STB<15:0> 0000
DMA1STBH 0B1A — — — — — — — — STB<23:16> 0000
DMA1PAD 0B1C PAD<15:0> 0000
DMA1CNT 0B1E — — CNT<13:0> 0000
DMA2CON 0B20 CHEN SIZE DIR HALF NULLW — — — — — AMODE1 AMODE0 — — MODE1 MODE0 0000
DMA2REQ 0B22 FORCE — — — — — — — IRQSEL7 IRQSEL6 IRQSEL5 IRQSEL4 IRQSEL3 IRQSEL2 IRQSEL1 IRQSEL0 00FF
DMA2STAL 0B24 STA<15:0> 0000
DMA2STAH 0B26 — — — — — — — — STA<23:16> 0000
DMA2STBL 0B28 STB<15:0> 0000
DMA2STBH 0B2A — — — — — — — — STB<23:16> 0000
DMA2PAD 0B2C PAD<15:0> 0000
DMA2CNT 0B2E — — CNT<13:0> 0000
DMA3CON 0B30 CHEN SIZE DIR HALF NULLW — — — — — AMODE1 AMODE0 — — MODE1 MODE0 0000
DMA3REQ 0B32 FORCE — — — — — — — IRQSEL7 IRQSEL6 IRQSEL5 IRQSEL4 IRQSEL3 IRQSEL2 IRQSEL1 IRQSEL0 00FF
DMA3STAL 0B34 STA<15:0> 0000
DMA3STAH 0B36 — — — — — — — — STA<23:16> 0000
DMA3STBL 0B38 STB<15:0> 0000
DS70005144E-page 59
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-26: DMAC REGISTER MAP (CONTINUED)
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
PTCON 0C00 PTEN — PTSIDL SESTAT SEIEN EIPU SYNCPOL SYNCOEN SYNCEN SYNCSRC2 SYNCSRC1 SYNCSRC0 SEVTPS3 SEVTPS2 SEVTPS1 SEVTPS0 0000
PTCON2 0C02 — — — — — — — — — — — — — PCLKDIV<2:0> 0000
PTPER 0C04 PTPER<15:0> FFF8
SEVTCMP 0C06 SEVTCMP<15:0> 0000
MDC 0C0A MDC<15:0> 0000
CHOP 0C1A CHPCLKEN — — — — — CHOPCLK9 CHOPCLK8 CHOPCLK7 CHOPCLK6 CHOPCLK5 CHOPCLK4 CHOPCLK3 CHOPCLK2 CHOPCLK1 CHOPCLK0 0000
PWMKEY 0C1E PWMKEY<15:0> 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
PWMCON1 0C20 FLTSTAT CLSTAT TRGSTAT FLTIEN CLIEN TRGIEN ITB MDCS DTC1 DTC0 DTCP — — CAM XPRES IUE 0000
IOCON1 0C22 PENH PENL POLH POLL PMOD1 PMOD0 OVRENH OVRENL OVRDAT1 OVRDAT0 FLTDAT1 FLTDAT0 CLDAT1 CLDAT0 SWAP OSYNC 0000
FCLCON1 0C24 — CLSRC4 CLSRC3 CLSRC2 CLSRC1 CLSRC0 CLPOL CLMOD FLTSRC4 FLTSRC3 FLTSRC2 FLTSRC1 FLTSRC0 FLTPOL FLTMOD1 FLTMOD0 0000
2013-2016 Microchip Technology Inc.
PWMCON2 0C40 FLTSTAT CLSTAT TRGSTAT FLTIEN CLIEN TRGIEN ITB MDCS DTC1 DTC0 DTCP — — CAM XPRES IUE 0000
IOCON2 0C42 PENH PENL POLH POLL PMOD1 PMOD0 OVRENH OVRENL OVRDAT1 OVRDAT0 FLTDAT1 FLTDAT0 CLDAT1 CLDAT0 SWAP OSYNC 0000
FCLCON2 0C44 — CLSRC4 CLSRC3 CLSRC2 CLSRC1 CLSRC0 CLPOL CLMOD FLTSRC4 FLTSRC3 FLTSRC2 FLTSRC1 FLTSRC0 FLTPOL FLTMOD1 FLTMOD0 0000
PDC2 0C46 PDC2<15:0> 0000
PHASE2 0C48 PHASE2<15:0> 0000
DTR2 0C4A — — DTR2<13:0> 0000
ALTDTR2 0C4C — — ALTDTR2<13:0> 0000
TRIG2 0C52 TRGCMP<15:0> 0000
TRGCON2 0C54 TRGDIV3 TRGDIV2 TRGDIV1 TRGDIV0 — — — — — — TRGSTRT5 TRGSTRT4 TRGSTRT3 TRGSTRT2 TRGSTRT1 TRGSTRT0 0000
PWMCAP2 0C58 PWMCAP2<15:0> 0000
LEBCON2 0C5A PHR PHF PLR PLF FLTLEBEN CLLEBEN — — — — BCH BCL BPHH BPHL BPLH BPLL 0000
dsPIC33EVXXXGM00X/10X FAMILY
LEBDLY2 0C5C — — — — LEB<11:0> 0000
AUXCON2 0C5E — — — — BLANKSEL3 BLANKSEL2 BLANKSEL1 BLANKSEL0 — — CHOPSEL3 CHOPSEL2 CHOPSEL1 CHOPSEL0 CHOPHEN CHOPLEN 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
PWMCON3 0C60 FLTSTAT CLSTAT TRGSTAT FLTIEN CLIEN TRGIEN ITB MDCS DTC1 DTC0 DTCP — — CAM XPRES IUE 0000
IOCON3 0C62 PENH PENL POLH POLL PMOD1 PMOD0 OVRENH OVRENL OVRDAT1 OVRDAT0 FLTDAT1 FLTDAT0 CLDAT1 CLDAT0 SWAP OSYNC 0000
FCLCON3 0C64 — CLSRC4 CLSRC3 CLSRC2 CLSRC1 CLSRC0 CLPOL CLMOD FLTSRC4 FLTSRC3 FLTSRC2 FLTSRC1 FLTSRC0 FLTPOL FLTMOD1 FLTMOD0 0000
PDC3 0C66 PDC3<15:0> 0000
PHASE3 0C68 PHASE3<15:0> 0000
DTR3 0C6A — — DTR3<13:0> 0000
ALTDTR3 0C6C — — ALTDTR3<13:0> 0000
TRIG3 0C72 TRGCMP<15:0> 0000
TRGCON3 0C74 TRGDIV3 TRGDIV2 TRGDIV1 TRGDIV0 — — — — — — TRGSTRT5 TRGSTRT4 TRGSTRT3 TRGSTRT2 TRGSTRT1 TRGSTRT0 0000
PWMCAP3 0C78 PWMCAP3<15:0> 0000
DS70005144E-page 61
LEBCON3 0C7A PHR PHF PLR PLF FLTLEBEN CLLEBEN — — — — BCH BCL BPHH BPHL BPLH BPLL 0000
LEBDLY3 0C7C — — — — LEB<11:0> 0000
AUXCON3 0C7E — — — — BLANKSEL3 BLANKSEL2 BLANKSEL1 BLANKSEL0 — — CHOPSEL3 CHOPSEL2 CHOPSEL1 CHOPSEL0 CHOPHEN CHOPLEN 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
DS70005144E-page 62
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-31: PORTA REGISTER MAP FOR dsPIC33EVXXXGMX06 DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
0000
SR0A 0E12 — — — — — — SR0A9 — — — — SR0A4 — — — — 0000
Legend: — = unimplemented, read as ‘0’. Reset values are shown in hexadecimal.
2013-2016 Microchip Technology Inc.
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-34: PORTB REGISTER MAP FOR dsPIC33EVXXXGMX06 DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-35: PORTB REGISTER MAP FOR dsPIC33EVXXXGMX04 DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 4-38: PORTC REGISTER MAP FOR dsPIC33EVXXXGMX04 DEVICES
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
dsPIC33EVXXXGM00X/10X FAMILY
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
dsPIC33EVXXXGM00X/10X FAMILY
SFR All
Addr. Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Name Resets
4.3.1 PAGED MEMORY SCHEME The Data Space Page registers are located in the SFR
space. Construction of the EDS address is shown in
The dsPIC33EVXXXGM00X/10X family architecture
Figure 4-9 and Figure 4-10. When DSRPAG<9> = 0
extends the available DS through a paging scheme,
and the base address bit, EA<15> = 1, the
which allows the available DS to be accessed using
DSRPAG<8:0> bits are concatenated onto EA<14:0> to
MOV instructions in a linear fashion for pre- and post-
form the 24-bit EDS read address. Similarly, when the
modified Effective Addresses (EAs). The upper half of
base address bit, EA<15> = 1, the DSWPAG<8:0>
the Base Data Space address is used in conjunction
bits are concatenated onto EA<14:0> to form the 24-
with the Data Space Page registers, the 10-bit Data
bit EDS write address.
Space Read Page register (DSRPAG) or the 9-bit Data
Space Write Page register (DSWPAG), to form an EDS
address, or Program Space Visibility (PSV) address.
Byte
16-Bit DS EA Select
EA<15>
Generate Y
DSRPAG<9> 1 EA
PSV Address = 1?
N
Select
DSRPAG
0 DSRPAG<8:0>
9 Bits 15 Bits
Note: DS read access when DSRPAG = 0x000 will force an address error trap.
Byte
16-Bit DS EA Select
EA<15> = 0
(DSWPAG = Don’t Care)
1 EA
DSWPAG<8:0>
9 Bits 15 Bits
Note: DS read access when DSRPAG = 0x000 will force an address error trap.
The paged memory scheme provides access to The Program Space (PS) can be accessed with a
multiple 32-Kbyte windows in the EDS and PSV DSRPAG of 0x200 or greater. Only reads from PS are
memory. The Data Space Page registers, DSxPAG, in supported using the DSRPAG. Writes to PS are not
combination with the upper half of the Data Space supported, therefore, the DSWPAG is dedicated to DS,
address, can provide up to 16 Mbytes of additional including EDS. The Data Space and EDS can be read
address space in the EDS and 8 Mbytes (DSRPAG from and written to using DSRPAG and DSWPAG,
only) of PSV address space. The paged data memory respectively.
space is shown in Figure 4-11.
dsPIC33EVXXXGM00X/10X FAMILY
Local Data Space EDS Program Space Table Address Space
(DSRPAG<9:0>/DSWPAG<8:0>) (Instruction & Data) (TBLPAG<7:0>)
DS_Addr<14:0>
0x0000
Page 0
Reserved
(Will produce an DS_Addr<15:0>
0x7FFF address error trap) 0x0000
(TBLPAG = 0x00)
0x0000 lsw Using
EDS Page 0x001
Program Memory TBLRDL/TBLWTL,
(DSRPAG = 0x001) (lsw – <15:0>)
(DSWPAG = 0x001) MSB Using
0x7FFF 0x00_0000 TBLRDH/TBLWTH
0xFFFF
DS_Addr<15:0> 0x0000
0x0000 EDS Page 0x1FF
SFR Registers (DSRPAG = 0x1FF)
0x0FFF 0x7FFF (DSWPAG = 0x1FF)
0x0000
0x1000 (TBLPAG = 0x7F)
0x0000
EDS Page 0x200 lsw Using
Up to 8-Kbyte (DSRPAG = 0x200) 0x7F_FFFF TBLRDL/TBLWTL,
RAM No Writes Allowed MSB Using
0x7FFF TBLRDH/TBLWTH
0x2FFF PSV 0xFFFF
0x3000 Program
0x7FFF Program Memory
Memory
0x8000 (MSB – <23:16>)
(lsw)
32-Kbyte 0x0000 0x00_0000
EDS Window EDS Page 0x2FF
(DSRPAG = 0x2FF)
0xFFFF
No Writes Allowed
0x7FFF
2013-2016 Microchip Technology Inc.
0x0000
EDS Page 0x300
(DSRPAG = 0x300)
No Writes Allowed
0x7FFF
PSV
Program
Memory
0x7F_FFFF
(MSB)
0x0000
EDS Page 0x3FF
(DSRPAG = 0x3FF)
No Writes Allowed
0x7FFF
dsPIC33EVXXXGM00X/10X FAMILY
Allocating different Page registers for read and write In general, when an overflow is detected, the DSxPAG
access allows the architecture to support data register is incremented and the EA<15> bit is set to
movement between different pages in the data keep the base address within the EDS or PSV window.
memory. This is accomplished by setting the DSRPAG When an underflow is detected, the DSxPAG register is
register value to the page from which you want to read, decremented and the EA<15> bit is set to keep the
and configure the DSWPAG register to the page to base address within the EDS or PSV window. This
which it needs to be written. Data can also be moved creates a linear EDS and PSV address space, but only
from different PSV to EDS pages by configuring the when using the Register Indirect Addressing modes.
DSRPAG and DSWPAG registers to address PSV and Exceptions to the operation described above arise
EDS space, respectively. The data can be moved when entering and exiting the boundaries of Page 0,
between pages by a single instruction. EDS and PSV spaces. Table 4-43 lists the effects of
When an EDS or PSV page overflow or underflow overflow and underflow scenarios at different
occurs, EA<15> is cleared as a result of the register boundaries.
indirect EA calculation. An overflow or underflow of the In the following cases, when an overflow or underflow
EA in the EDS or PSV pages can occur at the page occurs, the EA<15> bit is set and the DSxPAG is not
boundaries when: modified; therefore, the EA will wrap to the beginning of
• The initial address, prior to modification, the current page:
addresses an EDS or a PSV page. • Register Indirect with Register Offset Addressing
• The EA calculation uses Pre- or Post-Modified • Modulo Addressing
Register Indirect Addressing. However, this does
• Bit-Reversed Addressing
not include Register Offset Addressing.
4.3.2 EXTENDED X DATA SPACE The remaining pages, including both EDS and PSV
pages, are only accessible using the DSRPAG or
The lower portion of the base address space range,
DSWPAG registers in combination with the upper
between 0x0000 and 0x2FFF, is always accessible
32 Kbytes, 0x8000 to 0xFFFF, of the base address,
regardless of the contents of the Data Space Page
where the base address bit, EA<15> = 1.
registers; it is indirectly addressable through the
register indirect instructions. It can be regarded as For example, when DSRPAG = 0x001 or
being located in the default EDS Page 0 (i.e., EDS DSWPAG = 0x001, accesses to the upper 32 Kbytes,
address range of 0x000000 to 0x002FFF with the base 0x8000 to 0xFFFF of the Data Space, will map to the
address bit, EA<15> = 0, for this address range). EDS address range of 0x008000 to 0x00FFFF. When
However, Page 0 cannot be accessed through the DSRPAG = 0x002 or DSWPAG = 0x002, accesses to
upper 32 Kbytes, 0x8000 to 0xFFFF, of Base Data the upper 32 Kbytes of the Data Space will map to the
Space, in combination with DSRPAG = 0x000 or EDS address range of 0x010000 to 0x017FFF and so
DSWPAG = 0x000. Consequently, the DSRPAG and on, as shown in the EDS memory map in Figure 4-12.
DSWPAG registers are initialized to 0x001 at Reset. For more information on the PSV page access using
Note 1: DSxPAG should not be used to access Data Space Page registers, refer to Section 5.0
Page 0. An EDS access with DSxPAG “Program Space Visibility from Data Space” in
set to 0x000 will generate an address “dsPIC33E/PIC24E Program Memory” (DS70000613)
error trap. of the “dsPIC33/PIC24 Family Reference Manual”.
2: Clearing the DSxPAG in software has no
effect.
EA<15:0>
0x0000
SFR/DS (PAGE 0)
Conventional
DS Address 0x8000 0x008000
DS PAGE 1
0xFFFF
0x010000
PAGE 2
0x018000
PAGE 3
DSRPAG<9> = 0
EDS EA Address (24 bits)
(DSRPAG<8:0>, EA<14:0>)
(DSWPAG<8:0>, EA<14:0>)
0xFE8000
PAGE 1FD
0xFF0000
PAGE 1FE
0xFF8000
PAGE 1FF
4.3.3 DATA MEMORY ARBITRATION AND below that of the CPU maintain the same priority
BUS MASTER PRIORITY relationship relative to each other. The priority schemes
for bus masters with different MSTRPR values are
EDS accesses from bus masters in the system are
listed in Table 4-44.
arbitrated.
Figure 4-13 shows the arbiter architecture.
The arbiter for data memory (including EDS) arbitrates
between the CPU, the DMA and the MPLAB® ICD The bus master priority control allows the user
module. In the event of coincidental access to a bus by application to manipulate the real-time response of the
the bus masters, the arbiter determines which bus system, either statically during initialization or
master access has the highest priority. The other bus dynamically in response to real-time events.
masters are suspended and processed after the
access of the bus by the bus master with the highest TABLE 4-44: DATA MEMORY BUS
priority. ARBITER PRIORITY
By default, the CPU is Bus Master 0 (M0) with the MSTRPR<15:0> Bit Setting(1)
highest priority and the MPLAB ICD is Bus Master 4 Priority
(M4) with the lowest priority. The remaining bus master 0x0000 0x0020
(DMA Controller) is allocated to M3 (M1 and M2 are M0 (highest) CPU DMA
reserved and cannot be used). The user application
may raise or lower the priority of the DMA Controller to M1 Reserved CPU
be above that of the CPU by setting the appropriate bits M2 Reserved Reserved
in the EDS Bus Master Priority Control (MSTRPR) M3 DMA Reserved
register. All bus masters with raised priorities will
M4 (lowest) MPLAB® ICD MPLAB ICD
maintain the same priority relationship relative to each
other (i.e., M1 being highest and M3 being lowest, with Note 1: All other values of MSTRPR<15:0> are
M2 in between). Also, all the bus masters with priorities reserved.
MSTRPR<15:0>
M0 M1 M2 M3 M4
SRAM
Higher Address
fies reading, writing and manipulating the SSP (for
example, creating stack frames). PC<15:0> W15 (before CALL)
Note: To protect against misaligned stack b‘000000000’ PC<22:16>
accesses, W15<0> is fixed to ‘0’ by the <Free Word> W15 (after CALL)
hardware.
W15 is initialized to 0x1000 during all Resets. This
address ensures that the SSP points to valid RAM in all
dsPIC33EVXXXGM00X/10X family devices and per-
mits stack availability for non-maskable trap exceptions.
4.4 Instruction Addressing Modes
These can occur before the SSP is initialized by the
user software. You can reprogram the SSP during The addressing modes shown in Table 4-45 form the
initialization to any location within the Data Space. basis of the addressing modes optimized to support the
The SSP always points to the first available free word specific features of the individual instructions. The
and fills the software stack, working from lower toward addressing modes provided in the MAC class of
higher addresses. Figure 4-14 illustrates how it pre- instructions differ from those in the other instruction types.
decrements for a stack pop (read) and post-increments
for a stack push (writes). 4.4.1 FILE REGISTER INSTRUCTIONS
When the PC is pushed onto the stack, PC<15:0> are Most file register instructions use a 13-bit address field
pushed onto the first available stack word, then (f) to directly address data present in the first
PC<22:16> are pushed into the second available stack 8192 bytes of data memory (Near Data Space). Most
location. For a PC push during any CALL instruction, file register instructions employ a Working register, W0,
the MSB of the PC is zero-extended before the push, which is denoted as WREG in these instructions. The
as shown in Figure 4-14. During exception processing, destination is typically either the same file register or
the MSB of the PC is concatenated with the lower 8 bits WREG (with the exception of the MUL instruction),
of the CPU STATUS Register (SR). This allows the which writes the result to a register or register pair. The
contents of SRL to be preserved automatically during MOV instruction allows additional flexibility and can
interrupt processing. access the entire Data Space.
In summary, the following addressing modes are Note: Register Indirect with Register Offset
supported by move and accumulator instructions: Addressing mode is available only for W9 (in
X Data Space) and W11 (in Y Data Space).
• Register Direct
• Register Indirect In summary, the following addressing modes are
supported by the MAC class of instructions:
• Register Indirect Post-Modified
• Register Indirect Pre-Modified • Register Indirect
• Register Indirect with Register Offset (Indexed) • Register Indirect Post-Modified by 2
• Register Indirect with Literal Offset • Register Indirect Post-Modified by 4
• 8-Bit Literal • Register Indirect Post-Modified by 6
• 16-Bit Literal • Register Indirect with Register Offset (Indexed)
Note: Not all instructions support all the 4.4.5 OTHER INSTRUCTIONS
addressing modes given above. Individual
instructions may support different subsets Besides the addressing modes outlined previously, some
of these addressing modes. instructions use literal constants of various sizes. For
example, BRA (Branch) instructions use 16-bit signed
literals to specify the Branch destination directly, whereas
the DISI instruction uses a 14-bit unsigned literal field. In
some instructions, such as ULNK, the source of an
operand or result is implied by the opcode itself. Certain
operations, such as a NOP, do not have any operands.
4.5 Modulo Addressing The length of a circular buffer is not directly specified. It
is determined by the difference between the corre-
Modulo Addressing mode is a method of providing an sponding start and end addresses. The maximum
automated means to support circular data buffers using possible length of the circular buffer is 32K words
hardware. The objective is to remove the need for (64 Kbytes).
software to perform data address boundary checks
when executing tightly looped code, as is typical in 4.5.2 W ADDRESS REGISTER
many DSP algorithms. SELECTION
Modulo Addressing can operate in either Data or The Modulo and Bit-Reversed Addressing Control
Program Space (since the Data Pointer mechanism is register, MODCON<15:0>, contains enable flags, as well
essentially the same for both). One circular buffer can as a W register field to specify the W Address registers.
be supported in each of the X (which also provides the The XWM and YWM fields select the registers that
pointers into Program Space) and Y Data Spaces. operate with Modulo Addressing:
Modulo Addressing can operate on any W Register
Pointer. However, it is not advisable to use W14 or W15 • If XWM = 1111, X RAGU and X WAGU Modulo
for Modulo Addressing, since these two registers are Addressing is disabled
used as the SFP and SSP, respectively. • If YWM = 1111, Y AGU Modulo Addressing is
disabled
In general, any particular circular buffer can be config-
ured to operate in only one direction, as there are The X Address Space Pointer W register (XWM) to
certain restrictions on the buffer start address (for which Modulo Addressing is to be applied is stored in
incrementing buffers) or end address (for decrementing MODCON<3:0> (see Table 4-1). Modulo Addressing is
buffers), based upon the direction of the buffer. enabled for X Data Space when XWM is set to any
value other than ‘1111’ and the XMODEN bit
The only exception to the usage restrictions is for
(MODCON<15>) is set
buffers that have a power-of-two length. As these
buffers satisfy the start and end address criteria, they The Y Address Space Pointer W register (YWM) to
can operate in a Bidirectional mode (that is, address which Modulo Addressing is to be applied is stored in
boundary checks are performed on both the lower and MODCON<7:4>. Modulo Addressing is enabled for Y
upper address boundaries). Data Space when YWM is set to any value other than
‘1111’ and the YMODEN bit (MODCON<14>) is set.
4.5.1 START AND END ADDRESS Figure 4-15 shows an example of Modulo Addressing
The Modulo Addressing scheme requires that a operation.
starting and ending address be specified and loaded
into the 16-bit Modulo Buffer Address registers:
XMODSRT, XMODEND, YMODSRT and YMODEND
(see Table 4-1).
Note: Y Data Space Modulo Addressing EA
calculations assume word-sized data
(LSb of every EA is always clear).
Sequential Address
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 0
A3 A2 A1 A0 Decimal A3 A2 A1 A0 Decimal
0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 1 0 0 0 8
0 0 1 0 2 0 1 0 0 4
0 0 1 1 3 1 1 0 0 12
0 1 0 0 4 0 0 1 0 2
0 1 0 1 5 1 0 1 0 10
0 1 1 0 6 0 1 1 0 6
0 1 1 1 7 1 1 1 0 14
1 0 0 0 8 0 0 0 1 1
1 0 0 1 9 1 0 0 1 9
1 0 1 0 10 0 1 0 1 5
1 0 1 1 11 1 1 0 1 13
1 1 0 0 12 0 0 1 1 3
1 1 0 1 13 1 0 1 1 11
1 1 1 0 14 0 1 1 1 7
1 1 1 1 15 1 1 1 1 15
4.7 Interfacing Program and Data Table instructions allow an application to read or write
Memory Spaces to small areas of the program memory. This capability
makes the method ideal for accessing data tables that
The dsPIC33EVXXXGM00X/10X family architecture need to be updated periodically. It also allows access
uses a 24-bit wide Program Space and a 16-bit wide to all bytes of the program word. The remapping
Data Space. The architecture is also a modified Harvard method allows an application to access a large block of
scheme, meaning that data can also be present in the data on a read-only basis, which is ideal for look-ups
Program Space. To use this data successfully, it must be from a large table of static data. The application can
accessed in a way that preserves the alignment of only access the least significant word of the program
information in both the spaces. word.
Aside from normal execution, the architecture of the Table 4-47 shows the construction of the Program
dsPIC33EVXXXGM00X/10X family devices provides Space address.
two methods by which Program Space can be
How the data is accessed from Program Space is
accessed during operation:
shown in Figure 4-17.
• Using table instructions to access individual bytes
or words anywhere in the Program Space
• Remapping a portion of the Program Space into
the Data Space (Program Space Visibility)
23 Bits
EA 1/0
8 Bits 16 Bits
24 Bits
Note 1: The Least Significant bit (LSb) of Program Space addresses is always fixed as ‘0’ to maintain word alignment
of data in the Program and Data Spaces.
2: Table operations are not required to be word-aligned. Table Read operations are permitted in the configura-
tion memory space.
‘Phantom’ Byte
TBLRDH.B (Wn<0> = 0)
TBLRDL.B (Wn<0> = 1)
TBLRDL.B (Wn<0> = 0)
TBLRDL.W
The address for the table operation is determined by the data EA
within the page defined by the TBLPAG register.
Only read operations are shown; write operations are also valid
0x800000 in the user memory area.
NOTES:
5.0 FLASH PROGRAM MEMORY devices and then program the device just before
shipping the product. This also allows the most recent
Note 1: This data sheet summarizes the firmware or a custom firmware to be programmed.
features of the dsPIC33EVXXXGM00X/ Enhanced ICSP uses an on-board bootloader, known as
10X family of devices. It is not intended the Program Executive (PE), to manage the programming
to be a comprehensive reference process. Using an SPI data frame format, the Program
source. To complement the information Executive can erase, program and verify program
in this data sheet, refer to “Flash Pro- memory. For more information on Enhanced ICSP, refer
gramming” (DS70609) in the “dsPIC33/ to the specific device programming specification.
PIC24 Family Reference Manual”, which
is available from the Microchip web site RTSP is accomplished using the TBLRD (Table Read)
(www.microchip.com). and TBLWT (Table Write) instructions. With RTSP, the
user application can write program memory data as a
2: Some registers and associated bits double program memory word, a row of 64 instructions
described in this section may not be (192 bytes) and erase program memory in blocks of
available on all devices. Refer to 512 instruction words (1536 bytes) at a time.
Section 4.0 “Memory Organization” in
this data sheet for device-specific register
and bit information.
5.1 Table Instructions and Flash
Programming
The dsPIC33EVXXXGM00X/10X family devices
contain internal Flash program memory for storing and The Flash memory read and the double-word
executing application code. The memory is readable, programming operations make use of the TBLRD and
writable and erasable during normal operation over the TBLWT instructions, respectively. These allow direct read
entire VDD range. and write access to the program memory space from the
data memory while the device is in normal operating
The Flash memory can be programmed in the following mode. The 24-bit target address in the program memory
three ways: is formed using bits<7:0> of the TBLPAG register and
• In-Circuit Serial Programming™ (ICSP™) the Effective Address (EA) from a W register, specified
• Run-Time Self-Programming (RTSP) in the table instruction, as shown in Figure 5-1.
• Enhanced In-Circuit Serial Programming The TBLRDL and the TBLWTL instructions are used to
(Enhanced ICSP) read or write to bits<15:0> of the program memory.
TBLRDL and TBLWTL can access program memory in
ICSP allows for a dsPIC33EVXXXGM00X/10X family
both Word and Byte modes.
device to be serially programmed while in the end
application circuit. This is done with two lines for The TBLRDH and TBLWTH instructions are used to read
programming clock and programming data (PGECx/ or write to bits<23:16> of the program memory.
PGEDx) lines, and three other lines for power (VDD), TBLRDH and TBLWTH can also access program
ground (VSS) and Master Clear (MCLR). This allows memory in Word or Byte mode.
customers to manufacture boards with unprogrammed
24 Bits
Using
Program Counter
0 Program Counter 0
Working Reg EA
Using
Table Instruction
1/0 TBLPAG Reg
8 Bits 16 Bits
User/Configuration Byte
Space Select 24-Bit EA Select
Increasing
Address
section for the page sizes of each device.memory array 0x00 MSB1
is organized into rows of 64 instructions or 192 bytes.
LSW2
RTSP allows the user application to era
The Flash program memory array is organized into 0x00 MSB2
rows of 64 instructions or 192 bytes. RTSP allows the
user application to erase a page of program memory, UNCOMPRESSED FORMAT (RPDF = 0)
which consists of eight rows (512 instructions) at a
time, and to program one row or two adjacent words at
15 7 0
a time. The 8-row erase pages and single row write
LSW1 Even Byte
rows are edge-aligned, from the beginning of program
Address
Increasing
Address
memory, on boundaries of 1536 bytes and 192 bytes,
MSB2 MSB1
respectively. Table 30-13 in Section 30.0 “Electrical
Characteristics” lists the typical erase and LSW2
programming times.
The basic sequence for RTSP word programming is to COMPRESSED FORMAT (RPDF = 1)
use the TBLWTL and TBLWTH instructions to load two of
the 24-bit instructions into the write latches found in
configuration memory space. See Figure 4-1 to 5.3 Programming Operations
Figure 4-5 for write latch addresses. Programming is
A complete programming sequence is necessary for
performed by unlocking and setting the control bits in
programming or erasing the internal Flash in RTSP
the NVMCON register.
mode. The processor stalls (waits) until the program-
Row programming is performed by loading 192 bytes ming operation is finished. Setting the WR bit
into data memory and then loading the address of the (NVMCON<15>) starts the operation and the WR bit is
first byte in that row into the NVMSRCADR register. automatically cleared when the operation is finished.
Once the write has been initiated, the device will auto-
matically load the write latches and increment the 5.3.1 PROGRAMMING ALGORITHM FOR
NVMSRCADR and the NVMADR(U) registers until all FLASH PROGRAM MEMORY
bytes have been programmed. The RPDF bit
Programmers can program two adjacent words
(NVMCON<9>) selects the format of the stored data in
(24 bits x 2) of program Flash memory at a time on
RAM to be either compressed or uncompressed. See
every other word address boundary (0x000002,
Figure 5-2 for data formatting. Compressed data helps
0x000006, 0x00000A, etc.). To do this, erase the page
to reduce the amount of required RAM by using the
that contains the desired address of the location the
upper byte of the second word for the MSB of the second
user wants to change. For protection against accidental
instruction.
operations, the write initiate sequence for NVMKEY
For more information on erasing and programming the must be used to allow any erase or program operation
Flash memory, refer to “Flash Programming” to proceed. After the programming command has been
(DS70609) in the “dsPIC33/PIC24 Family Reference executed, the user application must wait for the
Manual”. programming time until programming is complete. The
Note 1: Before reprogramming either of the two two instructions following the start of the programming
words in a double-word pair, the user sequence should be NOPs.
must erase the Flash memory page in Refer to “Flash Programming” (DS70609) in the
which it is located. “dsPIC33/PIC24 Family Reference Manual” for details
2: Before reprogramming any word in a row, and code examples on programming using RTSP.
the user must erase the Flash memory
page in which it is located.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
RESET Instruction
Glitch Filter
MCLR
WDT
Module
Sleep or Idle
BOR
Internal
Regulator SYSRST
VDD
Trap Conflict
Illegal Opcode
Uninitialized W Register
Security Reset
Configuration Mismatch
Illegal Address Mode Reset
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: All of the Reset status bits can be set or cleared in software. Setting one of these bits in software does not
cause a device Reset.
2: If the FWDTEN<1:0> Configuration bits are ‘11’ (unprogrammed), the WDT is always enabled, regardless
of the SWDTEN bit setting.
Note 1: All of the Reset status bits can be set or cleared in software. Setting one of these bits in software does not
cause a device Reset.
2: If the FWDTEN<1:0> Configuration bits are ‘11’ (unprogrammed), the WDT is always enabled, regardless
of the SWDTEN bit setting.
Interrupt Vector 52
Interrupt Vector 53 BSLIM<12:0>(1) + 0x00007E
Interrupt Vector 54 BSLIM<12:0>(1) + 0x000080 See Table 7-1 for
: : Interrupt Vector Details
: :
: :
Interrupt Vector 116 BSLIM<12:0>(1) + 0x0000FC
Interrupt Vector 117 BSLIM<12:0>(1) + 0x00007E
Interrupt Vector 118 BSLIM<12:0>(1) + 0x000100
Interrupt Vector 119 BSLIM<12:0>(1) + 0x000102
Interrupt Vector 120 BSLIM<12:0>(1) + 0x000104
: :
: :
: :
Interrupt Vector 244 BSLIM<12:0>(1) + 0x0001FC
Interrupt Vector 245 BSLIM<12:0>(1) + 0x0001FE
Note 1: The address depends on the size of the Boot Segment defined by BSLIM<12:0>:
[(BSLIM<12:0> – 1) x 0x400] + Offset.
7.4.2 IFSx
The IFSx registers maintain all of the interrupt request
flags. Each source of interrupt has a status bit, which is
set by the respective peripherals or external signal and
is cleared through software.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
U-0 U-0 U-0 U-0 U-0 U-0 R-0, HS, SC R-0, HS, SC
— — — — — — ECCDBE(1) SGHT
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
8.0 DIRECT MEMORY ACCESS The DMA Controller transfers data between Peripheral
Data registers and Data Space SRAM. For the
(DMA)
simplified DMA block diagram, refer to Figure 8-1.
Note 1: This data sheet summarizes the features In addition, DMA can access the entire data memory
of the dsPIC33EVXXXGM00X/10X family space. The data memory bus arbiter is utilized when
of devices. It is not intended to be a either the CPU or DMA attempts to access SRAM,
comprehensive reference source. To resulting in potential DMA or CPU stalls.
complement the information in this data
The DMA Controller supports 4 independent channels.
sheet, refer to “Direct Memory Access
Each channel can be configured for transfers to or from
(DMA)” (DS70348) in the “dsPIC33/
selected peripherals. The peripherals supported by the
PIC24 Family Reference Manual”, which
DMA Controller include:
is available from the Microchip web site
(www.microchip.com). • CAN
2: Some registers and associated bits • Analog-to-Digital Converter (ADC)
described in this section may not be • Serial Peripheral Interface (SPI)
available on all devices. Refer to • UART
Section 4.0 “Memory Organization” in • Input Capture
this data sheet for device-specific register • Output Compare
and bit information.
Refer to Table 8-1 for a complete list of supported
peripherals.
Data Memory
PERIPHERAL DMA Arbiter
(see Figure 4-13)
SRAM
In addition, DMA transfers can be triggered by timers • Peripheral Indirect Addressing mode (peripheral
as well as external interrupts. Each DMA channel is generates destination address)
unidirectional. Two DMA channels must be allocated to • CPU Interrupt after Half or Full Block Transfer
read and write to a peripheral. If more than one channel Complete
receives a request to transfer data, a simple fixed • Byte or Word Transfers
priority scheme, based on channel number, dictates
• Fixed Priority Channel Arbitration
which channel completes the transfer and which
channel or channels are left pending. Each DMA • Manual (software) or Automatic (peripheral DMA
channel moves a block of data, after which, it generates requests) Transfer Initiation
an interrupt to the CPU to indicate that the block is • One-Shot or Auto-Repeat Block Transfer modes
available for processing. • Ping-Pong mode (automatic switch between two
The DMA Controller provides these functional SRAM start addresses after each block transfer
capabilities: complete)
• DMA Request for Each Channel can be Selected
• Four DMA Channels
from any Supported Interrupt Source
• Register Indirect with Post-Increment Addressing
• Debug Support Features
mode
• Register Indirect without Post-Increment The peripherals that can utilize DMA are listed in
Addressing mode Table 8-1.
DMA Controller
DMA IRQ to DMA
DMA Ready and Interrupt
Control
DMA
Arbiter Channels Peripheral 1 Controller
Modules
0 1 2 3 CPU DMA
DMA X-Bus
Note: CPU and DMA address buses are not shown for clarity.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: The FORCE bit cannot be cleared by user software. The FORCE bit is cleared by hardware when the
forced DMA transfer is complete or the channel is disabled (CHEN = 0).
2: This select bit is only available on dsPIC33EVXXXGM10X devices.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 STA<15:0>: DMA Primary Start Address bits (source or destination)
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 STB<15:0>: DMA Secondary Start Address bits (source or destination)
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: If the channel is enabled (i.e., active), writes to this register may result in unpredictable behavior of the
DMA channel and should be avoided.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: If the channel is enabled (i.e., active), writes to this register may result in unpredictable behavior of the
DMA channel and should be avoided.
2: The number of DMA transfers = CNT<13:0> + 1.
REGISTER 8-9: DSADRH: DMA MOST RECENT RAM HIGH ADDRESS REGISTER
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
— — — — — — — —
bit 15 bit 8
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
REGISTER 8-10: DSADRL: DMA MOST RECENT RAM LOW ADDRESS REGISTER
R-0 R-0 R-0 R-0 R-0 R-0 R-0 R-0
DSADR<15:8>
bit 15 bit 8
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 DSADR<15:0>: Most Recent DMA Address Accessed by DMA bits
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
NOTES:
Primary Oscillator
OSC1 DOZE<2:0>
POSCCLK XT, HS, EC
S2
XTPLL, HSPLL,
S3 ECPLL, FRCPLL
S1/S3
DOZE
FCY(2)
S1 PLL(1)
OSC2 FVCO(1)
POSCMD<1:0>
FP(2)
FRCDIV
FRCCLK ÷2
FRC FRCDIVN
Oscillator S7
FOSC
FRCDIV<2:0>
TUN<5:0> FRCDIV16 Reference Clock Generation
÷ 16 S6
FRC POSCCLK
S0 REFCLKO
÷N
FOSC
LPRC LPRC RPn
S5
Oscillator
S7 NOSC<2:0> FNOSC<2:0>
WDT, PWRT
FSCM, CTMU
9.1 CPU Clocking System For instruction execution speed or device operating
frequency, FCY, see Equation 9-1.
The dsPIC33EVXXXGM00X/10X family of devices
provides the following six system clock options: EQUATION 9-1: DEVICE OPERATING
• Fast RC (FRC) Oscillator FREQUENCY
• FRC Oscillator with Phase-Locked Loop (PLL) FCY = FOSC/2
• FRC Oscillator with Postscaler
• Primary (XT, HS or EC) Oscillator Figure 9-2 provides the block diagram of the PLL
• Primary Oscillator with PLL module.
• Low-Power RC (LPRC) Oscillator Equation 9-2 provides the relationship between input
frequency (FIN) and output frequency (FOSC).
Equation 9-3 provides the relationship between input
frequency (FIN) and VCO frequency (FSYS).
0.8 MHz < FPLLI(1) < 8.0 MHz 120 MHz < FSYS(1) < 340 MHz FOSC < 140 MHz
PLLPRE<4:0>
÷M PLLPST<1:0>
PLLDIV<8:0>
Where:
N1 = PLLPRE<4:0> + 2
N2 = 2 x (PLLPOST<1:0> + 1)
M = PLLDIV<8:0> + 2
Note 1: Writes to this register require an unlock sequence. Refer to “Oscillator” (DS70580) in the
“dsPIC33/PIC24 Family Reference Manual” (available from the Microchip web site) for details.
2: Direct clock switches between any Primary Oscillator mode with PLL and FRCPLL mode are not permit-
ted. This applies to clock switches in either direction. In these instances, the application must switch to
FRC mode as a transitional clock source between the two PLL modes.
3: This register resets only on a Power-on Reset (POR).
4: COSC<2:0> bits will be set to ‘0b100’ when FRC fails.
5: User cannot write ‘0b100’ to NOSC<2:0>. COSC<2:0> will be set to ‘0b100’ (BFRC) when the FRC fails.
Note 1: Writes to this register require an unlock sequence. Refer to “Oscillator” (DS70580) in the
“dsPIC33/PIC24 Family Reference Manual” (available from the Microchip web site) for details.
2: Direct clock switches between any Primary Oscillator mode with PLL and FRCPLL mode are not permit-
ted. This applies to clock switches in either direction. In these instances, the application must switch to
FRC mode as a transitional clock source between the two PLL modes.
3: This register resets only on a Power-on Reset (POR).
4: COSC<2:0> bits will be set to ‘0b100’ when FRC fails.
5: User cannot write ‘0b100’ to NOSC<2:0>. COSC<2:0> will be set to ‘0b100’ (BFRC) when the FRC fails.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: This bit is cleared when the ROI bit is set and an interrupt occurs.
2: This register resets only on a Power-on Reset (POR).
3: DOZE<2:0> bits can only be written to when the DOZEN bit is clear. If DOZEN = 1, any writes to
DOZE<2:0> are ignored.
4: The DOZEN bit cannot be set if DOZE<2:0> = 000. If DOZE<2:0> = 000, any attempt by user software to
set the DOZEN bit is ignored.
Note 1: This bit is cleared when the ROI bit is set and an interrupt occurs.
2: This register resets only on a Power-on Reset (POR).
3: DOZE<2:0> bits can only be written to when the DOZEN bit is clear. If DOZEN = 1, any writes to
DOZE<2:0> are ignored.
4: The DOZEN bit cannot be set if DOZE<2:0> = 000. If DOZE<2:0> = 000, any attempt by user software to
set the DOZEN bit is ignored.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: The reference oscillator output must be disabled (ROON = 0) before writing to these bits.
2: This pin is remappable. See Section 11.5 “Peripheral Pin Select (PPS)” for more information.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: This single bit enables and disables all four DMA channels.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
NOTES:
11.0 I/O PORTS the I/O pin. The logic also prevents “loop through”, in
which a port’s digital output can drive the input of a
Note 1: This data sheet summarizes the features peripheral that shares the same pin. Figure 11-1
of the dsPIC33EVXXXGM00X/10X family illustrates how ports are shared with other peripherals
of devices. It is not intended to be a and the associated I/O pin to which they are connected.
comprehensive reference source. To com- When a peripheral is enabled and the peripheral is
plement the information in this data sheet, actively driving an associated pin, the use of the pin as a
refer to “I/O Ports” (DS70000598) in the general purpose output pin is disabled. The I/O pin can
“dsPIC33/PIC24 Family Reference Man- be read, but the output driver for the parallel port bit is
ual”, which is available from the Microchip disabled. If a peripheral is enabled, but the peripheral is
web site (www.microchip.com). not actively driving a pin, that pin can be driven by a port.
2: Some registers and associated bits All port pins have eight registers directly associated
described in this section may not be with their operation as digital I/O. The Data Direction
available on all devices. Refer to register (TRISx) determines whether the pin is an input
Section 4.0 “Memory Organization” in or an output. If the Data Direction register bit is a ‘1’,
this data sheet for device-specific register then the pin is an input. All port pins are defined as
and bit information. inputs after a Reset. Reads from the latch (LATx), read
Many of the device pins are shared among the the latch; writes to the latch, write the latch. Reads from
peripherals and the Parallel I/O ports. All I/O input ports the port (PORTx), read the port pins, while writes to the
feature Schmitt Trigger inputs for improved noise port pins, write the latch.
immunity. All the pins in the device are 5V tolerant pins. Any bit and its associated data and control registers
that are not valid for a particular device are disabled.
11.1 Parallel I/O (PIO) Ports This means that the corresponding LATx and TRISx
registers, and the port pin are read as zeros.
Generally, a Parallel I/O port that shares a pin with a
peripheral is subservient to the peripheral. The When a pin is shared with another peripheral or
peripheral’s output buffer data and control signals are function that is defined as an input only, it is
provided to a pair of multiplexers. The multiplexers nevertheless regarded as a dedicated port, because
select whether the peripheral or the associated port there is no other competing source of output.
has ownership of the output data and control signals of
Data Bus
D Q I/O Pin
WR TRISx
CK
TRISx Latch
D Q
WR LATx +
WR PORTx CK
Data Latch
Read LATx
Input Data
Read PORTx
For example, Figure 11-2 shows the remappable pin 11.5.4.1 Virtual Connections
selection for the U1RX input.
dsPIC33EVXXXGM00X/10X family devices support
virtual (internal) connections to the output of the
FIGURE 11-2: REMAPPABLE INPUT FOR op amp/comparator module (see Figure 25-1 in
U1RX Section 25.0 “Op Amp/Comparator Module”).
TABLE 11-2: INPUT PIN SELECTION FOR SELECTABLE INPUT SOURCES (CONTINUED)
Peripheral Pin Peripheral Pin
Input/ Input/
Select Input Pin Assignment Select Input Pin Assignment
Output Output
Register Value Register Value
011 0001 I/O RP49 101 1110 I RPI94
110 0000 I RPI96 101 1111 I RPI95
110 0001 I/O RP97 111 0011 — —
110 0010 — — 111 0100 — —
110 0011 — — 111 0101 — —
110 0100 — — 111 0110 I/O RP118
110 0101 — — 111 0111 I RPI119
110 0110 — — 111 1000 I/O RP120
110 0111 — — 111 1001 I RPI121
110 1000 — — 111 1010 — —
110 1001 — — 111 1011 — —
110 1010 — — 111 1100 I RPI124
110 1011 — — 111 1101 I/O RP125
101 0101 — — 111 1110 I/O RP126
101 0110 — — 111 1111 I/O RP127
101 0111 — — 10110000 I/O RP176(1)
110 1100 — — 10110001 I/O RP177(1)
110 1101 — — 10110010 I/O RP178(1)
110 1110 — — 10110011 I/O RP179(1)
110 1111 — — 10110100 I/O RP180(1)
111 0010 — — 10110101 I/O RP181(1)
Legend: Shaded rows indicate the PPS Input register values that are unimplemented.
Note 1: These are virtual pins. See Section 11.5.4.1 “Virtual Connections” for more information on selecting
this pin assignment.
11.5.5.1 Mapping Limitations across any or all of the RPn pins is possible. This
includes both many-to-one, and one-to-many map-
The control schema of the peripheral select pins is not
pings of peripheral inputs and outputs to pins. While
limited to a small range of fixed peripheral configura-
such mappings may be technically possible from a con-
tions. There are no mutual or hardware-enforced
figuration point of view, they may not be supportable
lockouts between any of the peripheral mapping SFRs.
from an electrical point of view.
Literally any combination of peripheral mappings
11.6 High-Voltage Detect (HVD) 3. Most I/O pins have multiple functions. Referring
to the device pin diagrams in this data sheet, the
dsPIC33EVXXXGM00X/10X devices contain High- priorities of the functions allocated to any pins
Voltage Detection (HVD) which monitors the VCAP are indicated by reading the pin name, from left-
voltage. The HVD is used to monitor the VCAP supply to-right. The left most function name takes
voltage to ensure that an external connection does not precedence over any function to its right in the
raise the value above a safe level (~2.4V). If high core naming convention; for example, AN16/T2CK/
voltage is detected, all I/Os are disabled and put in a tri- T7CK/RC1. This indicates that AN16 is the high-
state condition. The device remains in this I/O tri-state est priority in this example and will supersede all
condition as long as the high-voltage condition is other functions to its right in the list. Those other
present. functions to its right, even if enabled, would not
work as long as any other function to its left was
11.7 I/O Helpful Tips enabled. This rule applies to all of the functions
listed for a given pin.
1. In some cases, certain pins, as defined in
Table 30-10 under “Injection Current”, have 4. Each pin has an internal weak pull-up resistor
internal protection diodes to VDD and VSS. The and pull-down resistor that can be configured
term, “Injection Current”, is also referred to as using the CNPUx and CNPDx registers, respec-
“Clamp Current”. On designated pins with suffi- tively. These resistors eliminate the need for
cient external current-limiting precautions by the external resistors in certain applications. The
user, I/O pin input voltages are allowed to be internal pull-up is up to ~(VDD – 0.8), not VDD.
greater or less than the data sheet absolute This value is still above the minimum VIH of
maximum ratings, with respect to the VSS and CMOS and TTL devices.
VDD supplies. Note that when the user applica- 5. When driving LEDs directly, the I/O pin can
tion forward biases either of the high or low side source or sink more current than what is
internal input clamp diodes that the resulting specified in the VOH/IOH and VOL/IOL DC charac-
current being injected into the device, that is teristic specifications. The respective IOH and
clamped internally by the VDD and VSS power IOL current rating only applies to maintaining the
rails, may affect the ADC accuracy by four to six corresponding output at or above the VOH, and
counts. at or below the VOL levels. However, for LEDs,
2. I/O pins that are shared with any analog input pin unlike digital inputs of an externally connected
(i.e., ANx) are always analog pins by default after device, they are not governed by the same min-
any Reset. Consequently, configuring a pin as an imum VIH/VIL levels. An I/O pin output can safely
analog input pin automatically disables the digital sink or source any current less than that listed in
input pin buffer and any attempt to read the digital the absolute maximum rating section of this data
input level by reading PORTx or LATx will always sheet. For example:
return a ‘0’, regardless of the digital logic level on VOH = 4.4V at IOH = -8 mA and VDD = 5V
the pin. To use a pin as a digital I/O pin on a The maximum output current sourced by any
shared ANx pin, the user application needs to 8 mA I/O pin = 12 mA.
configure the Analog Pin Configuration registers
in the I/O ports module (i.e., ANSELx) by setting LED source current, <12 mA, is technically
the appropriate bit that corresponds to that I/O permitted. For more information, refer to the VOH/
port pin to a ‘0’. IOH specifications in Section 30.0 “Electrical
Characteristics”.
Note: Although it is not possible to use a digital
input pin when its analog function is
enabled, it is possible to use the digital I/O
output function, TRISx = 0x0, while the
analog function is also enabled. However,
this is not recommended, particularly if the
analog input is connected to an external
analog voltage source, which would
create signal contention between the
analog signal and the output pin driver.
6. The PPS pin mapping rules are as follows: • Any number of “input” remappable functions
• Only one “output” function can be active on a can be mapped to the same pin(s) at the
given pin at any time, regardless if it is a same time, including to any pin with a single
dedicated or remappable function (one pin, output from either a dedicated or remappable
one output). “output”.
• It is possible to assign a “remappable output” • The TRISx registers control only the digital
function to multiple pins and externally short I/O output buffer. Any other dedicated or
or tie them together for increased current remappable active “output” will automatically
drive. override the TRISx setting. The TRISx regis-
• If any “dedicated output” function is enabled ter does not control the digital logic “input”
on a pin, it will take precedence over any buffer. Remappable digital “inputs” do not
remappable “output” function. automatically override TRISx settings, which
means that the TRISx bit must be set to input
• If any “dedicated digital” (input or output)
for pins with only remappable input
function is enabled on a pin, any number of
function(s) assigned
“input” remappable functions can be mapped
to the same pin. • All analog pins are enabled by default after
any Reset and the corresponding digital input
• If any “dedicated analog” function(s) are
buffer on the pin is disabled. Only the Analog
enabled on a given pin, “digital input(s)” of
Pin Select registers control the digital input
any kind will all be disabled, although a single
buffer, not the TRISx register. The user must
“digital output”, at the user’s cautionary dis-
disable the analog function on a pin using the
cretion, can be enabled and active as long as
Analog Pin Select registers in order to use
there is no signal contention with an external
any “digital input(s)” on a corresponding pin;
analog input signal. For example, it is
no exceptions.
possible for the ADC to convert the digital
output logic level, or to toggle a digital output
on a comparator or ADC input provided there
is no external analog input, such as for a
built-in self-test.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 INT1R<7:0>: Assign External Interrupt 1 (INT1) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 Unimplemented: Read as ‘0’
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 IC2R<7:0>: Assign Input Capture 2 (IC2) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 IC1R<7:0>: Assign Input Capture 1 (IC1) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 IC4R<7:0>: Assign Input Capture 4 (IC4) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 IC3R<7:0>: Assign Input Capture 3 (IC3) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 FLT2R<7:0>: Assign PWM Fault 2 (FLT2) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 FLT1R<7:0>: Assign PWM Fault 1 (FLT1) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 SCK2R<7:0>: Assign SPI2 Clock Input (SCK2) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 SDI2R<7:0>: Assign SPI2 Data Input (SDI2) to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 SYNCI1R<7:0>: Assign PWM Synchronization Input 1 to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 Unimplemented: Read as ‘0’
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 DTCMP1R<7:0>: Assign PWM Dead-Time Compensation Input 1 to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 Unimplemented: Read as ‘0’
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 DTCMP3R<7:0>: Assign PWM Dead-Time Compensation Input 3 to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 DTCMP2R<7:0>: Assign PWM Dead-Time Compensation Input 2 to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 SENT1R<7:0>: Assign SENT Module Input 1 to the Corresponding RPn Pin bits
(see Table 11-2 for input pin selection numbers)
10110101 = Input tied to RPI181
•
•
•
00000001 = Input tied to CMP1
00000000 = Input tied to VSS
bit 7-0 Unimplemented: Read as ‘0’
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
NOTES:
12.0 TIMER1 The Timer1 module can operate in one of the following
modes:
Note 1: This data sheet summarizes the features of • Timer mode
the dsPIC33EVXXXGM00X/10X family of
• Gated Timer mode
devices. It is not intended to be a
comprehensive reference source. To com- • Synchronous Counter mode
plement the information in this data sheet, • Asynchronous Counter mode
refer to “Timers” (DS70362) in the In Timer and Gated Timer modes, the input clock is
“dsPIC33/PIC24 Family Reference Man- derived from the internal instruction cycle clock (FCY).
ual”, which is available from the Microchip In Synchronous and Asynchronous Counter modes,
web site (www.microchip.com). the input clock is derived from the external clock input
2: Some registers and associated bits at the T1CK pin.
described in this section may not be The Timer modes are determined by the following bits:
available on all devices. Refer to
Section 4.0 “Memory Organization” in • Timer Clock Source Control bit (TCS): T1CON<1>
this data sheet for device-specific register • Timer Synchronization Control bit (TSYNC):
and bit information. T1CON<2>
• Timer Gate Control bit (TGATE): T1CON<6>
The Timer1 module is a 16-bit timer that can operate as
a free-running, interval timer/counter. Timer control bit settings for different operating modes
are given in Table 12-1.
The Timer1 module has the following unique features
over other timers:
TABLE 12-1: TIMER MODE SETTINGS
• Can be Operated in Asynchronous Counter mode
Mode TCS TGATE TSYNC
from an External Clock Source
• The Timer1 External Clock Input (T1CK) can Timer 0 0 x
Optionally be Synchronized to the Internal Device Gated Timer 0 1 x
Clock and the Clock Synchronization is
Synchronous 1 x 1
Performed after the Prescaler
Counter
A block diagram of Timer1 is shown in Figure 12-1. Asynchronous 1 x 0
Counter
FP(1) Prescaler 10
T1CLK
(/n) TGATE
Reset Data
00 TMR1 Latch
TCKPS<1:0>
0 CLK
T1CK x1
Prescaler Equal
Sync 1 Comparator
(/n) CTMU Edge
Control Logic
TGATE
TSYNC
TCKPS<1:0> TCS
PR1
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: When Timer1 is enabled in External Synchronous Counter mode (TCS = 1, TSYNC = 1, TON = 1), any
attempts by user software to write to the TMR1 register are ignored.
13.0 TIMER2/3 AND TIMER4/5 Individually, all four of the 16-bit timers can function as
synchronous timers or counters. They also offer the
Note 1: This data sheet summarizes the features of features listed previously, except for the event trigger;
the dsPIC33EVXXXGM00X/10X family of this is implemented only with Timer2/3. The operating
devices. It is not intended to be a modes and enabled features are determined by setting
comprehensive reference source. To the appropriate bit(s) in the T2CON, T3CON, T4CON
complement the information in this data and T5CON registers. T2CON and T4CON are shown
sheet, refer to “Timers” (DS70362) in the in generic form in Register 13-1. The T3CON and
“dsPIC33/PIC24 Family Reference T5CON registers are shown in Register 13-2.
Manual”, which is available from the For 32-bit timer/counter operation, Timer2 and Timer4
Microchip web site (www.microchip.com). are the least significant word (lsw). Timer3 and Timer5
2: Some registers and associated bits are the most significant word (msw) of the 32-bit timers.
described in this section may not be
Note: For 32-bit operation, the T3CON and
available on all devices. Refer to
T5CON control bits are ignored. Only the
Section 4.0 “Memory Organization” in
T2CON and T4CON control bits are used
this data sheet for device-specific register
for setup and control. Timer2 and Timer4
and bit information.
clock and gate inputs are utilized for the
These modules are 32-bit timers, which can also be 32-bit timer modules, but an interrupt is
configured as four independent, 16-bit timers with generated with the Timer3 and Timer5
selectable operating modes. interrupt flags.
As a 32-bit timer, Timer2/3 and Timer4/5 operate in the Block diagrams for the Type B and Type C timers are
following three modes: shown in Figure 13-1 and Figure 13-2, respectively.
• Two Independent 16-Bit Timers (e.g., Timer2 and A block diagram for an example 32-bit timer pair
Timer3) with all 16-Bit Operating modes (except (Timer2/3 and Timer4/5) is shown in Figure 13-3.
Asynchronous Counter mode)
Note: Only Timer2, Timer3, Timer4 and Timer5
• Single 32-Bit Timer can trigger a DMA data transfer.
• Single 32-Bit Synchronous Counter
They also support these features:
• Timer Gate Operation
• Selectable Prescaler Settings
• Timer Operation during Idle and Sleep modes
• Interrupt on a 32-Bit Period Register Match
• Time Base for Input Capture and Output Compare
Modules
• ADC1 Event Trigger (Timer2/3 only)
FP(1) Prescaler 10
TxCLK
(/n) TGATE
Reset Data
00 TMRx Latch
TCKPS<1:0>
CLK
TxCK
Prescaler
Sync x1
(/n) Equal
Comparator
TCKPS<1:0> TGATE
TCS
PRx
FP(1) Prescaler 10
TxCLK
(/n) TGATE
Reset Data
00 TMRx Latch
TCKPS<1:0>
CLK
TxCK
Prescaler
Sync x1
(/n) Equal
Comparator
ADC Start of
Conversion
TGATE Trigger(2)
TCKPS<1:0>
TCS
PRx
FIGURE 13-3: TYPE B/TYPE C TIMER PAIR BLOCK DIAGRAM (32-BIT TIMER)
PRx PRy
0
TGATE
Equal ADC(4)
Comparator
Data
FP(1) Prescaler 10
(/n) CLK
lsw msw Latch
Reset
TCKPS<1:0>
00 TMRx(2) TMRy(3)
TxCK
Prescaler
Sync x1
(/n)
TMRyHLD
TCKPS<1:0> TGATE
TCS
Data Bus<15:0>
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: The TxCK pin is not available on all timers. Refer to the “Pin Diagrams” section for the available pins.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: When 32-bit operation is enabled (T2CON<3> = 1), these bits have no effect on Timery operation; all timer
functions are set through TxCON.
2: When 32-bit timer operation is enabled (T32 = 1) in the Timerx Control register (TxCON<3>), the TSIDL
bit must be cleared to operate the 32-bit timer in Idle mode.
3: The TyCK pin is not available on all timers. See the “Pin Diagrams” section for the available pins.
NOTES:
14.0 DEADMAN TIMER (DMT) The primary function of the Deadman Timer (DMT) is to
reset the processor in the event of a software malfunc-
Note 1: This data sheet summarizes the features tion. The DMT, which works on the system clock, is a
of the dsPIC33EVXXXGM00X/10X family free-running instruction fetch timer, which is clocked
of devices. It is not intended to be a whenever an instruction fetch occurs, until a count
comprehensive reference source. To match occurs. Instructions are not fetched when the
complement the information in this processor is in Sleep mode.
data sheet, refer to “Deadman Timer DMT can be enabled in the Configuration fuse or by
(DMT)” (DS70005155) in the “dsPIC33/ software in the DMTCON register by setting the ON bit.
PIC24 Family Reference Manual”, which The DMT consists of a 32-bit counter with a time-out
is available from the Microchip web site count match value, as specified by the two 16-bit
(www.microchip.com). Configuration Fuse registers: FDMTCNTL and
2: Some registers and associated bits FDMTCNTH.
described in this section may not be A DMT is typically used in mission-critical, and safety-
available on all devices. Refer to critical applications, where any single failure of the
Section 4.0 “Memory Organization” in software functionality and sequencing must be
this data sheet for device-specific register detected.
and bit information.
Figure 14-1 shows a block diagram of the Deadman
Timer module.
BAD1
BAD2 Improper Sequence
Flag
DMT Enable(1)
32-Bit Counter (Counter) = DMT Max Count(1) DMT Event
Instruction Fetched Strobe(2)
System Clock
Note 1: DMT Max Count is controlled by the initial value of the FDMTCNTL and FDMTCNTH Configuration registers.
2: DMT window interval is controlled by the value of the FDMTINTVL and FDMTINTVH Configuration registers.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: This bit has control only when DMTEN = 0 in the FDMT register.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 COUNTER<15:0>: Read Current Contents of Lower DMT Counter bits
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 COUNTER<31:16>: Read Current Contents of Higher DMT Counter bits
REGISTER 14-7: DMTPSCNTL: DMT POST CONFIGURE COUNT STATUS REGISTER LOW
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
PSCNT<15:8>
bit 15 bit 8
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 PSCNT<15:0>: Lower DMT Instruction Count Value Configuration Status bits
This is always the value of the FDMTCNTL Configuration register.
REGISTER 14-8: DMTPSCNTH: DMT POST CONFIGURE COUNT STATUS REGISTER HIGH
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
PSCNT<31:24>
bit 15 bit 8
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 PSCNT<31:16>: Higher DMT Instruction Count Value Configuration Status bits
This is always the value of the FDMTCNTH Configuration register.
REGISTER 14-9: DMTPSINTVL: DMT POST CONFIGURE INTERVAL STATUS REGISTER LOW
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
PSINTV<15:8>
bit 15 bit 8
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 PSINTV<15:0>: Lower DMT Window Interval Configuration Status bits
This is always the value of the FDMTINTVL Configuration register.
REGISTER 14-10: DMTPSINTVH: DMT POST CONFIGURE INTERVAL STATUS REGISTER HIGH
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
PSINTV<31:24>
bit 15 bit 8
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 PSINTV<31:16>: Higher DMT Window Interval Configuration Status bits
This is always the value of the FDMTINTVH Configuration register.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 UPRCNT<15:0>: Value of the DMTCNTH register when DMTCNTL and DMTCNTH were Last Read bits
Note 1: The DMTHOLDREG register is initialized to ‘0’ on Reset, and is only loaded when the DMTCNTL and
DMTCNTH registers are read.
ICTSEL<2:0>
Increment
16
ICx Clock Clock
ICxTMR 4-Level FIFO Buffer
Sources Select 16
Note 1: The trigger/sync source is enabled by default and is set to Timer3 as a source. This timer must be enabled for
proper ICx module operation or the trigger/sync source must be changed to another source option.
U-0 R/W-0 R/W-0 R-0, HC, HS R-0, HC, HS R/W-0 R/W-0 R/W-0
— ICI1 ICI0 ICOV ICBNE ICM2 ICM1 ICM0
bit 7 bit 0
Note 1: The IC32 bit in both the odd and even ICx must be set to enable Cascade mode.
2: The input source is selected by the SYNCSEL<4:0> bits of the ICxCON2 register.
3: This bit is set by the selected input source (selected by the SYNCSEL<4:0> bits); it can be read, set and
cleared in software.
4: Do not use the ICx module as its own sync or trigger source.
5: This option should only be selected as a trigger source and not as a synchronization source.
6: When the source ICx timer rolls over, then in the next clock cycle, trigger or synchronization occurs.
Note 1: The IC32 bit in both the odd and even ICx must be set to enable Cascade mode.
2: The input source is selected by the SYNCSEL<4:0> bits of the ICxCON2 register.
3: This bit is set by the selected input source (selected by the SYNCSEL<4:0> bits); it can be read, set and
cleared in software.
4: Do not use the ICx module as its own sync or trigger source.
5: This option should only be selected as a trigger source and not as a synchronization source.
6: When the source ICx timer rolls over, then in the next clock cycle, trigger or synchronization occurs.
16.0 OUTPUT COMPARE sources for its time base. The module compares the
value of the timer with the value of one or two Compare
Note 1: This data sheet summarizes the features registers, depending on the operating mode selected.
of the dsPIC33EVXXXGM00X/10X family The state of the output pin changes when the timer
of devices. It is not intended to be a value matches the Compare register value. The output
comprehensive reference source. To compare module generates either a single output
complement the information in this data pulse, or a sequence of output pulses, by changing the
sheet, refer to “Output Compare” state of the output pin on the compare match events.
(DS70005157) in the “dsPIC33/PIC24 The output compare module can also generate
Family Reference Manual”, which is interrupts on compare match events and trigger DMA
available from the Microchip web site data transfers.
(www.microchip.com).
Figure 16-1 shows a block diagram of the output
2: Some registers and associated bits compare module.
described in this section may not be
available on all devices. Refer to Note: For more information on OCxR and
Section 4.0 “Memory Organization” in OCxRS register restrictions, refer to the
this data sheet for device-specific register “Output Compare” (DS70005157)
and bit information. section in the “dsPIC33/PIC24 Family
Reference Manual”.
The dsPIC33EVXXXGM00X/10X family devices
support up to 4 output compare modules. The output
compare module can select one of eight available clock
OCxCON1
OCxCON2
OCxR
CTMU Edge
Rollover/Reset Control Logic
OCxR Buffer
OCx Pin
Comparator
Increment Match
OCx Clock Clock Event
Sources Select
OCxTMR OCx Output and
Rollover Fault Logic
Reset
Comparator OCFA
Match Event Match
Trigger and Event
Trigger and
Sync Sources Sync Logic
OCxRS Buffer
SYNCSEL<4:0> Rollover/Reset
Trigger(1)
OCx Synchronization/Trigger Event
OCxRS
OCx Interrupt
Reset
Note 1: The trigger/sync source is enabled by default and is set to Timer2 as a source. This timer must be enabled for
proper OCx module operation or the trigger/sync source must be changed to another source option.
Note 1: Do not use the OCx module as its own synchronization or trigger source.
2: When the OCy module is turned off, it sends a trigger out signal. If the OCx module uses the OCy module
as a trigger source, the OCy module must be unselected as a trigger source prior to disabling it.
Note 1: Do not use the OCx module as its own synchronization or trigger source.
2: When the OCy module is turned off, it sends a trigger out signal. If the OCx module uses the OCy module
as a trigger source, the OCy module must be unselected as a trigger source prior to disabling it.
NOTES:
17.0 HIGH-SPEED PWM MODULE The high-speed PWMx module contains up to three
PWM generators. Each PWM generator provides two
Note 1: This data sheet summarizes the features of PWM outputs: PWMxH and PWMxL. The master time
the dsPIC33EVXXXGM00X/10X family base generator provides a synchronous signal as a
of devices. It is not intended to be a common time base to synchronize the various PWM
comprehensive reference source. To com- outputs. The individual PWM outputs are available on
plement the information in this data sheet, the output pins of the device. The input Fault signals
refer to “High-Speed PWM” (DS70645) in and current-limit signals, when enabled, can monitor
the “dsPIC33/PIC24 Family Reference and protect the system by placing the PWM outputs
Manual”, which is available from the into a known “safe” state.
Microchip web site (www.microchip.com). Each PWMx can generate a trigger to the ADC module
2: Some registers and associated bits to sample the analog signal at a specific instance
described in this section may not be during the PWM period. In addition, the high-speed
available on all devices. Refer to PWMx module also generates a Special Event Trigger
Section 4.0 “Memory Organization” in to the ADC module based on the master time base.
this data sheet for device-specific register The high-speed PWMx module can synchronize itself
and bit information. with an external signal or can act as a synchronizing
The dsPIC33EVXXXGM00X/10X family devices source to any external device. The SYNCI1 input pin,
support a dedicated Pulse-Width Modulation (PWM) that utilizes PPS, can synchronize the high-speed
module with up to 6 outputs. PWMx module with an external signal. The SYNCO1
pin is an output pin that provides a synchronous signal
The high-speed PWMx module consists of the to an external device.
following major features:
Figure 17-1 illustrates an architectural overview of the
• Three PWM Generators high-speed PWMx module and its interconnection with
• Two PWM Outputs per PWM Generator the CPU and other peripherals.
• Individual Period and Duty Cycle for each PWM Pair
• Duty Cycle, Dead Time, Phase Shift and 17.1 PWM Faults
Frequency Resolution of 8.32 ns
The PWMx module incorporates multiple external Fault
• Independent Fault and Current-Limit Inputs for inputs as follows:
Six PWM Outputs
• FLT1 and FLT2, available on 28-pin, 44-pin and
• Redundant Output
64-pin packages, which are remappable using the
• Center-Aligned PWM mode PPS feature
• Output Override Control • FLT3, available on 44-pin and 64-pin packages,
• Chop mode (also known as Gated mode) which is available as a fixed pin
• Special Event Trigger • FLT4-FLT8, available on 64-pin packages, which
• Prescaler for Input Clock are available as fixed pins
• PWMxL and PWMxH Output Pin Swapping • FLT32 is available on a fixed pin on all devices
• Independent PWM Frequency, Duty Cycle and These Faults provide a safe and reliable way to safely
Phase-Shift Changes for each PWM Generator shut down the PWM outputs when the Fault input is
• Dead-Time Compensation asserted.
• Enhanced Leading-Edge Blanking (LEB)
Functionality 17.1.1 PWM FAULTS AT RESET
• Frequency Resolution Enhancement During any Reset event, the PWMx module maintains
• PWM Capture Functionality ownership of the Class B Fault, FLT32. At Reset, this
Fault is enabled in Latched mode to ensure the fail-safe
Note: In Edge-Aligned PWM mode, the duty power-up of the application. The application software
cycle, dead time, phase shift and frequency must clear the PWM Fault before enabling the high-
resolution are 8.32 ns at 60 MIPS. speed motor control PWMx module. To clear the Fault
condition, the FLT32 pin must first be pulled low
externally or the internal pull-down resistor in the
CNPDx register can be enabled.
Note: The Fault mode may be changed using
the FLTMOD<1:0> bits (FCLCONx<1:0>),
regardless of the state of FLT32.
17.1.2 WRITE-PROTECTED REGISTERS To gain write access to these locked registers, the user
application must write two consecutive values (0xABCD
On dsPIC33EVXXXGM00X/10X family devices, write
and 0x4321) to the PWMKEY register to perform the
protection is implemented for the IOCONx and
unlock operation. The write access to the IOCONx or
FCLCONx registers. The write protection feature
FCLCONx registers must be the next SFR access
prevents any inadvertent writes to these registers.
following the unlock process. There can be no other SFR
This protection feature can be controlled by the
accesses during the unlock process and subsequent
PWMLOCK Configuration bit (FDEVOPT<0>). The
write access. To write to both the IOCONx and
default state of the write protection feature is enabled
FCLCONx registers requires two unlock operations.
(PWMLOCK = 1). The write protection feature can be
disabled by configuring PWMLOCK = 0. The correct unlocking sequence is described in
Example 17-1.
SYNCI1
Data Bus
SYNCO1
Synchronization Signal
PWM1 Interrupt(1)
PWM1H
PWM
Generator 1
PWM1L
Fault, Current-Limit
and Dead-Time Compensation
Synchronization Signal
Synchronization Signal
Note 1: The PWM interrupts are generated by logically ORing the FLTSTAT, CLSTAT and TRGSTAT status bits for the
given PWM generator. For more information, refer to “High-Speed PWM” (DS70645) in the “dsPIC33/PIC24
Family Reference Manual”.
FOSC
SYNCI1
PWMKEY IOCONx and FCLCONx Unlock Register
SYNCO1
PTPER SEVTCMP Special Event Compare Trigger
Special Event
Comparator Comparator Postscaler
Special Event Trigger
Master Time Base Counter
Clock
PMTMR Prescaler Primary Master Time Base
MUX
16-Bit Data Bus
FCLCONx
Synchronization
IOCONx ALTDTRx
PWMCONx,
LEBCONx,
AUXCONx
Master Duty Cycle
TRGCONx LEBDLYx
Master Period
DTRx
PWMxH
PWMxL
PWM Generator 2 and PWM Generator 3
FLTx
DTCMPx
Note 1: The PWM interrupts are generated by logically ORing the FLTSTAT, CLSTAT and TRGSTAT status bits for the
given PWM generator. For more information, refer to, “High-Speed PWM” (DS70645) in the “dsPIC33/PIC24
Family Reference Manual”.
Note 1: These bits should be changed only when PTEN = 0. In addition, when using the SYNCI1 feature, the user
application must program the Period register with a value that is slightly larger than the expected period of
the external synchronization input signal.
Note 1: These bits should be changed only when PTEN = 0. In addition, when using the SYNCI1 feature, the user
application must program the Period register with a value that is slightly larger than the expected period of
the external synchronization input signal.
REGISTER 17-2: PTCON2: PWMx PRIMARY MASTER CLOCK DIVIDER SELECT REGISTER
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
— — — — — — — —
bit 15 bit 8
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: These bits should be changed only when PTEN = 0. Changing the clock selection during operation will
yield unpredictable results.
REGISTER 17-3: PTPER: PWMx PRIMARY MASTER TIME BASE PERIOD REGISTER
R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1
PTPER<15:8>
bit 15 bit 8
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 PTPER<15:0>: Primary Master Time Base (PMTMR) Period Value bits
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: Software must clear the interrupt status here and in the corresponding IFSx bit in the interrupt controller.
2: These bits should not be changed after the PWMx is enabled (PTEN = 1).
3: DTC<1:0> = 11 for DTCP to be effective; else, DTCP is ignored.
4: The Independent Time Base (ITB = 1) mode must be enabled to use Center-Aligned mode. If ITB = 0, the
CAM bit is ignored.
5: To operate in External Period Reset mode, the ITB bit must be ‘1’ and the CLMOD bit in the FCLCONx
register must be ‘0’.
Note 1: Software must clear the interrupt status here and in the corresponding IFSx bit in the interrupt controller.
2: These bits should not be changed after the PWMx is enabled (PTEN = 1).
3: DTC<1:0> = 11 for DTCP to be effective; else, DTCP is ignored.
4: The Independent Time Base (ITB = 1) mode must be enabled to use Center-Aligned mode. If ITB = 0, the
CAM bit is ignored.
5: To operate in External Period Reset mode, the ITB bit must be ‘1’ and the CLMOD bit in the FCLCONx
register must be ‘0’.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-0 PHASEx<15:0>: PWMx Phase-Shift Value or Independent Time Base Period for the PWM Generator bits
Note 1: If ITB (PWMCONx<9>) = 0, the following applies based on the mode of operation:
Complementary, Redundant and Push-Pull Output modes (PMOD<1:0> (IOCONx<11:10>) = 00, 01 or
10), PHASEx<15:0> = Phase-shift value for PWMxH and PWMxL outputs.
2: If ITB (PWMCONx<9>) = 1, the following applies based on the mode of operation:
Complementary, Redundant and Push-Pull Output modes (PMOD<1:0> (IOCONx<11:10>) = 00, 01 or 10),
PHASEx<15:0> = Independent Time Base period value for PWMxH and PWMxL.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: The secondary PWM generator cannot generate PWMx trigger interrupts.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: These bits should not be changed after the PWMx module is enabled (PTEN = 1).
2: If the PWMLOCK Configuration bit (FDEVOPT<0>) is a ‘1’, the IOCONx register can only be written after
the unlock sequence has been executed.
Note 1: These bits should not be changed after the PWMx module is enabled (PTEN = 1).
2: If the PWMLOCK Configuration bit (FDEVOPT<0>) is a ‘1’, the IOCONx register can only be written after
the unlock sequence has been executed.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: If the PWMLOCK Configuration bit (FDEVOPT<0>) is a ‘1’, the FCLCONx register can only be written after
the unlock sequence has been executed.
2: These bits should be changed only when PTEN = 0. Changing the clock selection during operation will yield
unpredictable results.
Note 1: If the PWMLOCK Configuration bit (FDEVOPT<0>) is a ‘1’, the FCLCONx register can only be written after
the unlock sequence has been executed.
2: These bits should be changed only when PTEN = 0. Changing the clock selection during operation will yield
unpredictable results.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: The blanking signal is selected through the BLANKSEL<3:0> bits in the AUXCONx register.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
NOTES:
18.0 SERIAL PERIPHERAL The SPI1 module uses dedicated pins which allow for a
higher speed when using SPI1. The SPI2 module takes
INTERFACE (SPI)
advantage of the Peripheral Pin Select (PPS) feature to
Note 1: This data sheet summarizes the features allow for greater flexibility in pin configuration of this
of the dsPIC33EVXXXGM00X/10X family module, but results in a lower maximum speed. See
of devices. It is not intended to be a Section 30.0 “Electrical Characteristics” for more
comprehensive reference source. To information.
complement the information in this data The SPIx serial interface consists of the following four
sheet, refer to “Serial Peripheral pins:
Interface (SPI)” (DS70005185) in the
• SDIx: Serial Data Input
“dsPIC33/PIC24 Family Reference Man-
ual”, which is available from the Microchip • SDOx: Serial Data Output
web site (www.microchip.com). • SCKx: Shift Clock Input or Output
2: Some registers and associated bits • SSx/FSYNCx: Active-Low Slave Select or Frame
described in this section may not be Synchronization I/O Pulse
available on all devices. Refer to Note: All of the 4 pins of the SPIx serial interface
Section 4.0 “Memory Organization” in must be configured as digital in the
this data sheet for device-specific register ANSELx registers.
and bit information.
The SPIx module can be configured to operate with
The Serial Peripheral Interface (SPI) module is a two, three or four pins. In 3-pin mode, SSx is not used.
synchronous serial interface, useful for communicating In 2-pin mode, neither SDOx nor SSx is used.
with other peripheral or microcontroller devices. These Figure 18-1 illustrates the block diagram of the SPIx
peripheral devices can be serial EEPROMs, shift reg- module in Standard and Enhanced modes.
isters, display drivers, ADC Converters, etc. The SPI
module is compatible with the Motorola® SPI and SIOP
interfaces.
The dsPIC33EVXXXGM00X/10X device family offers
two SPI modules on a single device, SPI1 and SPI2,
that are functionally identical. Each SPI module
includes an eight-word FIFO buffer and allows DMA
bus connections. When using the SPI module with
DMA, FIFO operation can be disabled.
Note: In this section, the SPI modules are
referred to together as SPIx, or separately
as SPI1 and SPI2. Special Function
Registers follow a similar notation. For
example, SPIxCON refers to the control
register for the SPI1 and SPI2 modules.
Transfer Transfer
SPIxBUF
16
Internal Data Bus
R/W-0 R/C-0, HS R/W-0 R/W-0 R/W-0 R/W-0 R-0, HS, HC R-0, HS, HC
SRMPT SPIROV SRXMPT SISEL2 SISEL1 SISEL0 SPITBF SPIRBF
bit 7 bit 0
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: The CKE bit is not used in Framed SPI modes. Program this bit to ‘0’ for Framed SPI modes
(FRMEN = 1).
2: This bit must be cleared when FRMEN = 1.
3: Do not set both primary and secondary prescalers to the value of 1:1.
Note 1: The CKE bit is not used in Framed SPI modes. Program this bit to ‘0’ for Framed SPI modes
(FRMEN = 1).
2: This bit must be cleared when FRMEN = 1.
3: Do not set both primary and secondary prescalers to the value of 1:1.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
19.0 INTER-INTEGRATED CIRCUIT Figure 19-1 shows a block diagram of the I2C module.
(I2C)
19.1 I2C Baud Rate Generator
Note 1: This data sheet summarizes the features
The Baud Rate Generator (BRG) used for I2C mode
of the dsPIC33EVXXXGM00X/10X family
operation is used to set the SCL clock frequency for
of devices. It is not intended to be a
100 kHz, 400 kHz and 1 MHz. The BRG reload value is
comprehensive reference source. To
contained in the I2CxBRG register. The BRG will
complement the information in this data
automatically begin counting on a write to the I2CxTRN
sheet, refer to “Inter-Integrated Circuit™
register.
(I2C™)” (DS70000195) in the “dsPIC33/
PIC24 Family Reference Manual”, which Equation 19-1 and Equation 19-2 provide the BRG
is available from the Microchip web site reload formula and FSCL frequency, respectively.
(www.microchip.com).
2: Some registers and associated bits EQUATION 19-1: BRG FORMULA
described in this section may not be
available on all devices. Refer to I2CxBRG = (( F 1
SCL
– Delay x FCY
) 2 )–2
Section 4.0 “Memory Organization” in
this data sheet for device-specific register Where:
and bit information. Delay varies from 110 ns to 130 ns.
The dsPIC33EVXXXGM00X/10X family of devices
contains one Inter-Integrated Circuit (I2C) module, I2C1. EQUATION 19-2: FSCL FREQUENCY
The I2C module provides complete hardware support
for both Slave and Multi-Master modes of the I2C serial FSCL = FCY/((I2CxBRG + 2) * 2)
communication standard, with a 16-bit interface.
The I2C module has the following 2-pin interface:
• The SCLx pin is clock.
• The SDAx pin is data.
The I2C module offers the following key features:
• I2C Interface Supporting Both Master and Slave
modes of Operation
• I2C Slave mode Supports 7 and 10-Bit Addressing
• I2C Master mode Supports 7 and 10-Bit Addressing
• I2C Port allows Bidirectional Transfers between
Master and Slaves
• Serial Clock Synchronization for I2C Port can be
used as a Handshake Mechanism to Suspend
and Resume Serial Transfer (SCLREL control)
• I2C Supports Multi-Master Operation, Detects Bus
Collision and Arbitrates Accordingly
• Support for Address Bit Masking up to Lower 7 Bits
• I2C Slave Enhancements:
- SDAx hold time selection of SMBus (300 ns
or 150 ns)
- Start/Stop bit interrupt enables
Internal
Data Bus
I2CxRCV
Read
Shift
SCLx/ASCLx Clock
I2CxRSR
LSb
I2CxMSK
Write Read
I2CxADD
Read
Read
Collision Write
Detect
I2CxCON
Acknowledge
Generation Read
Clock
Stretching
Write
I2CxTRN
LSb
Shift Clock Read
Reload
Control
Write
Read
FCY
Note 1: Automatically cleared to ‘0’ at the beginning of slave transmission; automatically cleared to ‘0’ at the end
of slave reception.
2: Automatically cleared to ‘0’ at the beginning of slave transmission.
Note 1: Automatically cleared to ‘0’ at the beginning of slave transmission; automatically cleared to ‘0’ at the end
of slave reception.
2: Automatically cleared to ‘0’ at the beginning of slave transmission.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
R/C-0, HS R/C-0, HS R-0, HSC R/C-0, HSC R/C-0, HSC R-0, HSC R-0, HSC R-0, HSC
IWCOL I2COV D_A P S R_W RBF TBF
bit 7 bit 0
bit 15 ACKSTAT: Acknowledge Status bit (updated in all Master and Slave modes)
1 = Acknowledge was not received from slave
0 = Acknowledge was received from slave
bit 14 TRSTAT: Transmit Status bit (when operating as I2C master; applicable to master transmit operation)
1 = Master transmit is in progress (8 bits + ACK)
0 = Master transmit is not in progress
bit 13 ACKTIM: Acknowledge Time Status bit (valid in I2C Slave mode only)
1 = Indicates I2C bus is in an Acknowledge sequence, set on 8th falling edge of SCLx clock
0 = Not an Acknowledge sequence, cleared on 9th rising edge of SCLx clock
bit 12-11 Unimplemented: Read as ‘0’
bit 10 BCL: Bus Collision Detect bit (Master/Slave mode; cleared when I2C module is disabled, I2CEN = 0)
1 = A bus collision has been detected during a master or slave transmit operation
0 = Bus collision has not been detected
bit 9 GCSTAT: General Call Status bit (cleared after Stop detection)
1 = General call address was received
0 = General call address was not received
bit 8 ADD10: 10-Bit Address Status bit (cleared after Stop detection)
1 = 10-bit address was matched
0 = 10-bit address was not matched
bit 7 IWCOL: Write Collision Detect bit
1 = An attempt to write to the I2CxTRN register failed because the I2C module is busy; must be cleared
in software
0 = Collision has not occurred
bit 6 I2COV: I2Cx Receive Overflow Flag bit
1 = A byte was received while the I2CxRCV register is still holding the previous byte; I2COV is a “don’t
care” in Transmit mode, must be cleared in software
0 = Overflow has not occurred
bit 5 D_A: Data/Address bit (when operating as I2C slave)
1 = Indicates that the last byte received was data
0 = Indicates that the last byte received or transmitted was an address
bit 4 P: I2Cx Stop bit
Updated when Start, Reset or Stop is detected; cleared when the I2C module is disabled, I2CEN = 0.
1 = Indicates that a Stop bit has been detected last
0 = Indicates that a Stop bit was not detected last
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
NOTES:
SENTxCON1 SENTxSTAT
SENTxCON2 SENTxSYNC
SENTxCON3 SENTxDATH/L
SENTx TX
Output SENTx Edge
Driver Control
SENTx RX
Edge Sync Period Control and
Detect Detector Error Detection
Sync Period Status Data 1 Data 2 Data 3 Data 4 Data 5 Data 6 CRC Pause (optional)
Where:
TFRAME = Total time of the message from ms
N = The number of data nibbles in message, 1-6
Where:
TFRAME = Total time of the message from ms
N = The number of data nibbles in message, 1-6
FRCV = FCY x prescaler
TCLK = FCY/Prescaler
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: Register bits are read-only in Receive mode (RCVEN = 1). In Transmit mode, the CRC<3:0> bits are
read-only when automatic CRC calculation is enabled (RCVEN = 0, CRCEN = 1).
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: Register bits are read-only in Receive mode (RCVEN = 1). In Transmit mode, the CRC<3:0> bits are
read-only when automatic CRC calculation is enabled (RCVEN = 0, CRCEN = 1).
NOTES:
21.0 UNIVERSAL ASYNCHRONOUS hardware flow control option with the UxCTS and
UxRTS pins, and also includes an IrDA® encoder and
RECEIVER TRANSMITTER decoder.
(UART)
Note: Hardware flow control using UxRTS and
Note 1: This data sheet summarizes the features UxCTS is not available on all pin count
of the dsPIC33EVXXXGM00X/10X devices. See the “Pin Diagrams” section
family of devices. It is not intended to be a for availability.
comprehensive reference source. To
complement the information in this data The primary features of the UARTx module are:
sheet, refer to “Universal Asynchro- • Full-Duplex, 8 or 9-Bit Data Transmission through
nous Receiver Transmitter (UART)” the UxTX and UxRX Pins
(DS70000582) in the “dsPIC33/PIC24 • Even, Odd or No Parity Options (for 8-bit data)
Family Reference Manual”, which is
• One or Two Stop Bits
available from the Microchip web site
(www.microchip.com). • Hardware Flow Control Option with UxCTS and
UxRTS Pins
2: Some registers and associated bits
• Fully Integrated Baud Rate Generator with 16-Bit
described in this section may not be
Prescaler
available on all devices. Refer to
Section 4.0 “Memory Organization” in • Baud Rates Ranging from 4.375 Mbps to 67 bps at
this data sheet for device-specific register 16x mode at 70 MIPS
and bit information. • Baud Rates Ranging from 17.5 Mbps to 267 bps at
4x mode at 70 MIPS
The dsPIC33EVXXXGM00X/10X family of devices • 4-Deep First-In First-Out (FIFO) Transmit Data
contains two UART modules. Buffer
The Universal Asynchronous Receiver Transmitter • 4-Deep FIFO Receive Data Buffer
(UART) module is one of the serial I/O modules • Parity, Framing and Buffer Overrun Error Detection
available in the dsPIC33EVXXXGM00X/10X device
• Support for 9-Bit mode with Address Detect
family. The UART is a full-duplex, asynchronous
(9th bit = 1)
system that can communicate with peripheral devices,
such as personal computers, LIN/J2602, RS-232 and • Transmit and Receive Interrupts
RS-485 interfaces. The module also supports a • A Separate Interrupt for All UART Error Conditions
IrDA®
21.1 UART Helpful Tips 2. The first character received on wake-up from
Sleep mode, caused by activity on the UxRX pin
1. In multi-node direct connect UART networks, of the UART module, will be invalid. In Sleep
UART receive inputs react to the complementary mode, peripheral clocks are disabled. By the
logic level defined by the URXINV bit time the oscillator system has restarted and
(UxMODE<4>), which defines the Idle state, the stabilized from Sleep mode, the baud rate bit
default of which is logic high (i.e., URXINV = 0). sampling clock, relative to the incoming UxRX
Because remote devices do not initialize at the bit timing, is no longer synchronized, resulting in
same time, it is likely that one of the devices, the first character being invalid. This is to be
because the RX line is floating, will trigger a Start expected.
bit detection and will cause the first byte received,
after the device has been initialized, to be invalid.
To avoid this situation, the user should use a pull-
up or pull-down resistor on the RX pin, depending
on the value of the URXINV bit.
a) If URXINV = 0, use a pull-up resistor on the
RX pin.
b) If URXINV = 1, use a pull-down resistor on
the RX pin.
Note 1: Refer to “Universal Asynchronous Receiver Transmitter (UART)” (DS70000582) in the “dsPIC33/
PIC24 Family Reference Manual” for information on enabling the UART module for transmit operation.
Note 1: Refer to “Universal Asynchronous Receiver Transmitter (UART)” (DS70000582) in the “dsPIC33/
PIC24 Family Reference Manual” for information on enabling the UART module for transmit operation.
RxF15 Filter
RxF14 Filter
RxF13 Filter
RxF12 Filter
RxF11 Filter
DMA Controller
RxF10 Filter
RxF9 Filter
RxF8 Filter
Control
CPU
Configuration Bus
Logic
CAN Protocol
Engine
Interrupts
CxTx CxRx
22.2 Modes of Operation Modes are requested by setting the REQOP<2:0> bits
(CxCTRL1<10:8>). Entry into a mode is Acknowledged
The CANx module can operate in one of several by monitoring the OPMODE<2:0> bits (CxCTRL1<7:5>).
operation modes selected by the user. These modes The module does not change the mode and the
include: OPMODEx bits until a change in mode is acceptable,
• Initialization mode generally during bus Idle time, which is defined as at least
• Disable mode 11 consecutive recessive bits.
• Normal Operation mode
• Listen Only mode
• Listen All Messages mode
• Loopback mode
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend: C = Writable bit, but only ‘0’ can be written to clear the bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend: C = Writable bit, but only ‘0’ can be written to clear the bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend: C = Writable bit, but only ‘0’ can be written to clear the bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend: C = Writable bit, but only ‘0’ can be written to clear the bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend: C = Writable bit, but only ‘0’ can be written to clear the bit
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note: The buffers, SID, EID, DLC, Data Field and Receive Status registers, are located in DMA RAM.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: Only written by module for receive buffers, unused for transmit buffers.
23.0 CHARGE TIME Together with other on-chip analog modules, the
CTMU can be used to precisely measure time,
MEASUREMENT UNIT (CTMU) measure capacitance, measure relative changes in
Note 1: This data sheet summarizes the features capacitance or generate output pulses that are
of the dsPIC33EVXXXGM00X/10X family independent of the system clock.
of devices. It is not intended to be a The CTMU module is ideal for interfacing with
comprehensive reference source. To capacitive-based sensors. The CTMU is controlled
complement the information in this data through three registers: CTMUCON1, CTMUCON2
sheet, refer to “Charge Time Measure- and CTMUICON. CTMUCON1 and CTMUCON2
ment Unit (CTMU)” (DS70661) in the enable the module and control edge source selection,
“dsPIC33/PIC24 Family Reference edge source polarity selection and edge sequencing.
Manual”, which is available on the The CTMUICON register controls the selection and
Microchip web site (www.microchip.com). trim of the current source.
2: Some registers and associated bits
described in this section may not be
available on all devices. Refer to
Section 4.0 “Memory Organization” in
this data sheet for device-specific register
and bit information.
CTMUCON1 or CTMUCON2
CTMUICON
CTED1 ITRIM<5:0>
IRNG<1:0>
CTED2
Current Source
FOSC
Edge
OSCI Pin Control
FRC Logic
EDG1STAT CTMU
BFRC Control Analog-to-Digital
EDG2STAT TGEN Trigger
LPRC Current Logic
Control
Timer1
OC1 Pulse
IC1 CTPLS
Generator
CMP1 CTMUI to ADC (1)
CTMUP
CTMU TEMP
CTMU C1IN1-
Temperature
Sensor
CDelay
CMP1
External Capacitor
for Pulse Generation
Note 1: Current source to particular ANx pins is provided only when 10-Bit ADC mode is chosen.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: The ADC module Sample-and-Hold (S&H) capacitor is not automatically discharged between sample/
conversion cycles. Any software using the ADC as part of a capacitance measurement must discharge the
ADC capacitor before conducting the measurement. The IDISSEN bit, when set to ‘1’, performs this func-
tion. The ADC must be sampling while the IDISSEN bit is active to connect the discharge sink to the
capacitor array.
2: If the TGEN bit is set to ‘1’, then the CMP1 module should be selected as the Edge 2 source in the
EDG2SELx bits field; otherwise, the module will not function.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: This current range is not available for use with the internal temperature measurement diode.
2: Refer to the CTMU Current Source Specifications (Table 30-53) in Section 30.0 “Electrical Characteristics”
for the current range selection values.
3: Current sources are not generated when 12-Bit ADC mode is chosen. Current sources are active only
when 10-Bit ADC mode is chosen.
dsPIC33EVXXXGM00X/10X FAMILY
This diagram depicts all of the available
ADC connection options to the four S&H 000000
amplifiers, which are designated: CH0,
AN0-AN31 Channel Scan 1
CH1, CH2 and CH3.
OA1-OA3, OA5
The ANx analog pins or op amp outputs are From CTMU
CH0SA<5:0>(1) 0
connected to the CH0-CH3 amplifiers Current Source (CTMUI)
111111
through the multiplexers, controlled by the S&H0 CSCNA
SFR control bits, CH0Sx, CH0Nx, + A
AN32-AN63 CH0Sx
CH123Sx and CH123Nx. 100000 CH0Sx CH0
(AN61-Band Gap Voltage – CH0SB<5:0>(1) B
AN62-CTMU Temp Diode
AN63-Not Connected) 111111 VREFL 0
1 CH0NA(1) A
CH0Nx
(1)
AN0/OA2OUT/RA0 CH0NB B
000 CH0Nx
001
PGEC1/AN4/C1IN1+/RPI34/RB2 ++ S&H1
CMP1
010 + CH123SA<2:0> A
/OA1 011 CH1 CH123Sx
PGED1/AN5/C1IN1-/RP35/RB3 –– – CH123SB<2:0> B
OA1 1xx
PGEC3/AN3/OA1OUT/RPI33/CTED1/RB1 CH123Sx
VREFL 0x
CH123NA<1:0> A
10 CH123Nx
AN9/RPI27/RA11 11 CH123NB<1:0> B
000 CH123Nx
AN1/C2IN1+/RA1
001 S&H2
+ 010 + Alternate Input
CH2 ALTS (MUX A/MUX B)
011
– – Selection
1xx
OA2
CH123Sx
VREFL 0x
10
AN10/RPI28/RA12 11
AVDD AVSS
PGED3/AN2/C2IN1-/SS1/RPI32/CTED2/RB0 CH123Nx
000
ADC1BUF0(2,3)
2013-2016 Microchip Technology Inc.
AN8/C3IN1+/U1RTS/BCLK1/RC2 +
001 S&H3
010 + ADC1BUF1(3)
CH3 VREFH VREFL ADC1BUF2(3)
AN7/C3IN1-/C4IN1-/RC1 – 011 –
OA3 1xx
CH123Sx
AN6/OA3OUT/C4IN1+/RC0
VREFL 0x SAR ADC
10
AN11/C1IN2-/U1CTS/RC11 11
Note 1: Channels 1, 2 and 3 are not applicable for the 12-bit mode of operation.
2: When ADDMAEN (ADxCON4<8>) = 0, ADC1BUF0-ADC1BUFF are used.
3: When ADDMAEN (ADxCON4<8>) = 1 enabling DMA, only ADC1BUF0 is used.
dsPIC33EVXXXGM00X/10X FAMILY
ADxCON3<15>
ADC Internal
1
RC Clock(2)
TAD
ADxCON3<7:0> 0
ADC Conversion
TP(1) Clock Multiplier
1, 2, 3, 4, 5,..., 256
Note 1: TP = 1/FP.
2: Refer to the ADC electrical specifications in Section 30.0 “Electrical Characteristics” for
the exact RC clock value.
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0, HC, HS R/C-0, HC, HS
SSRC2 SSRC1 SSRC0 SSRCG SIMSAM ASAM SAMP DONE(1)
bit 7 bit 0
Note 1: Do not clear the DONE bit in software if auto-sample is enabled (ASAM = 1).
Note 1: Do not clear the DONE bit in software if auto-sample is enabled (ASAM = 1).
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: The ADCx VREFH Input is connected to AVDD and the VREFL input is connected to AVSS.
Note 1: The ADCx VREFH Input is connected to AVDD and the VREFL input is connected to AVSS.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: These bits are only used if SSRC<2:0> (ADxCON1<7:5>) = 111 and SSRCG (ADxCON1<4>) = 0.
2: These bits are not used if ADRC (ADxCON3<15>) = 1.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15 CH0NB: Channel 0 Negative Input Select for Sample MUX B bit
1 = Channel 0 negative input is AN1(1)
0 = Channel 0 negative input is VREFL
bit 14 Unimplemented: Read as ‘0’
bit 13-8 CH0SB<5:0>: Channel 0 Positive Input Select for Sample MUX B bits(1,3)
111111 = Channel 0 positive input is AN63
111110 = Channel 0 positive input is AN62
111101 = Channel 0 positive input is AN61 (internal band gap voltage)
•
•
•
011111 = Channel 0 positive input is AN31
011110 = Channel 0 positive input is AN30
•
•
•
000001 = Channel 0 positive input is AN1
000000 = Channel 0 positive input is AN0 (Op Amp 2)(2)
bit 7 CH0NA: Channel 0 Negative Input Select for Sample MUX A bit
1 = Channel 0 negative input is AN1(1)
0 = Channel 0 negative input is VREFL
bit 6 Unimplemented: Read as ‘0’
Note 1: AN0 to AN7 are repurposed when comparator and op amp functionality are enabled. See Figure 24-1 to
determine how enabling a particular op amp or comparator affects selection choices for Channels 1, 2 and 3.
2: If the op amp is selected (OPAEN bit (CMxCON<10>) = 1), the OAx input is used; otherwise, the ANx
input is used.
3: See the “Pin Diagrams” section for the available analog channels for each device.
Note 1: AN0 to AN7 are repurposed when comparator and op amp functionality are enabled. See Figure 24-1 to
determine how enabling a particular op amp or comparator affects selection choices for Channels 1, 2 and 3.
2: If the op amp is selected (OPAEN bit (CMxCON<10>) = 1), the OAx input is used; otherwise, the ANx
input is used.
3: See the “Pin Diagrams” section for the available analog channels for each device.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: If the op amp is selected (OPAEN bit (CMxCON<10>) = 1), the OAx input is used; otherwise, the ANx
input is used.
2: All bits in this register can be selected by the user application. However, inputs selected for scan without a
corresponding input on the device convert VREFL.
REGISTER 24-7: ADxCSSH: ADCx INPUT SCAN SELECT REGISTER HIGH(2) (CONTINUED)
bit 1 CSS17: ADCx Input Scan Selection bit
1 = Selects ANx for input scan
0 = Skips ANx for input scan
bit 0 CSS16: ADCx Input Scan Selection bit
1 = Selects ANx for input scan
0 = Skips ANx for input scan
Note 1: If the op amp is selected (OPAEN bit (CMxCON<10>) = 1), the OAx input is used; otherwise, the ANx
input is used.
2: All bits in this register can be selected by the user application. However, inputs selected for scan without a
corresponding input on the device convert VREFL.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: On devices with less than 16 analog inputs, all bits in this register can be selected by the user application.
However, inputs selected for scan without a corresponding input on the device convert VREFL.
2: CSSx = ANx, where ‘x’ = 0-5.
OA1/AN3/C4IN2- 01
OA2/AN0/C4IN3- 10
OA3/AN6/C4IN4- 11
C4IN1- 00
VIN- – Blanking Digital C4OUT(1)
CMP4 Function Filter
VIN+ (see Figure 25-3) Trigger
C4IN1+ 0 + (see Figure 25-2) Output
CVREFIN 1
CREF (CMxCON<4>)
Note 1: The CxOUT pin is not a dedicated output pin on the device. This must be mapped to a physical pin using
Peripheral Pin Select (PPS). Refer to Section 11.0 “I/O Ports” for more information.
MAI Blanking
Blanking “AND-OR” Function Logic
Signals MAI
MBI ANDI
AND
SELSRCB<3:0> MCI
(CMxMSKSRC<7:4>)
MAI HLMS
(CMxMSKCON<15>)
MUX B
SELSRCC<3:0>
(CMxMSKSRC<11:8>)
CMxMSKCON
MUX C
Blanking MCI
Signals
CFSEL<2:0> CFLTREN
(CMxFLTR<6:4>) (CMxFLTR<3>)
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: Reflects the value of the of the CEVT bit in the respective Op Amp/Comparator Control register,
CMxCON<9>.
2: Reflects the value of the COUT bit in the respective Op Amp/Comparator Control register, CMxCON<8>.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: Inputs that are selected and not available will be tied to VSS. See the “Pin Diagrams” section for available
inputs for each package.
2: The op amp and the comparator can be used simultaneously in these devices. The OPAEN bit only
enables the op amp while the comparator is still functional.
3: After configuring the comparator, either for a high-to-low or low-to-high COUT transition
(EVPOL<1:0> (CMxCON<7:6>) = 10 or 01), the Comparator x Event bit, CEVT (CMxCON<9>), and the
Comparator Interrupt Flag, CMPIF (IFS1<2>), must be cleared before enabling the Comparator Interrupt
Enable bit, CMPIE (IEC1<2>).
Note 1: Inputs that are selected and not available will be tied to VSS. See the “Pin Diagrams” section for available
inputs for each package.
2: The op amp and the comparator can be used simultaneously in these devices. The OPAEN bit only
enables the op amp while the comparator is still functional.
3: After configuring the comparator, either for a high-to-low or low-to-high COUT transition
(EVPOL<1:0> (CMxCON<7:6>) = 10 or 01), the Comparator x Event bit, CEVT (CMxCON<9>), and the
Comparator Interrupt Flag, CMPIF (IFS1<2>), must be cleared before enabling the Comparator Interrupt
Enable bit, CMPIE (IEC1<2>).
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Note 1: Inputs that are selected and not available will be tied to VSS. See the “Pin Diagrams” section for available
inputs for each package.
2: After configuring the comparator, either for a high-to-low or low-to-high COUT transition
(EVPOL<1:0> (CMxCON<7:6>) = 10 or 01), the comparator Event bit, CEVT (CMxCON<9>), and the
Comparator Combined Interrupt Flag, CMPIF (IFS1<2>), must be cleared before enabling the Comparator
Interrupt Enable bit, CMPIE (IEC1<2>).
Note 1: Inputs that are selected and not available will be tied to VSS. See the “Pin Diagrams” section for available
inputs for each package.
2: After configuring the comparator, either for a high-to-low or low-to-high COUT transition
(EVPOL<1:0> (CMxCON<7:6>) = 10 or 01), the comparator Event bit, CEVT (CMxCON<9>), and the
Comparator Combined Interrupt Flag, CMPIF (IFS1<2>), must be cleared before enabling the Comparator
Interrupt Enable bit, CMPIE (IEC1<2>).
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
VREFSEL
(CVR1CON<10>)
CVRSS = 1
CVREF+ (CVR1CON<11>)
CVRSRC 1
CVR1CON<6:0>
AVDD
CVRSS = 0 CVREFIN
CVR6
CVR5
CVR4
CVR3
CVR2
CVR1
CVR0
(CVR1CON<11>)
0
CVREN
(CVR1CON<15>)
R
128-to-1 MUX
R
128 Steps
CVREF1O
R CVROE
(CVR1CON<14>)
R
VREFSEL
R (CVR2CON<10>)
AVSS
1
CVRSS = 1
CVREF+ (CVR2CON<11>) CVRSRC
CVR2CON<6:0>
AVDD
CVRSS = 0
CVR6
CVR5
CVR4
CVR3
CVR2
CVR1
CVR0
(CVR2CON<11>)
CVREN
(CVR2CON<15>)
R
R
128-to-1 MUX
R
128 Steps
CVREF2O
R CVROE
(CVR2CON<14>)
R
R
AVSS
Note 1: CVREF2O and CVROE (CVR2CON<14>) is not available on the 28-pin devices.
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
dsPIC33EVXXXGM00X/10X FAMILY
TABLE 27-1: CONFIGURATION WORD REGISTER MAP
Device
Memory Bits
File Name Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Size 23-16
(Kbytes)
FSEC 005780 32
00AB80 64
— AIVTDIS — — — CSS2 CSS1 CSS0 CWRP GSS1 GSS0 GWRP — BSEN BSS1 BSS0 BWRP
015780 128
02AB80 256
FBSLIM 005790 32
00AB90 64
— — — — BSLIM<12:0>
015790 128
02AB90 256
Reserved 005794 32
00AB94 64
— Reserved(1) — — — — — — — — — — — — — — —
015794 128
02AB94 256
FOSCSEL 005798 32
00AB98 64
— — — — — — — — — IESO — — — — FNOSC2 FNOSC1 FNOSC0
015798 128
02AB98 256
FOSC 00579C 32
00AB9C 64
— — — — — — — — PLLKEN FCKSM1 FCKSM0 IOL1WAY — — OSCIOFNC POSCMD1 POSCMD0
01579C 128
02AB9C 256
FWDT 0057A0 32
00ABA0 64
— — — — — — — WDTWIN1 WDTWIN0 WINDIS FWDTEN1 FWDTEN0 WDTPRE WDTPS3 WDTPS2 WDTPS1 WDTPS0
0157A0 128
2013-2016 Microchip Technology Inc.
02ABA0 256
FPOR 0057A4 32
00ABA4 64
— — — — — — — — — — — — — — — — BOREN
0157A4 128
02ABA4 256
FICD 0057A8 32
00ABA8 64
— — — — — — — — — Reserved(2) — — — — — ICS1 ICS0
0157A8 128
02ABA8 256
Legend: — = unimplemented, read as ‘1’.
Note 1: This bit is reserved and must be programmed as ‘0’.
2: This bit is reserved and must be programmed as ‘1’.
2013-2016 Microchip Technology Inc.
FDMTINTVL 0057AC 32
00ABAC 64
— DMTIVT<15:0>
0157AC 128
02ABAC 256
FDMTINTVH 0057B0 32
00ABB0 64
— DMTIVT<31:16>
0157B0 128
02ABB0 256
FDMTCNTL 0057B4 32
dsPIC33EVXXXGM00X/10X FAMILY
00ABB4 64
— DMTCNT<15:0>
0157B4 128
02ABB4 256
FDMTCNTH 0057B8 32
00AB8 64
— DMTCNT<31:16>
0157B8 128
02ABB8 256
FDMT 0057BC 32
00ABBC 64
— — — — — — — — — — — — — — — — DMTEN
0157BC 128
02ABBC 256
FDEVOPT 0057C0 32
00ABC0 64
— — — — — — — — — — — — — ALTI2C1 Reserved(2) — PWMLOCK
0157C0 128
02ABC0 256
FALTREG 0057C4 32
00ABC4 64
— — — — — — — — — — CTXT2<2:0> — CTXT1<2:0>
0157C4 128
DS70005144E-page 319
02ABC4 256
Legend: — = unimplemented, read as ‘1’.
Note 1: This bit is reserved and must be programmed as ‘0’.
2: This bit is reserved and must be programmed as ‘1’.
dsPIC33EVXXXGM00X/10X FAMILY
R R R R R R R R
DEVID<15:8>(1)
bit 15 bit 8
R R R R R R R R
DEVID<7:0>(1)
bit 7 bit 0
Note 1: Refer to “dsPIC33EVXXXGM00X/10X Families Flash Programming Specification” (DS70005137) for the
list of Device ID values.
R R R R R R R R
DEVREV<15:8>(1)
bit 15 bit 8
R R R R R R R R
DEVREV<7:0>(1)
bit 7 bit 0
Note 1: Refer to “dsPIC33EVXXXGM00X/10X Families Flash Programming Specification” (DS70005137) for the
list of device revision values.
5.0V
dsPIC33EV
VDD
AVDD
VCAP
CEFC
VSS
AVSS
Sleep/Idle
WDTPRE WDTPOST<3:0>
SWDTEN WDT
FWDTEN<1:0> Wake-up
1
RS RS
Prescaler Postscaler
LPRC Clock (Divide-by-N1) (Divide-by-N2) WDT
0 Reset
WINDIS
WDT Window Select
WDTWIN<1:0>
CLRWDT Instruction
27.6 In-Circuit Serial Programming Any of the following three pairs of debugging clock/data
pins can be used:
The dsPIC33EVXXXGM00X/10X family devices can be
serially programmed while in the end application circuit. • PGEC1 and PGED1
This is done with two lines for clock and data, and three • PGEC2 and PGED2
other lines for power, ground and the programming • PGEC3 and PGED3
sequence. Serial programming allows customers to To use the in-circuit debugger function of the device,
manufacture boards with unprogrammed devices and the design must implement ICSP connections to
then program the device just before shipping the MCLR, VDD, VSS and the PGECx/PGEDx pin pair. In
product. Serial programming also allows the most recent addition, when the feature is enabled, some of the
firmware or a custom firmware to be programmed. resources are not available for general use. These
Refer to “dsPIC33EVXXXGM00X/10X Families Flash resources include the first 80 bytes of data RAM and
Programming Specification” (DS70005137) for details two I/O pins (PGECx and PGEDx).
about In-Circuit Serial Programming™ (ICSP™).
Any of the following three pairs of programming clock/ 27.8 Code Protection and
data pins can be used: CodeGuard™ Security
• PGEC1 and PGED1
The dsPIC33EVXXXGM00X/10X family devices offer
• PGEC2 and PGED2
Intermediate CodeGuard Security that supports
• PGEC3 and PGED3 General Segment (GS) security, Boot Segment (BS)
security and Configuration Segment (CS) security. This
27.7 In-Circuit Debugger feature helps protect individual Intellectual Properties.
When MPLAB® ICD 3 or REAL ICE™ is selected as a Note: Refer to “CodeGuard™ Intermediate
debugger, the in-circuit debugging functionality is Security” (DS70005182) in the “dsPIC33/
enabled. This function allows simple debugging functions PIC24 Family Reference Manual” for
when used with MPLAB X IDE. Debugging functionality further information on usage, configuration
is controlled through the PGECx (Emulation/Debug and operation of CodeGuard Security.
Clock) and PGEDx (Emulation/Debug Data) pin
functions.
28.0 INSTRUCTION SET SUMMARY Most bit-oriented instructions (including simple rotate/
shift instructions) have two operands:
Note: This data sheet summarizes the features of • The W register (with or without an address
the dsPIC33EVXXXGM00X/10X family of modifier) or file register (specified by the value of
devices. It is not intended to be a ‘Ws’ or ‘f’)
comprehensive reference source. To
• The bit in the W register or file register (specified
complement the information in this data
by a literal value or indirectly by the contents of
sheet, refer to the related section of the
register ‘Wb’)
“dsPIC33/PIC24 Family Reference Manual”,
which is available from the Microchip The literal instructions that involve data movement can
web site (www.microchip.com). use some of the following operands:
• A literal value to be loaded into a W register or file
The dsPIC33EV instruction set is almost identical to
register (specified by ‘k’)
that of the dsPIC30F and dsPIC33F.
• The W register or file register where the literal
Most instructions are a single program memory word value is to be loaded (specified by ‘Wb’ or ‘f’)
(24 bits). Only three instructions require two program
memory locations. However, literal instructions that involve arithmetic or
logical operations use some of the following operands:
Each single-word instruction is a 24-bit word, divided
into an 8-bit opcode, which specifies the instruction • The first source operand, which is a register ‘Wb’
type and one or more operands, which further specify without any address modifier
the operation of the instruction. • The second source operand, which is a literal
value
The instruction set is highly orthogonal and is grouped
into following five basic categories: • The destination of the result (only if not the same
as the first source operand), which is typically a
• Word or byte-oriented operations register ‘Wd’ with or without an address modifier
• Bit-oriented operations
The MAC class of DSP instructions can use some of the
• Literal operations following operands:
• DSP operations
• The accumulator (A or B) to be used (required
• Control operations operand)
Table 28-1 lists the general symbols used in describing • The W registers to be used as the two operands
the instructions. • The X and Y address space prefetch operations
The dsPIC33E instruction set summary in Table 28-2 • The X and Y address space prefetch destinations
lists all the instructions, along with the Status Flags • The accumulator write-back destination
affected by each instruction.
The other DSP instructions do not involve any
Most word or byte-oriented W register instructions multiplication and can include:
(including barrel shift instructions) have the following
three operands: • The accumulator to be used (required)
• The source or destination operand (designated as
• The first source operand, which is typically a
Wso or Wdo, respectively) with or without an
register ‘Wb’ without any address modifier
address modifier
• The second source operand, which is typically a
• The amount of shift specified by a W register ‘Wn’
register ‘Ws’ with or without an address modifier
or a literal value
• The destination of the result, which is typically a
register ‘Wd’ with or without an address modifier The control instructions can use some of the following
operands:
However, word or byte-oriented file register instructions
have two operands: • A program memory address
• The mode of the Table Read and Table Write
• The file register specified by the value ‘f’
instructions
• The destination, which could be either the file
register ‘f’ or the W0 register, which is denoted as
‘WREG’
Most instructions are a single word. Certain double-word these cases, the execution takes multiple instruction
instructions are designed to provide all the required cycles with the additional instruction cycle(s) executed
information in these 48 bits. In the second word, the as a NOP. Certain instructions that involve skipping over
8 MSbs are ‘0’s. If this second word is executed as an the subsequent instruction require either two or three
instruction (by itself), it executes as a NOP. cycles if the skip is performed, depending on whether
The double-word instructions execute in two instruction the instruction being skipped is a single-word or two-
cycles. word instruction. Moreover, double-word moves require
two cycles.
Most single-word instructions are executed in a single
instruction cycle, unless a conditional test is true, or the Note: For more details on the instruction set, refer
Program Counter is changed as a result of the to the “16-bit MCU and DSC Programmer’s
instruction, or a PSV or Table Read is performed. In Reference Manual” (DS70157).
Wm*Wm Multiplicand and Multiplier Working register pair for Square instructions
{W4 * W4,W5 * W5,W6 * W6,W7 * W7}
Wm*Wn Multiplicand and Multiplier Working register pair for DSP instructions
{W4 * W5,W4 * W6,W4 * W7,W5 * W6,W5 * W7,W6 * W7}
Wn One of 16 Working registers {W0...W15}
Wnd One of 16 Destination Working registers {W0...W15}
Wns One of 16 Source Working registers {W0...W15}
WREG W0 (Working register used in file register instructions)
Ws Source W register { Ws, [Ws], [Ws++], [Ws--], [++Ws], [--Ws] }
Wso Source W register
{ Wns, [Wns], [Wns++], [Wns--], [++Wns], [--Wns], [Wns+Wb] }
Wx X Data Space Prefetch Address register for DSP instructions
{[W8] + = 6, [W8] + = 4, [W8] + = 2, [W8], [W8] - = 6, [W8] - = 4, [W8] - = 2,
[W9] + = 6, [W9] + = 4, [W9] + = 2, [W9], [W9] - = 6, [W9] - = 4, [W9] - = 2,
[W9 + W12], none}
Wxd X Data Space Prefetch Destination register for DSP instructions {W4...W7}
Wy Y Data Space Prefetch Address register for DSP instructions
{[W10] + = 6, [W10] + = 4, [W10] + = 2, [W10], [W10] - = 6, [W10] - = 4, [W10] - = 2,
[W11] + = 6, [W11] + = 4, [W11] + = 2, [W11], [W11] - = 6, [W11] - = 4, [W11] - = 2,
[W11 + W12], none}
Wyd Y Data Space Prefetch Destination register for DSP instructions {W4...W7}
The MPASM Assembler generates relocatable object • Support for the entire device instruction set
files for the MPLINK Object Linker, Intel® standard HEX • Support for fixed-point and floating-point data
files, MAP files to detail memory usage and symbol • Command-line interface
reference, absolute LST files that contain source lines • Rich directive set
and generated machine code, and COFF files for • Flexible macro language
debugging.
• MPLAB X IDE compatibility
The MPASM Assembler features include:
• Integration into MPLAB X IDE projects
• User-defined macros to streamline
assembly code
• Conditional assembly for multipurpose
source files
• Directives that allow complete control over the
assembly process
29.6 MPLAB X SIM Software Simulator 29.8 MPLAB ICD 3 In-Circuit Debugger
The MPLAB X SIM Software Simulator allows code
System
development in a PC-hosted environment by simulat- The MPLAB ICD 3 In-Circuit Debugger System is
ing the PIC MCUs and dsPIC DSCs on an instruction Microchip’s most cost-effective, high-speed hardware
level. On any given instruction, the data areas can be debugger/programmer for Microchip Flash DSC and
examined or modified and stimuli can be applied from MCU devices. It debugs and programs PIC Flash
a comprehensive stimulus controller. Registers can be microcontrollers and dsPIC DSCs with the powerful,
logged to files for further run-time analysis. The trace yet easy-to-use graphical user interface of the MPLAB
buffer and logic analyzer display extend the power of IDE.
the simulator to record and track program execution,
The MPLAB ICD 3 In-Circuit Debugger probe is
actions on I/O, most peripherals and internal registers.
connected to the design engineer’s PC using a high-
The MPLAB X SIM Software Simulator fully supports speed USB 2.0 interface and is connected to the target
symbolic debugging using the MPLAB XC Compilers, with a connector compatible with the MPLAB ICD 2 or
and the MPASM and MPLAB Assemblers. The soft- MPLAB REAL ICE systems (RJ-11). MPLAB ICD 3
ware simulator offers the flexibility to develop and supports all MPLAB ICD 2 headers.
debug code outside of the hardware laboratory envi-
ronment, making it an excellent, economical software 29.9 PICkit 3 In-Circuit Debugger/
development tool.
Programmer
29.7 MPLAB REAL ICE In-Circuit The MPLAB PICkit 3 allows debugging and program-
Emulator System ming of PIC and dsPIC Flash microcontrollers at a most
affordable price point using the powerful graphical user
The MPLAB REAL ICE In-Circuit Emulator System is interface of the MPLAB IDE. The MPLAB PICkit 3 is
Microchip’s next generation high-speed emulator for connected to the design engineer’s PC using a full-
Microchip Flash DSC and MCU devices. It debugs and speed USB interface and can be connected to the tar-
programs all 8, 16 and 32-bit MCU, and DSC devices get via a Microchip debug (RJ-11) connector (compati-
with the easy-to-use, powerful graphical user interface of ble with MPLAB ICD 3 and MPLAB REAL ICE). The
the MPLAB X IDE. connector uses two device I/O pins and the Reset line
The emulator is connected to the design engineer’s to implement in-circuit debugging and In-Circuit Serial
PC using a high-speed USB 2.0 interface and is Programming™ (ICSP™).
connected to the target with either a connector
compatible with in-circuit debugger systems (RJ-11) 29.10 MPLAB PM3 Device Programmer
or with the new high-speed, noise tolerant, Low-
Voltage Differential Signal (LVDS) interconnection The MPLAB PM3 Device Programmer is a universal,
(CAT5). CE compliant device programmer with programmable
voltage verification at VDDMIN and VDDMAX for
The emulator is field upgradable through future firmware maximum reliability. It features a large LCD display
downloads in MPLAB X IDE. MPLAB REAL ICE offers (128 x 64) for menus and error messages, and a mod-
significant advantages over competitive emulators ular, detachable socket assembly to support various
including full-speed emulation, run-time variable package types. The ICSP cable assembly is included
watches, trace analysis, complex breakpoints, logic as a standard item. In Stand-Alone mode, the MPLAB
probes, a ruggedized probe interface and long (up to PM3 Device Programmer can read, verify and program
three meters) interconnection cables. PIC devices without a PC connection. It can also set
code protection in this mode. The MPLAB PM3
connects to the host PC via an RS-232 or USB cable.
The MPLAB PM3 has high-speed communications and
optimized algorithms for quick programming of large
memory devices, and incorporates an MMC card for file
storage and data applications.
Note 1: Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions
above those indicated in the operational listings of this specification is not implied. Exposure to maximum
rating conditions for extended periods may affect device reliability.
2: Maximum allowable current is a function of device maximum power dissipation (see Table 30-2).
30.1 DC Characteristics
Param
Symbol Characteristic Min. Typ.(1) Max. Units Conditions
No.
Operating Voltage
DC10 VDD Supply Voltage(3) VBOR — 5.5 V
(2)
DC12 VDR RAM Data Retention Voltage 1.8 — — V
DC16 VPOR VDD Start Voltage — — VSS V
to Ensure Internal
Power-on Reset Signal
DC17 SVDD VDD Rise Rate 1.0 — — V/ms 0V-5.0V in 5 ms
to Ensure Internal
Power-on Reset Signal
DC18 VCORE VDD Core 1.62 1.8 1.98 V Voltage is dependent on
Internal Regulator Voltage load, temperature and
VDD
Note 1: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
2: This is the limit to which VDD may be lowered without losing RAM data.
3: VDD voltage must remain at VSS for a minimum of 200 s to ensure POR.
Param
Symbol Characteristics Min. Typ. Max. Units Comments
No.
CEFC External Filter Capacitor 4.7 10 — F Capacitor must have a low
Value(1) series resistance (< 1)
Note 1: Typical VCAP Voltage = 1.8 volts when VDD VDDMIN.
Parameter
Typ.(2) Max. Units Conditions
No.
Idle Current (IIDLE)(1)
DC40d 1.25 2 mA -40°C
DC40a 1.25 2 mA +25°C
5.0V 10 MIPS
DC40b 1.5 2.6 mA +85°C
DC40c 1.5 2.6 mA +125°C
DC42d 2.3 3 mA -40°C
DC42a 2.3 3 mA +25°C
5.0V 20 MIPS
DC42b 2.6 3.45 mA +85°C
DC42c 2.6 3.85 mA +125°C
DC44d 6.9 8 mA -40°C
DC44a 6.9 8 mA +25°C 5.0V 70 MIPS
DC44b 7.25 8.6 mA +85°C
Note 1: Base Idle current (IIDLE) is measured as follows:
• CPU core is off, oscillator is configured in EC mode and external clock is active, OSC1 is driven with
external square wave from rail-to-rail (EC clock overshoot/undershoot < 250 mV required)
• CLKO is configured as an I/O input pin in the Configuration Word
• All I/O pins are configured as outputs and driving low
• MCLR = VDD, WDT and FSCM are disabled
• No peripheral modules are operating or being clocked (defined PMDx bits are all ones)
• The NVMSIDL bit (NVMCON<12>) = 1 (i.e., Flash regulator is set to standby while the device is in
Idle mode)
• The VREGSF bit (RCON<11>) = 0 (i.e., Flash regulator is set to standby while the device is in
Sleep mode)
2: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
Parameter
Typ.(2) Max. Units Conditions
No.
Power-Down Current (IPD) – dsPIC33EVXXXGM00X/10X(1)
DC60d 9.25 30 A -40°C
DC60a 15.75 35 A +25°C
5.0V Base Power-Down Current
DC60b 67.75 250 A +85°C
DC60c 270 750 A +125°C
DC61d 1 7 A -40°C
DC61a 1.25 8 A +25°C
5.0V Watchdog Timer Current: IWDT(3)
DC61b 3.5 12 A +85°C
DC61c 5 15 A +125°C
Note 1: IPD (Sleep) current is measured as follows:
• CPU core is off, oscillator is configured in EC mode and external clock is active, OSC1 is driven with
external square wave from rail-to-rail (EC clock overshoot/undershoot < 250 mV required)
• CLKO is configured as an I/O input pin in the Configuration Word
• All I/O pins are configured as outputs and driving low
• MCLR = VDD, WDT and FSCM are disabled
• All peripheral modules are disabled (PMDx bits are all ones)
• The VREGS bit (RCON<8>) = 0 (i.e., core regulator is set to standby while the device is in Sleep mode)
• The VREGSF bit (RCON<11>) = 0 (i.e., Flash regulator is set to standby while the device is in
Sleep mode)
2: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
3: The current is the additional current consumed when the module is enabled. This current should be
added to the base IPD current.
Param
Symbol Characteristic Min. Typ.(1) Max. Units Conditions
No.
Program Flash Memory
D130 EP Cell Endurance 10,000 — — E/W -40C to +125C
D131 VPR VDD for Read 4.5 — 5.5 V
D132b VPEW VDD for Self-Timed Write 4.5 — 5.5 V
D134 TRETD Characteristic Retention 20 — — Year Provided no other specifications
are violated, -40C to +125C
D135 IDDP Supply Current During — 10 — mA
Programming
D136a TRW Row Write Cycle Time 0.657 — 0.691 ms TRW = 4965 FRC cycles,
TA = +85°C (see Note 2)
D136b TRW Row Write Cycle Time 0.651 — 0.698 ms TRW = 4965 FRC cycles,
TA = +125°C (see Note 2)
D137a TPE Page Erase Time 19.44 — 20.44 ms TPE = 146893 FRC cycles,
TA = +85°C (see Note 2)
D137b TPE Page Erase Time 19.24 — 20.65 ms TPE = 146893 FRC cycles,
TA = +125°C (see Note 2)
D138a TWW Word Write Cycle Time 45.78 — 48.15 µs TWW = 346 FRC cycles,
TA = +85°C (see Note 2)
D138b TWW Word Write Cycle Time 45.33 — 48.64 µs TWW = 346 FRC cycles,
TA = +125°C (see Note 2)
Note 1: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
2: Other conditions: FRC = 7.3728 MHz, TUN<5:0> = b'011111 (for Min), TUN<5:0> = b'100000 (for Max).
This parameter depends on the FRC accuracy (see Table 30-20) and the value of the FRC Oscillator
Tuning register.
Load Condition 1 – for All Pins except OSC2 Load Condition 2 – for OSC2
VDD/2
RL Pin CL
VSS
CL
Pin RL = 464
CL = 50 pF for all pins except OSC2
VSS 15 pF for OSC2 output
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
OSC1
OS20
OS30 OS30 OS31 OS31
OS25
CLKO
OS41 OS40
Param
Symbol Characteristic Min. Typ.(1) Max. Units Conditions
No.
OS50 FPLLI PLL Voltage Controlled 0.8 — 8.0 MHz ECPLL, XTPLL modes
Oscillator (VCO) Input
Frequency Range
OS51 FSYS On-Chip VCO System 120 — 340 MHz
Frequency
OS52 TLOCK PLL Start-up Time (Lock Time) 0.9 1.5 3.1 ms
OS53 DCLK CLKO Stability (Jitter)(2) -3 0.5 3 %
Note 1: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated. Parameters are for design guidance only
and are not tested.
2: This jitter specification is based on clock cycle-by-clock cycle measurements. To get the effective jitter for
individual time bases or communication clocks used by the application, use the following formula:
D CLK
Effective Jitter = -------------------------------------------------------------------------------------------
F OSC
---------------------------------------------------------------------------------------
Time Base or Communication Clock
For example, if FOSC = 120 MHz and the SPI bit rate = 10 MHz, the effective jitter is as follows:
D CLK D CLK D CLK
Effective Jitter = -------------- = -------------- = --------------
120 12 3.464
---------
10
Param
Characteristic Min. Typ. Max. Units Conditions
No.
LPRC @ 32.768 kHz(1)
F21a LPRC -15 5 +15 % -40°C TA +85°C VDD = 4.5-5.5V
F21b LPRC -30 10 +30 % -40°C TA +125°C VDD = 4.5-5.5V
Note 1: Change of LPRC frequency as VDD changes.
I/O Pin
(Input)
DI35
DI40
Param
Symbol Characteristic Min. Typ.(1) Max. Units Conditions
No.
DO31 TIOR Port Output Rise Time — 5 10 ns
DO32 TIOF Port Output Fall Time — 5 10 ns
DI35 TINP INTx Pin High or Low Time (input) 20 — — ns
DI40 TRBP CNx High or Low Time (input) 2 — — TCY
Note 1: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
MCLR
TMCLR
(SY20)
BOR
Reset Sequence
Power-up Timer – Clock Sources = (FRC, FRCDIVN, FRCDIV16, FRCPLL, EC, ECPLL and LPRC)
VDD
VPOR
Power-up Sequence
CPU Starts Fetching Code
SY00 SY11
(TPU) (TPWRT)
(Notes 1,2)
VPOR
Power-up Sequence
CPU Starts Fetching Code
SY00 Greater of
(TPU) SY10 (TOST)
(Notes 1,2) or
SY11 (TPWRT)
Note 1: The power-up period will be extended if the power-up sequence completes before the device exits from
BOR (VDD < VBOR).
2: The power-up period includes internal voltage regulator stabilization delay.
TABLE 30-22: RESET, WATCHDOG TIMER, OSCILLATOR START-UP TIMER AND POWER-UP
TIMER TIMING REQUIREMENTS
Standard Operating Conditions: 4.5V to 5.5V
(unless otherwise stated)
AC CHARACTERISTICS
Operating temperature -40°C TA +85°C for Industrial
-40°C TA +125°C for Extended
Param
Symbol Characteristic(1) Min. Typ.(2) Max. Units Conditions
No.
SY00 TPU Power-up Period — 400 600 µs
SY10 TOST Oscillator Start-up — 1024 TOS — — TOSC = OSC1 period
Time C
SY11 TPWRT Power-up Timer — 1 — ms Using LPRC parameters indicated in
Period F21a/F21b (see Table 30-20)
SY12 TWDT Watchdog Timer 0.8 — 1.2 ms WDTPRE = 0, WDTPS<3:0> = 0000,
Time-out Period using LPRC tolerances indicated in
F21a/F21b (see Table 30-20) at
+85°C
3.2 — 4.8 ms WDTPRE = 1, WDTPS<3:0> = 0000,
using LPRC tolerances indicated in
F21a/F21b (see Table 30-20) at
+85°C
SY13 TIOZ I/O High-Impedance 0.68 0.72 1.2 µs
from MCLR Low or
Watchdog Timer
Reset
SY20 TMCLR MCLR Pulse Width 2 — — µs
(low)
SY30 TBOR BOR Pulse Width 1 — — ms
(low)
SY35 TFSCM Fail-Safe Clock — 500 900 µs -40°C to +85°C
Monitor Delay
SY36 TVREG Voltage Regulator — — 30 µs
Standby-to-Active
mode Transition Time
SY37 TOSCDFRC FRC Oscillator 46 48 54 µs
Start-up Delay
SY38 TOSCDLPRC LPRC Oscillator — — 70 µs
Start-up Delay
Note 1: These parameters are characterized but not tested in manufacturing.
2: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
TxCK
Tx10 Tx11
Tx15 Tx20
OS60
TMRx
TABLE 30-24: TIMER2 AND TIMER4 (TYPE B TIMER) EXTERNAL CLOCK TIMING REQUIREMENTS
Standard Operating Conditions: 4.5V to 5.5V
(unless otherwise stated)
AC CHARACTERISTICS
Operating temperature -40°C TA +85°C for Industrial
-40°C TA +125°C for Extended
Param
Symbol Characteristic(1) Min. Typ. Max. Units Conditions
No.
TB10 TTXH TxCK High Synchronous Greater of: — — ns Must also meet
Time mode 20 or Parameter TB15,
(TCY + 20)/N N = Prescaler Value
(1, 8, 64, 256)
TB11 TTXL TxCK Low Synchronous Greater of: — — ns Must also meet
Time mode 20 or Parameter TB15,
(TCY + 20)/N N = Prescaler Value
(1, 8, 64, 256)
TB15 TTXP TxCK Input Synchronous Greater of: — — ns N = Prescaler Value
Period mode 40 or (1, 8, 64, 256)
(2 TCY + 40)/N
TB20 TCKEXT- Delay from External TxCK 0.75 TCY + 40 — 1.75 TCY + 40 ns
MRL Clock Edge to Timer
Increment
Note 1: These parameters are characterized but not tested in manufacturing.
TABLE 30-25: TIMER3 AND TIMER5 (TYPE C TIMER) EXTERNAL CLOCK TIMING REQUIREMENTS
Standard Operating Conditions: 4.5V to 5.5V
(unless otherwise stated)
AC CHARACTERISTICS
Operating temperature -40°C TA +85°C for Industrial
-40°C TA +125°C for Extended
Param
Symbol Characteristic(1) Min. Typ. Max. Units Conditions
No.
TC10 TTXH TxCK High Synchronous TCY + 20 — — ns Must also meet
Time Parameter TC15
TC11 TTXL TxCK Low Synchronous TCY + 20 — — ns Must also meet
Time Parameter TC15
TC15 TTXP TxCK Input Synchronous, 2 TCY + 40 — — ns N = Prescaler Value
Period with Prescaler (1, 8, 64, 256)
TC20 TCKEXT- Delay from External TxCK 0.75 TCY + 40 — 1.75 TCY + 40 ns
MRL Clock Edge to Timer
Increment
Note 1: These parameters are characterized but not tested in manufacturing.
ICx
IC10 IC11
IC15
Param.
Symbol Characteristics(1) Min. Max. Units Conditions
No.
IC10 TCCL ICx Input Low Time Greater of: — ns Must also meet
12.5 + 25 or Parameter IC15
(0.5 TCY/N) + 25
IC11 TCCH ICx Input High Time Greater of: — ns Must also meet
N = Prescaler
12.5 + 25 or Parameter IC15
Value (1, 4, 16)
(0.5 TCY/N) + 25
IC15 TCCP ICx Input Period Greater of: — ns
25 + 50 or
(1 TCY/N) + 50
Note 1: These parameters are characterized but not tested in manufacturing.
OCx
(Output Compare
or PWM Mode)
OC11 OC10
OC20
OCFA
OC15
OCx
MP30
Fault Input
(active-low)
MP20
PWMx
MP11 MP10
PWMx
FIGURE 30-12: SPI2 MASTER MODE (HALF-DUPLEX, TRANSMIT ONLY, CKE = 0) TIMING
CHARACTERISTICS
SCK2
(CKP = 0)
SCK2
(CKP = 1)
FIGURE 30-13: SPI2 MASTER MODE (HALF-DUPLEX, TRANSMIT ONLY, CKE = 1) TIMING
CHARACTERISTICS
SP36
SCK2
(CKP = 0)
SCK2
(CKP = 1)
SP30, SP31
TABLE 30-31: SPI2 MASTER MODE (HALF-DUPLEX, TRANSMIT ONLY) TIMING REQUIREMENTS
Standard Operating Conditions: 4.5V to 5.5V
(unless otherwise stated)
AC CHARACTERISTICS
Operating temperature -40°C TA +85°C for Industrial
-40°C TA +125°C for Extended
Param. Symbol Characteristic(1) Min. Typ.(2) Max. Units Conditions
SP10 FscP Maximum SCK2 Frequency — — 15 MHz See Note 3
SP20 TscF SCK2 Output Fall Time — — — ns See Parameter DO32
and Note 4
SP21 TscR SCK2 Output Rise Time — — — ns See Parameter DO31
and Note 4
SP30 TdoF SDO2 Data Output Fall Time — — — ns See Parameter DO32
and Note 4
SP31 TdoR SDO2 Data Output Rise Time — — — ns See Parameter DO31
and Note 4
SP35 TscH2doV, SDO2 Data Output Valid after — 6 20 ns
TscL2doV SCK2 Edge
SP36 TdiV2scH, SDO2 Data Output Setup to 30 — — ns
TdiV2scL First SCK2 Edge
Note 1: These parameters are characterized but not tested in manufacturing.
2: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
3: The minimum clock period for SCK2 is 66.7 ns. Therefore, the clock generated in Master mode must not
violate this specification.
4: Assumes 50 pF load on all SPI2 pins.
FIGURE 30-14: SPI2 MASTER MODE (FULL-DUPLEX, CKE = 1, CKP = x, SMP = 1) TIMING
CHARACTERISTICS
SP36
SCK2
(CKP = 0)
SCK2
(CKP = 1)
FIGURE 30-15: SPI2 MASTER MODE (FULL-DUPLEX, CKE = 0, CKP = x, SMP = 1) TIMING
CHARACTERISTICS
SCK2
(CKP = 0)
SCK2
(CKP = 1)
SP40 SP41
FIGURE 30-16: SPI2 SLAVE MODE (FULL-DUPLEX, CKE = 1, CKP = 0, SMP = 0) TIMING
CHARACTERISTICS
SP60
SS2
SP50 SP52
SCK2
(CKP = 0)
SCK2
(CKP = 1) SP36
FIGURE 30-17: SPI2 SLAVE MODE (FULL-DUPLEX, CKE = 1, CKP = 1, SMP = 0) TIMING
CHARACTERISTICS
SP60
SS2
SP50 SP52
SCK2
(CKP = 0)
SCK2
(CKP = 1) SP36
SP40
FIGURE 30-18: SPI2 SLAVE MODE (FULL-DUPLEX, CKE = 0, CKP = 1, SMP = 0) TIMING
CHARACTERISTICS
SS2
SP50 SP52
SCK2
(CKP = 0)
SCK2
(CKP = 1)
SP72 SP73
SP35 SP36
SP41
SP40
FIGURE 30-19: SPI2 SLAVE MODE (FULL-DUPLEX, CKE = 0, CKP = 0, SMP = 0) TIMING
CHARACTERISTICS
SS2
SP50 SP52
SCK2
(CKP = 0)
SCK2
(CKP = 1)
SP72 SP73
SP35 SP36
SCK1
(CKP = 0)
SCK1
(CKP = 1)
SP36
SCK1
(CKP = 0)
SCK1
(CKP = 1)
SP30, SP31
TABLE 30-39: SPI1 MASTER MODE (HALF-DUPLEX, TRANSMIT ONLY) TIMING REQUIREMENTS
Standard Operating Conditions: 4.5V to 5.5V
(unless otherwise stated)
AC CHARACTERISTICS
Operating temperature -40°C TA +85°C for Industrial
-40°C TA +125°C for Extended
Param. Symbol Characteristic(1) Min. Typ.(2) Max. Units Conditions
SP10 FscP Maximum SCK1 Frequency — — 25 MHz See Note 3
SP20 TscF SCK1 Output Fall Time — — — ns See Parameter DO32
and Note 4
SP21 TscR SCK1 Output Rise Time — — — ns See Parameter DO31
and Note 4
SP30 TdoF SDO1 Data Output Fall Time — — — ns See Parameter DO32
and Note 4
SP31 TdoR SDO1 Data Output Rise Time — — — ns See Parameter DO31
and Note 4
SP35 TscH2doV, SDO1 Data Output Valid after — 6 20 ns
TscL2doV SCK1 Edge
SP36 TdiV2scH, SDO1 Data Output Setup to 20 — — ns
TdiV2scL First SCK1 Edge
Note 1: These parameters are characterized but not tested in manufacturing.
2: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
3: The minimum clock period for SCK1 is 40 ns. Therefore, the clock generated in Master mode must not
violate this specification.
4: Assumes 50 pF load on all SPI1 pins.
SCK1
(CKP = 1)
TABLE 30-40: SPI1 MASTER MODE (FULL-DUPLEX, CKE = 1, CKP = x, SMP = 1) TIMING
REQUIREMENTS
Standard Operating Conditions: 4.5V to 5.5V
(unless otherwise stated)
AC CHARACTERISTICS
Operating temperature -40°C TA +85°C for Industrial
-40°C TA +125°C for Extended
Param. Symbol Characteristic(1) Min. Typ.(2) Max. Units Conditions
SP10 FscP Maximum SCK1 Frequency — — 25 MHz See Note 3
SP20 TscF SCK1 Output Fall Time — — — ns See Parameter DO32
and Note 4
SP21 TscR SCK1 Output Rise Time — — — ns See Parameter DO31
and Note 4
SP30 TdoF SDO1 Data Output Fall Time — — — ns See Parameter DO32
and Note 4
SP31 TdoR SDO1 Data Output Rise — — — ns See Parameter DO31
Time and Note 4
SP35 TscH2doV, SDO1 Data Output Valid after — 6 20 ns
TscL2doV SCK1 Edge
SP36 TdoV2sc, SDO1 Data Output Setup to 20 — — ns
TdoV2scL First SCK1 Edge
SP40 TdiV2scH, Setup Time of SDI1 Data 20 — — ns
TdiV2scL Input to SCK1 Edge
SP41 TscH2diL, Hold Time of SDI1 Data Input 15 — — ns
TscL2diL to SCK1 Edge
Note 1: These parameters are characterized but not tested in manufacturing.
2: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
3: The minimum clock period for SCK1 is 40 ns. Therefore, the clock generated in Master mode must not
violate this specification.
4: Assumes 50 pF load on all SPI1 pins.
SCK1
(CKP = 0)
SCK1
(CKP = 1)
SP40 SP41
SP60
SS1
SP50 SP52
SCK1
(CKP = 0)
SCK1
(CKP = 1) SP36
SP60
SS1
SP50 SP52
SCK1
(CKP = 0)
SCK1
(CKP = 1) SP36
SP40
SS1
SP50 SP52
SCK1
(CKP = 0)
SCK1
(CKP = 1)
SP72 SP73
SP35 SP36
SP40
SS1
SP50 SP52
SCK1
(CKP = 0)
SCK1
(CKP = 1)
SP72 SP73
SP35 SP36
SP41
SP40
FIGURE 30-28: I2Cx BUS START/STOP BITS TIMING CHARACTERISTICS (MASTER MODE)
SCLx
IM31 IM34
IM30 IM33
SDAx
Start Stop
Condition Condition
SDAx
In
IM40 IM40 IM45
SDAx
Out
FIGURE 30-30: I2Cx BUS START/STOP BITS TIMING CHARACTERISTICS (SLAVE MODE)
SCLx
IS31 IS34
IS30 IS33
SDAx
Start Stop
Condition Condition
SDAx
In
IS40 IS40 IS45
SDAx
Out
CA10, CA11
CxRX Pin
(input)
CA20
UA20
Param
Symbol Characteristic(1) Min. Typ.(2) Max. Units Conditions
No.
UA10 TUABAUD UARTx Baud Time 66.67 — — ns
UA11 FBAUD UARTx Baud Frequency — — 15 Mbps
UA20 TCWF Start Bit Pulse Width to Trigger 500 — — ns
UARTx Wake-up
Note 1: These parameters are characterized but not tested in manufacturing.
2: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated. Parameters are for design guidance only
and are not tested.
Param
Symbol Characteristic Min. Typ.(1) Max. Units Conditions
No.
Comparator AC Characteristics
CM10 TRESP Response Time — 19 80 ns V+ input step of 100 mV,
V- input held at VDD/2
CM11 TMC2OV Comparator Mode — — 10 µs
Change to Output Valid
Comparator DC Characteristics
CM30 VOFFSET Comparator Offset -80 ±60 80 mV
Voltage
CM31 VHYST Input Hysteresis Voltage — 30 — mV
CM32 TRISE/ Comparator Output — 20 — ns 1 pF load capacitance
TFALL Rise/Fall Time on input
CM33 VGAIN Open-Loop Voltage Gain — 90 — db
CM34 VICM Input Common-Mode AVSS — AVDD V
Voltage
Op Amp AC Characteristics
CM20 SR Slew Rate — 9 — V/µs 10 pF load
CM21 PM Phase Margin — 35 — °C G = 100V/V, 10 pF load
CM22 GM Gain Margin — 20 — db G = 100V/V, 10 pF load
CM23 GBW Gain Bandwidth — 10 — MHz 10 pF load
Op Amp DC Characteristics
CM40 VCMR Common-Mode Input AVSS — AVDD V
Voltage Range
CM41 CMRR Common-Mode — 45 — db VCM = AVDD/2
Rejection Ratio
CM42 VOFFSET Op Amp Offset Voltage -50 ±6 50 mV
CM43 VGAIN Open-Loop Voltage Gain — 90 — db
CM44 IOS Input Offset Current — — — — See pad leakage
currents in Table 30-10
CM45 IB Input Bias Current — — — — See pad leakage
currents in Table 30-10
CM46 IOUT Output Current — — 420 µA With minimum value of
RFEEDBACK (CM48)
CM48 RFEEDBACK Feedback Resistance 8 — — k Note 2
Value
CM49a VOUT Output Voltage AVSS + 0.075 — AVDD – 0.075 V IOUT = 420 µA
Param
Symbol Characteristics Min. Typ. Max. Units Conditions
No.
VRD311 CVRAA Absolute Accuracy of — ±25 — mV AVDD = CVRSRC = 5.0V
Internal DAC Input to
Comparators
VRD312 CVRAA1 Absolute Accuracy of — — +35/-65 mV AVDD = CVRSRC = 5.0V
CVREFxO Pins
VRD313 CVRSRC Input Reference Voltage 0 — AVDD + 0.3 V
VRD314 CVROUT Buffer Output Resistance — 1.5k —
VRD315 CVCL Permissible Capacitive — — 25 pF
Load (CVREFxO pins)
VRD316 IOCVR Permissible Current — — 1 mA
Output (CVREFxO pins)
VRD317 ION Current Consumed when — — 500 µA AVDD = 5.0V
Module is Enabled
VRD318 IOFF Current Consumed when — — 1 nA AVDD = 5.0V
Module is Disabled
Note 1: Device is functional at VBORMIN < VDD < VDDMIN, but will have degraded performance. Device functionality
is tested, but not characterized. Analog modules: ADC, op amp/comparator and comparator voltage
reference, will have degraded performance. Refer to Parameter BO10 in Table 30-12 for the minimum and
maximum BOR values.
AD50
ADCLK
AD61
AD60
TSAMP AD55
DONE
AD1IF
1 2 3 4 5 6 7 8 9
AD50
ADCLK
AD61
AD60
DONE
AD1IF
1 2 3 4 5 6 7 8 5 6 7 8
FIGURE 30-36: ADC CONVERSION (10-BIT MODE) TIMING CHARACTERISTICS (CHPS<1:0> = 01,
SIMSAM = 0, ASAM = 1, SSRC<2:0> = 111, SSRCG = 0, SAMC<4:0> = 00010)
AD50
ADCLK
AD1IF
DONE
1 2 3 4 5 6 7 3 4 5 6 8
2 – Sampling starts after discharge period. TSAMP is described in 6 – One TAD for end of conversion.
“Analog-to-Digital Converter (ADC)” (DS70621)
of the “dsPIC33/PIC24 Family Reference Manual”. 7 – Begin conversion of next channel.
3 – Convert bit 9.
8 – Sample for time specified by SAMC<4:0>.
4 – Convert bit 8.
NOTES:
Note 1: Stresses above those listed under “Absolute Maximum Ratings” can cause permanent damage to the
device. This is a stress rating only, and functional operation of the device at those or any other conditions
above those indicated in the operation listings of this specification is not implied. Exposure to maximum
rating conditions for extended periods can affect device reliability.
2: AEC-Q100 reliability testing for devices intended to operate at +150°C is 1,000 hours. Any design in which
the total operating time from +125°C to +150°C will be greater than 1,000 hours is not warranted without
prior written approval from Microchip Technology Inc.
3: Maximum allowable current is a function of device maximum power dissipation (see Table 31-2).
Parameter
Typical Max Units Conditions
No.
Power-Down Current (IPD)
HDC60e 1300 2500 A +150°C 5V Base Power-Down Current
HDC61c 10 50 A +150°C 5V Watchdog Timer Current: IWDT
Parameter
Typical Max Units Conditions
No.
HDC40e 2.6 5.0 mA +150°C 5V 10 MIPS
HDC42e 3.6 7.0 mA +150°C 5V 20 MIPS
Parameter
Typical Max Units Conditions
No.
HDC20e 5.9 8.0 mA +150°C 5V 10 MIPS
HDC22e 10.3 15.0 mA +150°C 5V 20 MIPS
HDC23e 19.0 25.0 mA +150°C 5V 40 MIPS
Parameter
Typical Max Doze Ratio Units Conditions
No.
HDC73a 18.5 22.0 1:2 mA
+150°C 5V 40 MIPS
HDC73g 8.35 12.0 1:128 mA
Param
Symbol Characteristic Min. Typ.(1) Max. Units Conditions
No.
VIL Input Low Voltage
DI10 Any I/O Pins VSS — 0.2 VDD V
VIH Input High Voltage
DI20 I/O Pins 0.75 VDD — 5.5 V
DI30 ICNPU Change Notification Pull-up 200 375 600 A VDD = 5.0V, VPIN = VSS
Current
DI31 ICNPD Change Notification 175 400 625 A VDD = 5.0V, VPIN = VDD
Pull-Down Current(7)
IIL Input Leakage Current(2,3)
DI50 I/O Pins -200 — 200 nA VSS VPIN VDD,
pin at high-impedance
DI55 MCLR -1.5 — 1.5 A VSS VPIN VDD
DI56 OSC1 -300 — 300 nA VSS VPIN VDD,
XT and HS modes
DI60a IICL Input Low Injection Current 0 — -5(4,6) mA All pins except VDD, VSS,
AVDD, AVSS, MCLR, VCAP
and RB7
DI60b IICH Input High Injection Current 0 — +5(5,6) mA All pins except VDD, VSS,
AVDD, AVSS, MCLR,
VCAP, RB7 and all 5V
tolerant pins(5)
DI60c IICT Total Input Injection Current -20(7) — +20(7) mA Absolute instantaneous
(sum of all I/O and control sum of all ± input injection
pins) currents from all I/O pins
( | IICL | + | IICH | ) IICT
Note 1: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
2: The leakage current on the MCLR pin is strongly dependent on the applied voltage level. The specified
levels represent normal operating conditions. Higher leakage current can be measured at different input
voltages.
3: Negative current is defined as current sourced by the pin.
4: VIL source < (VSS – 0.3). Characterized but not tested.
5: Digital 5V tolerant pins cannot tolerate any “positive” input injection current from input sources > 5.5V.
6: Non-zero injection currents can affect the ADC results by approximately 4-6 counts.
7: Any number and/or combination of I/O pins not excluded under IICL or IICH conditions are permitted,
provided the mathematical “absolute instantaneous” sum of the input injection currents from all pins do not
exceed the specified limit. Characterized but not tested.
Param
Symbol Characteristic Min.(1) Typ. Max. Units Conditions
No.
HDO16 VOL Output Low Voltage
4x Sink Driver Pins(2) — — 0.4 V IOL = 8.8 mA, VDD = 5.0V
HDO10 VOL Output Low Voltage
8x Sink Driver Pins(3) — — 0.4 V IOL = 10.8 mA, VDD = 5.0V
HDO26 VOH Output High Voltage
4x Sink Driver Pins(2) VDD – 0.6 — — V IOH = -8.3 mA, VDD = 5.0V
HDO20 VOH Output High Voltage
8x Sink Driver Pins VDD – 0.6 — — V IOH = -12.3 mA, VDD = 5.0V
Note 1: Parameters are characterized but not tested.
2: Includes all I/O pins that are not 8x sink driver pins (see below).
3: Includes the pins, such as RA3, RA4 and RB<15:10> for 28-pin devices, RA3, RA4, RA9 and RB<15:10>
for 44-pin devices, and RA4, RA7, RA9, RB<15:10> and RC15 for 64-pin devices.
Param
Symbol Characteristic Min.(1) Typ. Max. Units Conditions
No.
HBO10 VBOR BOR Event on VDD 4.15 4.285 4.4 V VDD (see Note 2, Note 3 and Note 4)
Transition High-to-Low
Note 1: Parameters are for design guidance only and are not tested in manufacturing.
2: The VBOR specification is relative to the VDD.
3: The device is functional at VBORMIN < VDD < VDDMIN. Analog modules: ADC, op amp/comparator and
comparator voltage reference will have degraded performance. Device functionality is tested but is not
characterized.
4: The start-up VDD must rise above 4.6V.
Param
Symbol Characteristic(1) Min. Typ. Max. Units Conditions
No.
Program Flash Memory
HD130 EP Cell Endurance 10,000 — — E/W -40°C to +150°C(2)
HD134 TRETD Characteristic Retention 20 — — Year 1000 E/W cycles or less and no
other specifications are violated
Note 1: These parameters are assured by design, but are not characterized or tested in manufacturing.
2: Programming of the Flash memory is allowed up to +150°C.
31.2 AC Characteristics and Timing Parameters in this section begin with an H, which denotes
Parameters High temperature. For example, Parameter OS53 in
Section 30.2 “AC Characteristics and Timing
The information contained in this section defines the Parameters” is the Industrial and Extended temperature
dsPIC33EVXXXGM00X/10X family AC characteristics equivalent of HOS53.
and timing parameters for high-temperature devices.
However, all AC timing specifications in this section are
the same as those in Section 30.2 “AC Characteristics
and Timing Parameters”, with the exception of the
parameters listed in this section.
VDD/2
RL Pin CL
VSS
CL
Pin RL = 464
CL = 50 pF for all pins except OSC2
VSS 15 pF for OSC2 output
Param
Symbol Characteristic Min. Typ.(1) Max. Units Conditions
No.
HOS50 FPLLI PLL Voltage Controlled 0.8 — 8.0 MHz ECPLL, XTPLL modes
Oscillator (VCO) Input
Frequency Range
HOS51 FSYS On-Chip VCO System 120 — 340 MHz
Frequency
HOS52 TLOCK PLL Start-up Time (Lock Time) 0.9 1.5 3.1 ms
HOS53 DCLK CLKO Stability (Jitter)(2) -3 0.5 3 %
Note 1: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated. Parameters are for design guidance only
and are not tested.
2: This jitter specification is based on clock cycle-by-clock cycle measurements. To get the effective jitter for
individual time bases or communication clocks used by the application, use the following formula:
D CLK
Effective Jitter = -------------------------------------------------------------------------------------------
F OSC
---------------------------------------------------------------------------------------
Time Base or Communication Clock
For example, if FOSC = 120 MHz and the SPI bit rate = 10 MHz, the effective jitter is as follows:
D CLK D CLK D CLK
Effective Jitter = -------------- = -------------- = --------------
120 12 3.464
---------
10
Param
Characteristic Min Typ Max Units Conditions
No.
Internal FRC Accuracy @ FRC Frequency = 7.3728 MHz
HF20C FRC -3 1 +3 % -40°C TA +150°C VDD = 4.5V to 5.5V
Param
Characteristic Min Typ Max Units Conditions
No.
LPRC @ 32.768 kHz(1,2)
HF21C LPRC -30 10 +30 % -40°C TA +150°C VDD = 4.5V to 5.5V
Note 1: Change of LPRC frequency as VDD changes.
2: LPRC accuracy impacts the Watchdog Timer Time-out Period (TWDT1). See Section 27.5 “Watchdog
Timer (WDT)” for more information.
Param
Symbol Characteristic Min. Typ.(1) Max. Units Conditions
No.
Comparator DC Characteristics
HCM30 VOFFSET Comparator Offset Voltage -80 ±60 80 mV
HCM31 VHYST Input Hysteresis Voltage — 30 — mV
HCM34 VICM Input Common-Mode Voltage AVSS — AVDD V
(2)
Op Amp DC Characteristics
HCM40 VCMR Common-Mode Input AVSS — AVDD V
Voltage Range
HCM42 VOFFSET Op Amp Offset Voltage -50 ±6 50 mV
Note 1: Data in “Typ.” column is at 5.0V, +25°C unless otherwise stated.
2: Resistances can vary by ±10% between op amps.
3: Device is functional at VBORMIN < VDD < VDDMIN, but will have degraded performance. Device functionality
is tested, but is not characterized. Analog modules: ADC, op amp/comparator and comparator voltage
reference, will have degraded performance. Refer to Parameter HBO10 in Table 31-10 for the minimum
and maximum BOR values.
Param
Symbol Characteristic Min. Typ. Max. Units Conditions
No.
ADC Accuracy (12-Bit Mode)
HAD20a Nr Resolution 12 data bits bits
HAD21a INL Integral Nonlinearity -2 — +2 LSb VINL = AVSS = VREFL = 0V,
AVDD = VREFH = 5.5V
HAD22a DNL Differential Nonlinearity -1 — <1 LSb VINL = AVSS = VREFL = 0V,
AVDD = VREFH = 5.5V
HAD23a GERR Gain Error -10 4 10 LSb VINL = AVSS = VREFL = 0V,
AVDD = VREFH = 5.5V
HAD24a EOFF Offset Error -10 1.75 10 LSb VINL = AVSS = VREFL = 0V,
AVDD = VREFH = 5.5V
Note 1: Device is functional at VBORMIN < VDD < VDDMIN, but will have degraded performance. Device functionality
is tested, but is not characterized. Analog modules: ADC, op amp/comparator and comparator voltage
reference, will have degraded performance. Refer to Parameter BO10 in Table 30-12 for the minimum and
maximum BOR values.
Param
Symbol Characteristic Min. Typ. Max. Units Conditions
No.
ADC Accuracy (10-Bit Mode)
HAD20b Nr Resolution 10 data bits bits
HAD21b INL Integral Nonlinearity -1.5 — +1.5 LSb VINL = AVSS = VREFL = 0V,
AVDD = VREFH = 5.5V
HAD22b DNL Differential Nonlinearity 1 — <1 LSb VINL = AVSS = VREFL = 0V,
AVDD = VREFH = 5.5V
HAD23b GERR Gain Error 1 3 6 LSb VINL = AVSS = VREFL = 0V,
AVDD = VREFH = 5.5V
HAD24b EOFF Offset Error 1 2 4 LSb VINL = AVSS = VREFL = 0V,
AVDD = VREFH = 5.5V
Note 1: Device is functional at VBORMIN < VDD < VDDMIN, but will have degraded performance. Device functionality
is tested, but is not characterized. Analog modules: ADC, op amp/comparator and comparator voltage
reference, will have degraded performance. Refer to Parameter HBO10 in Table 31-10 for the minimum
and maximum BOR values.
30.0
25.0
-40C Max
-40C Typ
20.0
IDD (mA)
25C Max
25C Typ
15.0 85C Max
85C Typ
10.0 125C Max
125C Typ
5.0
0.0
5 15 25 35 45 55 65 75
Frequency (MIPS)
5.4
5.2
5
IDD (mA)
-40C
25C
4.8
85C
125C
4.6
4.4
4.2
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
9.6
9.4
9.2
IDD (mA)
-40C
9
25C
85C
8.8
125C
8.6
8.4
8.2
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
18.1
17.9
17.7
17.5
IDD (mA)
-40C
17.3
25C
17.1 85C
125C
16.9
16.7
16.5
16.3
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
25.8
25.6
25.4
25.2
IDD (mA)
-40C
25
25C
24.8 85C
125C
24.6
24.4
24.2
24
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
29
28.8
28.6
IDD (mA)
-40C
28.4 25C
85C
28.2
28
27.8
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
32.2 IIDLE
FIGURE 32-7: TYPICAL/MAXIMUM IIDLE vs. FOSC (EC MODE 10 MHz TO 70 MHz, 5.5V MAX)
6
Max -40C
5 Typ -40C
Max 25C
IIDLE (mA)
4 Typ 25C
Max 85C
3
Typ 85C
Max 125C
2
Typ 125C
0
5 15 25 35 45 55 65 75
Frequency (MIPS)
1.7
1.6
IIDLE (mA)
-40C
1.5
25C
85C
1.4 125C
1.3
1.2
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
2.8
2.7
2.6
IIDLE (mA)
-40C
2.5
25C
85C
2.4 125C
2.3
2.2
2.1
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
4.7
4.6
4.5
IIDLE (mA)
-40C
4.4
25C
85C
4.3
125C
4.2
4.1
4
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
6.6
6.5
6.4
IIDLE (mA)
6.3
-40C
25C
6.2
85C
125C
6.1
5.9
5.8
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
7.05
7
IIDLE (mA)
6.95 -40C
25C
85C
6.9
6.85
6.8
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
32.3 IDOZE
FIGURE 32-13: TYPICAL IDOZE vs. VDD (DOZE 1:2, 70 MIPS)
17.8
17.4
17
IDOZE (mA)
-40C
25C
16.6 85C
125C
16.2
15.8
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
20
19
18
IDOZE (mA)
16
15
-50 0 50 100 150
Temperature (C)
8.2
7.8
IDOZE (mA)
-40C
7.6
25C
85C
7.4 125C
7.2
7
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
9.5
8.5
IDOZE (mA)
5.5V Max
(1:128)
8 5.5V Typ
(1:128)
7.5
7
-50 0 50 100 150
Temperature (C)
32.4 IPD
FIGURE 32-17: TYPICAL IPD vs. VDD
250
200
150
IPD (uA)
-40C
25C
100 85C
125C
50
0
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD(V)
1400
1200
1000
IPD (uA)
400
200
0
-50 0 50 100 150
Temperature (C)
12
10
8
IPD (uA)
6 5.5V Max
5.5V Typ
0
-50 0 50 100 150
Temperature (C)
32.5 FRC
FIGURE 32-20: TYPICAL FRC ACCURACY vs. VDD
0.4
0.2
0
FRC Accuracy (%)
-40C
-0.2
25C
85C
-0.4 125C
-0.6
-0.8
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
0.2
FRC Accuracy (%)
-0.2
-0.4
-0.6
-0.8
-50 0 50 100 150
Temperature (C)
32.6 LPRC
FIGURE 32-22: TYPICAL LPRC ACCURACY vs. VDD
2
LPRC Accuracy (%)
-40C
1
25C
85C
0 125C
-1
-2
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
2
LPRC Accuracy (%)
-1
-2
-3
-50 0 50 100 150
Temperature (C)
600
400
Leakage Current (nA)
VPIN = 5.5V
200
VPIN = 0V
-200
-400
-600
-50 0 50 100 150
Temperature (C)
25
20
15
10
Leakage Current (nA)
5 VPIN = 5.5V
-5
VPIN = 0V
-10
-15
-20
-25
-50 0 50 100 150
Temperature (C)
20
15
10
Leakage Current (nA)
5
VPIN = 5.5V
-5
VPIN = 0V
-10
-15
-50 0 50 100 150
Temperature (C)
-350
Pull-up Current (uA)
-400
-450
-500
-50 0 50 100 150
Temperature (C)
500
Pull-down Current (uA)
450
400
350
300
250
-50 0 50 100 150
Temperature (C)
4.5
3.5
Indeterminate Logic
3
2.5
1.5
-50 0 50 100 150
Temperature (C)
4.9
-40C
VOH (V)
4.8 25C
85C
125C
4.7
4.6
7.5 8.5 9.5 10.5 11.5 12.5 13.5
IOH (mA)
FIGURE 32-31: TYPICAL VOH 4x DRIVER PINS vs. IOH (GENERAL PURPOSE I/Os,
TEMPERATURES AS NOTED)
4.8
4.75
4.7
4.65
-40C
VOH (V)
4.6
25C
4.55 85C
125C
4.5
4.45
4.4
4.35
7.5 8.5 9.5 10.5 11.5 12.5 13.5
IOH (mA)
FIGURE 32-32: TYPICAL VOL 8x DRIVER PINS vs. IOL (GENERAL PURPOSE I/Os,
TEMPERATURES AS NOTED)
200
180
160
VOL (mV)
-40C
140 25C
85C
125C
120
100
80
7.5 8.5 9.5 10.5 11.5 12.5
IOL (mA)
FIGURE 32-33: TYPICAL VOL 4x DRIVER PINS vs. IOL (GENERAL PURPOSE I/Os,
TEMPERATURES AS NOTED)
350
300
250
VOL (mV)
-40C
25C
85C
200
125C
150
100
7.5 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5
IOL (mA)
32.11 VREG
FIGURE 32-34: TYPICAL REGULATOR VOLTAGE vs. TEMPERATURE
1.87
1.865
1.86
VREG Voltage (V)
1.855
1.85
1.845
1.84
-50 0 50 100 150
Temperature (C)
32.12 VBOR
FIGURE 32-35: TYPICAL BOR TRIP RANGE vs. TEMPERATURE
4.29
4.285
4.28
BOR Trip Voltage (V)
4.275
4.27
4.265
4.26
4.255
4.25
-50 0 50 100 150
Temperature (C)
1.714
1.712
RAM Retention Voltage (V)
1.71
1.708
1.706
1.704
1.702
1.7
-50 0 50 100 150
Temperature (C)
-15
-20
-25
-30
-35
VOFFSET (mV)
-40C
-40
25C
85C
-45
125C
-50
-55
-60
-65
0 1 2 3 4 5 6
VCM (V)
-1
-2
VOFFSET (mV)
-3
-40C
25C
-4 85C
125C
-5
-6
-7
0 1 2 3 4 5 6
VCM (V)
100
0
CTMU Range Current (uA)
-500
-600
-50 0 50 100 150
Temperature (C)
900
800
700
Forward Voltage (mV)
Base Range
600
10x Range
100x Range
500
400
300
-50 0 50 100 150
Temperature (C)
0.3
0.25
0.2
0.15
0.1
DNL (LSBs)
0.05
-0.05
-0.1
-0.15
-0.2
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
0.4
0.3
0.2
DNL (LSBs)
0.1
-0.1
-0.2
-0.3
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
0.4
0.3
0.2
DNL (LSBs)
0.1
-0.1
-0.2
-0.3
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
0.5
0.4
0.3
0.2
DNL (LSBs)
0.1
-0.1
-0.2
-0.3
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
0.5
0.4
0.3
0.2
INL (LSBs)
0.1
-0.1
-0.2
-0.3
-0.4
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
0.5
0.4
0.3
0.2
INL (LSBs)
0.1
-0.1
-0.2
-0.3
-0.4
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
0.5
0.4
0.3
0.2
0.1
INL (LSBs)
-0.1
-0.2
-0.3
-0.4
-0.5
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
0.4
0.3
0.2
0.1
INL (LSBs)
-0.1
-0.2
-0.3
-0.4
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
6.8
6.6
6.4
Gain Error (LSBs)
6.2
5.8
5.6
5.4
5.2
5
-50 0 50 100 150
Temperature
3.35
3.3
3.25
Offset Error (LSBs)
3.2
3.15
3.1
3.05
2.95
-50 0 50 100 150
Temperature
NOTES:
25.0
20.0
15.0
IDD (mA)
150C Max
150C Typ
10.0
5.0
0.0
5 10 15 20 25 30 35 40 45
Frequency (MIPS)
7.2
6.7
IDD (mA)
6.2
150C
5.7
5.2
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
11.7
11.4
11.1
IDD (mA)
150C
10.8
10.5
10.2
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
20.4
20.1
19.8
19.5
IDD (mA)
19.2 150C
18.9
18.6
18.3
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
33.2 IIDLE
FIGURE 33-5: TYPICAL/MAXIMUM IIDLE vs. FOSC (EC MODE 10 MHz TO 40 MHz, 5.5V MAX)
7.0
6.0
5.0
IIDLE (mA)
4.0
Max 150C
3.0 Typ 150C
2.0
1.0
0.0
5 10 15 20 25 30 35 40 45
Frequency (MIPS)
2.6
2.4
2.2
2
IIDLE (mA)
1.8 150C
1.6
1.4
1.2
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
3.7
3.5
3.3
3.1
IIDLE (mA)
2.9
150C
2.7
2.5
2.3
2.1
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
5.6
5.4
5.2
5
IIDLE (mA)
4.8
150C
4.6
4.4
4.2
4
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
33.3 IDOZE
FIGURE 33-9: TYPICAL IDOZE vs. VDD (DOZE 1:2, 70 MIPS)
18.8
18.3
17.8
IDOZE (mA)
17.3
150C
16.8
16.3
15.8
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
19
5.5V
Max
18 (1:2)
IDOZE (mA)
5.5V Typ
(1:2)
17
16
15
-50 0 50 100 150
Temperature (C)
8.6
IDOZE (mA)
8.2
150C
7.8
7.4
7
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
8.5
IDOZE (mA)
5.5V Max
(1:128)
8 5.5V Typ
(1:128)
7.5
7
-50 0 50 100 150
Temperature (C)
33.4 IPD
FIGURE 33-13: TYPICAL IPD vs. VDD
1500
1300
1100
IPD (uA)
150C
900
700
500
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
1400
1200
1000
IPD (uA)
800
5.5V Max
5.5V Typ
600
400
200
0
-50 0 50 100 150
Temperature (C)
12
10
8
IPD (uA)
6
5.5V Max
5.5V Typ
4
0
-50 0 50 100 150
Temperature (C)
33.5 FRC
FIGURE 33-16: TYPICAL FRC ACCURACY vs. VDD
0.4
0.2
FRC Accuracy (%)
0
150C
-0.2
-0.4
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
0.2
FRC Accuracy (%)
-0.2
-0.4
-0.6
-0.8
-50 0 50 100 150
Temperature (C)
33.6 LPRC
FIGURE 33-18: TYPICAL LPRC ACCURACY vs. VDD
-0.5
LPRC Accuracy (%)
-1
150C
-1.5
-2
-2.5
4.4 4.6 4.8 5 5.2 5.4 5.6
VDD (V)
1
LPRC Accuracy (%)
-1
-2
-3
-50 0 50 100 150
Temperature (C)
400
Leakage Current (nA)
-200 VPIN = 0V
-400
-600
-50 0 50 100 150
Temperature (C)
25
20
15
10
Leakage Current (nA)
5 VPIN = 5.5V
-5
VPIN = 0V
-10
-15
-20
-25
-50 0 50 100 150
Temperature (C)
15
10
Leakage Current (nA)
5
VPIN = 5.5V
-5
VPIN = 0V
-10
-15
-50 0 50 100 150
Temperature (C)
-350
Pull-up Current (uA)
-400
-450
-500
-50 0 50 100 150
Temperature (C)
500
450
Pull-down Current (uA)
400
350
300
250
-50 0 50 100 150
Temperature (C)
4.5
3.5
Indeterminate Logic
3
2.5
1.5
-50 0 50 100 150
Temperature (C)
4.85
4.8
VOH (V)
4.75
150C
4.7
4.65
7.5 8.5 9.5 10.5 11.5 12.5 13.5
IOH (mA)
FIGURE 33-27: TYPICAL VOH 4x DRIVER PINS vs. IOH (GENERAL PURPOSE I/Os,
TEMPERATURES AS NOTED)
4.7
4.65
4.6
4.55
VOH (V)
150C
4.5
4.45
4.4
4.35
7.5 8.5 9.5 10.5 11.5 12.5 13.5
IOH (mA)
FIGURE 33-28: TYPICAL VOL 8x DRIVER PINS vs. IOL (GENERAL PURPOSE I/Os,
TEMPERATURES AS NOTED)
220
200
180
VOL (mV)
160
150C
140
120
100
7.5 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5
IOL (mA)
FIGURE 33-29: TYPICAL VOL 4x DRIVER PINS vs. IOL (GENERAL PURPOSE I/Os,
TEMPERATURES AS NOTED)
400
350
VOL (mV)
300
150C
250
200
7.5 8 8.5 9 9.5 10 10.5 11 11.5 12 12.5
IOL (mA)
33.11 VREG
FIGURE 33-30: TYPICAL REGULATOR VOLTAGE vs. TEMPERATURE
1.87
1.865
1.86
VREG Voltage (V)
1.855
1.85
1.845
1.84
-50 0 50 100 150
Temperature (C)
33.12 VBOR
FIGURE 33-31: TYPICAL BOR TRIP RANGE vs. TEMPERATURE
4.29
4.285
4.28
BOR Trip Voltage (V)
4.275
4.27
4.265
4.26
4.255
4.25
-50 0 50 100 150
Temperature (C)
1.714
1.712
RAM Retention Voltage (V)
1.71
1.708
1.706
1.704
1.702
1.7
-50 0 50 100 150
Temperature (C)
-15
-25
-35
VOFFSET (mV)
-45
150C
-55
-65
-75
0 1 2 3 4 5 6
VCM (V)
-2
-4
VOFFSET (mV)
-6
150C
-8
-10
-12
0 1 2 3 4 5 6
VCM (V)
100
0
CTMU Range Current (uA)
10X Base
-200
Current
100X Base
-300 Range
1000X Base
-400 Range
-500
-600
-50 0 50 100 150
Temperature (C)
800
Forward Voltage (mV)
700
600
Base Range
10x Range
100x Range
500
400
300
-50 0 50 100 150
Temperature (C)
0.3
0.2
DNL (LSBs)
0.1
-0.1
-0.2
-0.3
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
0.3
0.2
0.1
INL (LSBs)
-0.1
-0.2
-0.3
-0.4
0 500 1000 1500 2000 2500 3000 3500 4000
Codes
6.8
6.6
6.4
Gain Error (LSBs)
6.2
5.8
5.6
5.4
5.2
5
-50 0 50 100 150
Temperature
3.3
3.25
Offset Error (LSBs)
3.2
3.15
3.1
3.05
2.95
-50 0 50 100 150
Temperature
NOTES:
XXXXXXXXXXXXXXXXX dsPIC33EV256GM002
XXXXXXXXXXXXXXXXX
YYWWNNN 1610017
XXXXXXXXXXXXXXXXXXXX dsPIC33EV256GM002
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
YYWWNNN 1610017
XXXXXXXXXXXX dsPIC33EV256
XXXXXXXXXXXX GM002
YYWWNNN 1610017
XXXXXXXX 33EV256
XXXXXXXX GM002
YYWWNNN 1610017
Note: In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line, thus limiting the number of available
characters for customer-specific information.
XXXXXXXXXX dsPIC33EV
XXXXXXXXXX 256GM004
XXXXXXXXXX
1610017
YYWWNNN
PIN 1 PIN 1
XXXXXXXXXX dsPIC33EV
XXXXXXXXXX 256GM004
XXXXXXXXXX
YYWWNNN 1610017
XXXXXXXXXX dsPIC33EV
XXXXXXXXXX 256GM006
XXXXXXXXXX 1610017
YYWWNNN
XXXXXXXXXXX dsPIC33EV
XXXXXXXXXXX 256GM006
XXXXXXXXXXX
YYWWNNN 1610017
/HDG6NLQQ\3ODVWLF'XDO,Q/LQH63±PLO%RG\>63',3@
1RWH )RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
NOTE 1
E1
1 2 3
A A2
L c
A1 b1
b e eB
8QLWV ,1&+(6
'LPHQVLRQ/LPLWV 0,1 120 0$;
1XPEHURI3LQV 1
3LWFK H %6&
7RSWR6HDWLQJ3ODQH $ ± ±
0ROGHG3DFNDJH7KLFNQHVV $
%DVHWR6HDWLQJ3ODQH $ ± ±
6KRXOGHUWR6KRXOGHU:LGWK (
0ROGHG3DFNDJH:LGWK (
2YHUDOO/HQJWK '
7LSWR6HDWLQJ3ODQH /
/HDG7KLFNQHVV F
8SSHU/HDG:LGWK E
/RZHU/HDG:LGWK E
2YHUDOO5RZ6SDFLQJ H% ± ±
1RWHV
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
6LJQLILFDQW&KDUDFWHULVWLF
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
/HDG3ODVWLF6KULQN6PDOO2XWOLQH66±PP%RG\>6623@
1RWH )RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
D
N
E
E1
1 2
b
NOTE 1
e
c
A A2
φ
A1
L1 L
8QLWV 0,//,0(7(56
'LPHQVLRQ/LPLWV 0,1 120 0$;
1XPEHURI3LQV 1
3LWFK H %6&
2YHUDOO+HLJKW $ ± ±
0ROGHG3DFNDJH7KLFNQHVV $
6WDQGRII $ ± ±
2YHUDOO:LGWK (
0ROGHG3DFNDJH:LGWK (
2YHUDOO/HQJWK '
)RRW/HQJWK /
)RRWSULQW / 5()
/HDG7KLFNQHVV F ±
)RRW$QJOH
/HDG:LGWK E ±
1RWHV
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGPPSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
/HDG3ODVWLF4XDG)ODW1R/HDG3DFNDJH00±[[PP%RG\>4)16@
ZLWKPP&RQWDFW/HQJWK
1RWH )RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
D A
D1 B
NOTE 2
(DATUM A)
(DATUM B)
E1 E
NOTE 1 A A
2X
N
0.20 H A B
2X 1 2 3
0.20 H A B 4X 11 TIPS
TOP VIEW
0.20 C A B
A A2
C
SEATING PLANE
0.10 C A1
SIDE VIEW
1 2 3
NOTE 1
44 X b
e 0.20 C A B
BOTTOM VIEW
Microchip Technology Drawing C04-076C Sheet 1 of 2
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
L θ
(L1)
SECTION A-A
Units MILLIMETERS
Dimension Limits MIN NOM MAX
Number of Leads N 44
Lead Pitch e 0.80 BSC
Overall Height A - - 1.20
Standoff A1 0.05 - 0.15
Molded Package Thickness A2 0.95 1.00 1.05
Overall Width E 12.00 BSC
Molded Package Width E1 10.00 BSC
Overall Length D 12.00 BSC
Molded Package Length D1 10.00 BSC
Lead Width b 0.30 0.37 0.45
Lead Thickness c 0.09 - 0.20
Lead Length L 0.45 0.60 0.75
Footprint L1 1.00 REF
Foot Angle θ 0° 3.5° 7°
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Exact shape of each corner is optional.
3. Dimensioning and tolerancing per ASME Y14.5M
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
44-Lead Plastic Quad Flat, No Lead Package (ML) - 8x8 mm Body [QFN or VQFN]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
D A B
N
NOTE 1
1
2
E
(DATUM B)
(DATUM A)
2X
0.20 C
2X
0.20 C TOP VIEW
0.10 C A1
C
SEATING A
PLANE 44X
A3 0.08 C
SIDE VIEW
L
0.10 C A B
D2
0.10 C A B
E2
K
2
1
NOTE 1 N
44X b
e 0.07 C A B
0.05 C
BOTTOM VIEW
Microchip Technology Drawing C04-103D Sheet 1 of 2
44-Lead Plastic Quad Flat, No Lead Package (ML) - 8x8 mm Body [QFN or VQFN]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Units MILLIMETERS
Dimension Limits MIN NOM MAX
Number of Pins N 44
Pitch e 0.65 BSC
Overall Height A 0.80 0.90 1.00
Standoff A1 0.00 0.02 0.05
Terminal Thickness A3 0.20 REF
Overall Width E 8.00 BSC
Exposed Pad Width E2 6.25 6.45 6.60
Overall Length D 8.00 BSC
Exposed Pad Length D2 6.25 6.45 6.60
Terminal Width b 0.20 0.30 0.35
Terminal Length L 0.30 0.40 0.50
Terminal-to-Exposed-Pad K 0.20 - -
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Package is saw singulated
3. Dimensioning and tolerancing per ASME Y14.5M
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
44-Lead Plastic Quad Flat, No Lead Package (ML) - 8x8 mm Body [QFN or VQFN]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
C1
X2
EV
44
G2
1
2
ØV
EV
C2 Y2
G1
Y1
E SILK SCREEN
X1
64-Lead Plastic Thin Quad Flatpack (PT)-10x10x1 mm Body, 2.00 mm Footprint [TQFP]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
D
D1
D1/2
D
NOTE 2
E1/2
A B
E1 E
A A
SEE DETAIL 1
N
4X N/4 TIPS
0.20 C A-B D 1 3
2
4X
NOTE 1
0.20 H A-B D
TOP VIEW
A2
A
C 0.05
SEATING
PLANE
A1
64 X b
0.08 C 0.08 C A-B D
e
SIDE VIEW
64-Lead Plastic Thin Quad Flatpack (PT)-10x10x1 mm Body, 2.00 mm Footprint [TQFP]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
E
L T
(L1) X=A—B OR D
SECTION A-A X
e/2
DETAIL 1
Units MILLIMETERS
Dimension Limits MIN NOM MAX
Number of Leads N 64
Lead Pitch e 0.50 BSC
Overall Height A - - 1.20
Molded Package Thickness A2 0.95 1.00 1.05
Standoff A1 0.05 - 0.15
Foot Length L 0.45 0.60 0.75
Footprint L1 1.00 REF
Foot Angle I 0° 3.5° 7°
Overall Width E 12.00 BSC
Overall Length D 12.00 BSC
Molded Package Width E1 10.00 BSC
Molded Package Length D1 10.00 BSC
Lead Thickness c 0.09 - 0.20
Lead Width b 0.17 0.22 0.27
Mold Draft Angle Top D 11° 12° 13°
Notes: Mold Draft Angle Bottom E 11° 12° 13°
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Chamfers at corners are optional; size may vary.
3. Dimensions D1 and E1 do not include mold flash or protrusions. Mold flash or
protrusions shall not exceed 0.25mm per side.
4. Dimensioning and tolerancing per ASME Y14.5M
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
Microchip Technology Drawing C04-085C Sheet 2 of 2
64-Lead Plastic Thin Quad Flatpack (PT)-10x10x1 mm Body, 2.00 mm Footprint [TQFP]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
C1
C2
Y1
X1
Units MILLIMETERS
Dimension Limits MIN NOM MAX
Contact Pitch E 0.50 BSC
Contact Pad Spacing C1 11.40
Contact Pad Spacing C2 11.40
Contact Pad Width (X28) X1 0.30
Contact Pad Length (X28) Y1 1.50
Distance Between Pads G 0.20
Notes:
1. Dimensioning and tolerancing per ASME Y14.5M
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
Microchip Technology Drawing C04-2085B Sheet 1 of 1
64-Lead Very Thin Plastic Quad Flat, No Lead Package (MR) – 9x9x0.9 mm Body [VQFN]
With 7.15 x 7.15 Exposed Pad [Also called QFN]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
9.00 A B
NOTE 1
N
1
2
9.00
(DATUM B)
(DATUM A)
2X
0.25 C
2X
0.25 C
TOP VIEW
A1
C 0.10 C
SEATING A
PLANE 64X
(A3) 0.08 C
SIDE VIEW
0.10 C A B
D2
0.10 C A B
E2
NOTE 1 K
2
1
L 64X b
e
2 0.10 C A B
e 0.05 C
BOTTOM VIEW
Microchip Technology Drawing C04-149D [MR] Sheet 1 of 2
64-Lead Very Thin Plastic Quad Flat, No Lead Package (MR) – 9x9x0.9 mm Body [VQFN]
With 7.15 x 7.15 Exposed Pad [Also called QFN]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
Units MILLIMETERS
Dimension Limits MIN NOM MAX
Number of Pins N 64
Pitch e 0.50 BSC
Overall Height A 0.80 0.90 1.00
Standoff A1 0.00 0.02 0.05
Contact Thickness A3 0.20 REF
Overall Width E 9.00 BSC
Exposed Pad Width E2 7.05 7.15 7.25
Overall Length D 9.00 BSC
Exposed Pad Length D2 7.05 7.15 7.25
Contact Width b 0.18 0.25 0.30
Contact Length L 0.30 0.40 0.50
Contact-to-Exposed Pad K 0.20 - -
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Package is saw singulated
3. Dimensioning and tolerancing per ASME Y14.5M
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
REF: Reference Dimension, usually without tolerance, for information purposes only.
64-Lead Very Thin Plastic Quad Flat, No Lead Package (MR) – 9x9x0.9 mm Body [VQFN]
With 7.15 x 7.15 Exposed Pad [Also called QFN]
Note: For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
C1
Y1
EV
20
G1
1
2
ØV
Y2
C2 G2
EV
Y1
X1
E
SILK SCREEN 2
Units MILLIMETERS
Dimension Limits MIN NOM MAX
Contact Pitch E 0.50 BSC
Optional Center Pad Width X2 7.25
Optional Center Pad Length Y2 7.25
Contact Pad Spacing C1 9.00
Contact Pad Spacing C2 9.00
Contact Pad Width (X64) X1 0.30
Contact Pad Length (X64) Y1 0.95
Contact Pad to Center Pad (X64) G1 0.40
Spacing Between Contact Pads (X60) G2 0.20
Thermal Via Diameter V 0.33
Thermal Via Pitch EV 1.20
Notes:
1. Dimensioning and tolerancing per ASME Y14.5M
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
2. For best soldering results, thermal vias, if used, should be filled or tented to avoid solder loss during
reflow process
NOTES:
INDEX
A Timer1 External Clock Requirements ....................... 357
Timer2 and Timer4 (Type B) External Clock
Absolute Maximum Ratings .............................................. 341
AC Characteristics ............................................................ 351 Requirements ................................................... 358
10-Bit ADC Conversion Requirements ..................... 401 Timer3 and Timer5 (Type C) External Clock
Requirements ................................................... 358
12-Bit ADC Conversion Requirements ..................... 399
12Cx Bus Data Requirements (Master Mode) .......... 388 UARTx I/O Requirements......................................... 391
ADC Module.............................................................. 395 ADC
10-Bit Configuration.................................................. 285
ADC Module (10-Bit Mode)....................................... 397
ADC Module (12-Bit Mode)....................................... 396 12-Bit Configuration.................................................. 285
CANx I/O Requirements ........................................... 391 Control Registers...................................................... 289
Helpful Tips............................................................... 288
Capacitive Loading Requirements on
Output Pins ....................................................... 351 Key Features ............................................................ 285
DMA Module Requirements...................................... 401 Alternate Interrupt Vector Table (AIVT) .............................. 95
Analog-to-Digital Converter. See ADC.
External Clock Requirements ................................... 352
High Temperature ..................................................... 408 Assemblers
ADC Module (10-Bit Mode)............................... 412 MPASM Assembler .................................................. 338
MPLAB Assembler, Linker, Librarian........................ 338
ADC Module (12-Bit Mode)............................... 411
Internal FRC Accuracy...................................... 409 B
Internal LPRC Accuracy ................................... 409
Bit-Reversed Addressing
PLL Clock ......................................................... 409
Example...................................................................... 78
High-Speed PWMx Requirements ............................ 361
Implementation ........................................................... 77
I/O Requirements...................................................... 354
Sequence Table (16-Entry) ........................................ 78
I2Cx Bus Data Requirements (Slave Mode) ............. 390
Block Diagrams
Input Capture x (ICx) Requirements ......................... 359
16-Bit Timer1 Module ............................................... 173
Internal FRC Accuracy.............................................. 353
Accessing Program Memory with
Internal LPRC Accuracy............................................ 353
Table Instructions ............................................... 81
Load Conditions ................................................ 351, 408
ADCx Conversion Clock Period................................ 287
OCx/PWMx Mode Requirements.............................. 360
ADCx with Connection Options for ANx Pins
Op Amp/Comparator x Voltage Reference
and Op Amps ................................................... 286
Settling Time ..................................................... 393
Addressing for Table Registers .................................. 83
Output Compare x (OCx) Requirements................... 360
Arbiter Architecture..................................................... 73
PLL Clock.................................................................. 353
CALL Stack Frame ..................................................... 74
Reset, Watchdog Timer, Oscillator Start-up Timer
CANx Module ........................................................... 254
and Power-up Timer Requirements .................. 356
Comparator Voltage Reference Module ................... 314
SPI1 Master Mode (Full-Duplex, CKE = 0,
Connections for On-Chip Voltage Regulator ............ 324
CKP = x, SMP = 1) Requirements .................... 378
CPU Core ................................................................... 22
SPI1 Master Mode (Full-Duplex, CKE = 1,
CTMU Module .......................................................... 280
CKP = x, SMP = 1) ........................................... 376
Data Access from Program Space Address
SPI1 Master Mode (Half-Duplex,
Generation.......................................................... 80
Transmit Only) Requirements ........................... 375
Deadman Timer Module ........................................... 181
SPI1 Slave Mode (Full-Duplex, CKE = 0,
Digital Filter Interconnect .......................................... 302
CKP = 0, SMP = 0) Requirements .................... 386
DMA Controller ......................................................... 111
SPI1 Slave Mode (Full-Duplex, CKE = 0,
dsPIC33EVXXXGM00X/10X Family........................... 13
CKP = 1, SMP = 0) Requirements .................... 384
EDS Read Address Generation.................................. 68
SPI1 Slave Mode (Full-Duplex, CKE = 1,
EDS Write Address Generation.................................. 69
CKP = 0, SMP = 0) Requirements .................... 380
High-Speed PWMx Architectural Overview .............. 201
SPI1 Slave Mode (Full-Duplex, CKE = 1,
High-Speed PWMx Register Interconnection ........... 202
CKP = 1, SMP = 0) Requirements .................... 382
I2Cx Module ............................................................. 230
SPI2 Master Mode (Full-Duplex, CKE = 0,
Input Capture x Module ............................................ 189
CKP = x, SMP = 1) Requirements .................... 365
MCLR Pin Connections .............................................. 18
SPI2 Master Mode (Full-Duplex, CKE = 1,
Multiplexing Remappable Output for RPn ................ 149
CKP = x, SMP = 1) Requirements .................... 364
Op Amp/Comparator x Module................................. 301
SPI2 Master Mode (Half-Duplex,
Oscillator Circuit Placement ....................................... 19
Transmit Only) Requirements ........................... 363
Oscillator System...................................................... 123
SPI2 Slave Mode (Full-Duplex, CKE = 0,
Output Compare x Module ....................................... 193
CKP = 0, SMP = 0) Requirements .................... 373
Paged Data Memory Space ....................................... 70
SPI2 Slave Mode (Full-Duplex, CKE = 0,
Peripheral to DMA Controller.................................... 109
CKP = 1, SMP = 0) Requirements .................... 371
PLL Module .............................................................. 124
SPI2 Slave Mode (Full-Duplex, CKE = 1,
Recommended Minimum Connection ........................ 18
CKP = 0, SMP = 0) Requirements .................... 367
Remappable Input for U1RX .................................... 146
SPI2 Slave Mode (Full-Duplex, CKE = 1,
Reset System ............................................................. 92
CKP = 1, SMP = 0) Requirements .................... 369
CxFMSKSEL1 (CANx Filters 7-0 Mask I2CxMSK (I2Cx Slave Mode Address Mask)............ 235
Selection 1) ....................................................... 269 I2CxSTAT (I2Cx Status) ........................................... 234
CxFMSKSEL2 (CANx Filters 15-8 Mask ICxCON1 (Input Capture x Control 1)....................... 190
Selection 2) ....................................................... 270 ICxCON2 (Input Capture x Control 2)....................... 191
CxINTE (CANx Interrupt Enable) .............................. 261 INTCON1 (Interrupt Control 1) ................................. 103
CxINTF (CANx Interrupt Flag) .................................. 260 INTCON2 (Interrupt Control 2) ................................. 105
CxRXFnEID (CANx Acceptance Filter n INTCON3 (Interrupt Control 3) ................................. 106
Extended Identifier)........................................... 268 INTCON4 (Interrupt Control 4) ................................. 107
CxRXFnSID (CANx Acceptance Filter n INTTREG (Interrupt Control and Status) .................. 108
Standard Identifier) ........................................... 268 IOCONx (PWMx I/O Control).................................... 213
CxRXFUL1 (CANx Receive Buffer Full 1)................. 272 LEBCONx (PWMx Leading-Edge Blanking
CxRXFUL2 (CANx Receive Buffer Full 2)................. 272 Control)............................................................. 217
CxRXMnEID (CANx Acceptance Filter Mask n LEBDLYx (PWMx Leading-Edge Blanking
Extended Identifier)........................................... 271 Delay) ............................................................... 218
CxRXMnSID (CANx Acceptance Filter Mask n MDC (PWMx Master Duty Cycle) ............................. 207
Standard Identifier) ........................................... 271 NVMADR (NVM Lower Address)................................ 88
CxRXOVF1 (CANx Receive Buffer NVMADRU (NVM Upper Address) ............................. 88
Overflow 1) ....................................................... 273 NVMCON (NVM Control)............................................ 86
CxRXOVF2 (CANx Receive Buffer NVMKEY (NVM Key).................................................. 89
Overflow 2) ....................................................... 273 NVMSRCADRH (NVM Data Memory
CxTRmnCON (CANx TX/RX Buffer mn Control) ...... 274 Upper Address) .................................................. 90
CxVEC (CANx Interrupt Code) ................................. 257 NVMSRCADRL (NVM Data Memory
DEVID (Device ID) .................................................... 323 Lower Address) .................................................. 90
DEVREV (Device Revision) ...................................... 323 OCxCON1 (Output Compare x Control 1) ................ 194
DMALCA (DMA Last Channel Active Status) ........... 120 OCxCON2 (Output Compare x Control 2) ................ 196
DMAPPS (DMA Ping-Pong Status) .......................... 121 OSCCON (Oscillator Control)................................... 126
DMAPWC (DMA Peripheral Write OSCTUN (FRC Oscillator Tuning)............................ 131
Collision Status) ................................................ 118 PDCx (PWMx Generator Duty Cycle)....................... 210
DMARQC (DMA Request Collision Status) .............. 119 PHASEx (PWMx Primary Phase-Shift)..................... 210
DMAxCNT (DMA Channel x Transfer Count) ........... 116 PLLFBD (PLL Feedback Divisor) ............................. 130
DMAxCON (DMA Channel x Control) ....................... 112 PMD1 (Peripheral Module Disable Control 1) .......... 136
DMAxPAD (DMA Channel x PMD2 (Peripheral Module Disable Control 2) .......... 137
Peripheral Address) .......................................... 116 PMD3 (Peripheral Module Disable Control 3) .......... 138
DMAxREQ (DMA Channel x IRQ Select) ................. 113 PMD4 (Peripheral Module Disable Control 4) .......... 138
DMAxSTAH (DMA Channel x PMD6 (Peripheral Module Disable Control 6) .......... 139
Start Address A, High) ...................................... 114 PMD7 (Peripheral Module Disable Control 7) .......... 140
DMAxSTAL (DMA Channel x PMD8 (Peripheral Module Disable Control 8) .......... 141
Start Address A, Low) ....................................... 114 PTCON (PWMx Time Base Control) ........................ 204
DMAxSTBH (DMA Channel x PTCON2 (PWMx Primary Master Clock
Start Address B, High) ...................................... 115 Divider Select) .................................................. 205
DMAxSTBL (DMA Channel x PTPER (PWMx Primary Master Time Base
Start Address B, Low) ....................................... 115 Period) .............................................................. 206
DMTCLR (Deadman Timer Clear) ............................ 183 PWMCONx (PWMx Control) .................................... 208
DMTCNTH (Deadman Timer Count High) ................ 185 RCON (Reset Control)................................................ 93
DMTCNTL (Deadman Timer Count Low) ................. 185 REFOCON (Reference Oscillator Control) ............... 132
DMTCON (Deadman Timer Control) ........................ 182 RPINR0 (Peripheral Pin Select Input 0) ................... 153
DMTHOLDREG (DMT Hold)..................................... 188 RPINR1 (Peripheral Pin Select Input 1) ................... 153
DMTPRECLR (Deadman Timer Preclear) ................ 182 RPINR11 (Peripheral Pin Select Input 11) ............... 157
DMTPSCNTH (DMT Post Configure Count RPINR12 (Peripheral Pin Select Input 12) ............... 158
Status High) ...................................................... 186 RPINR18 (Peripheral Pin Select Input 18) ............... 159
DMTPSCNTL (DMT Post Configure Count RPINR19 (Peripheral Pin Select Input 19) ............... 159
Status Low) ....................................................... 186 RPINR22 (Peripheral Pin Select Input 22) ............... 160
DMTPSINTVH (DMT Post Configure Interval RPINR23 (Peripheral Pin Select Input 23) ............... 161
Status High) ...................................................... 187 RPINR26 (Peripheral Pin Select Input 26) ............... 161
DMTPSINTVL (DMT Post Configure Interval RPINR3 (Peripheral Pin Select Input 3) ................... 154
Status Low) ....................................................... 187 RPINR37 (Peripheral Pin Select Input 37) ............... 162
DMTSTAT (Deadman Timer Status)......................... 184 RPINR38 (Peripheral Pin Select Input 38) ............... 162
DSADRH (DMA Most Recent RAM RPINR39 (Peripheral Pin Select Input 39) ............... 163
High Address) ................................................... 117 RPINR44 (Peripheral Pin Select Input 44) ............... 164
DSADRL (DMA Most Recent RAM RPINR45 (Peripheral Pin Select Input 45) ............... 164
Low Address) .................................................... 117 RPINR7 (Peripheral Pin Select Input 7) ................... 155
DTRx (PWMx Dead-Time) ........................................ 211 RPINR8 (Peripheral Pin Select Input 8) ................... 156
FCLCONx (PWMx Fault Current-Limit Control) ........ 215 RPOR0 (Peripheral Pin Select Output 0) ................. 165
I2CxCON1 (I2Cx Control 1) ...................................... 231 RPOR1 (Peripheral Pin Select Output 1) ................. 165
I2CxCON2 (I2Cx Control 2) ...................................... 233 RPOR10 (Peripheral Pin Select Output 10) ............. 170
NOTES:
NOTES:
NOTES:
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Authorized Distributor
Microchip:
dsPIC33EV128GM106-I/MR dsPIC33EV256GM106-I/PT dsPIC33EV256GM104-I/ML dsPIC33EV256GM102-I/SP
dsPIC33EV64GM102-I/MM dsPIC33EV256GM104-I/PT dsPIC33EV64GM102-I/SP dsPIC33EV128GM104-I/ML
dsPIC33EV64GM106-I/MR dsPIC33EV128GM102-I/SO dsPIC33EV64GM102-I/SO dsPIC33EV256GM106-I/MR
dsPIC33EV128GM102-I/SP dsPIC33EV64GM104-I/PT dsPIC33EV256GM102-I/SO dsPIC33EV64GM106-I/PT
dsPIC33EV128GM102-I/MM dsPIC33EV128GM104-I/PT dsPIC33EV64GM104-I/ML dsPIC33EV256GM102-I/MM
dsPIC33EV128GM106-E/PT dsPIC33EV256GM106-E/PT dsPIC33EV256GM002-E/MM dsPIC33EV256GM002-I/MM
dsPIC33EV128GM006-E/MR dsPIC33EV64GM004-I/ML dsPIC33EV64GM002-I/SO dsPIC33EV32GM002-E/SP
dsPIC33EV32GM002-E/SO dsPIC33EV32GM102-I/SO dsPIC33EV32GM104-E/ML dsPIC33EV32GM006-E/MR
dsPIC33EV32GM004-E/PT dsPIC33EV32GM002-E/MM dsPIC33EV32GM104-I/PT dsPIC33EV32GM102-I/SP
dsPIC33EV32GM106-I/MR dsPIC33EV32GM002-I/MM dsPIC33EV128GM006-I/MR dsPIC33EV64GM002-E/SP
dsPIC33EV128GM102-E/SO dsPIC33EV256GM004-E/PT dsPIC33EV64GM004-E/ML dsPIC33EV32GM002-I/SO
dsPIC33EV32GM004-I/ML dsPIC33EV32GM106-E/MR dsPIC33EV64GM006-E/MR dsPIC33EV128GM006-E/PT
dsPIC33EV32GM102-E/SP dsPIC33EV128GM004-I/PT dsPIC33EV256GM102-E/MM dsPIC33EV64GM006-E/PT
dsPIC33EV32GM102-E/SO dsPIC33EV32GM102-E/MM dsPIC33EV32GM104-E/PT dsPIC33EV32GM006-I/PT
dsPIC33EV256GM006-E/PT dsPIC33EV128GM004-E/ML dsPIC33EV64GM002-I/SP dsPIC33EV128GM002-E/SP
dsPIC33EV256GM002-E/SO dsPIC33EV256GM102-E/SP dsPIC33EV64GM002-I/MM dsPIC33EV64GM106-E/PT
dsPIC33EV256GM104-E/ML dsPIC33EV256GM106-E/MR dsPIC33EV128GM004-I/ML dsPIC33EV128GM106-I/PT
dsPIC33EV256GM002-I/SO dsPIC33EV256GM002-E/SP dsPIC33EV32GM106-E/PT dsPIC33EV256GM006-E/MR
dsPIC33EV64GM004-I/PT dsPIC33EV64GM002-E/MM dsPIC33EV64GM104-E/PT dsPIC33EV256GM004-I/ML
dsPIC33EV128GM106-E/MR dsPIC33EV128GM002-I/MM dsPIC33EV64GM102-E/SO dsPIC33EV128GM104-E/ML
dsPIC33EV128GM002-I/SO dsPIC33EV32GM002-I/SP dsPIC33EV128GM006-I/PT dsPIC33EV128GM002-I/SP
dsPIC33EV128GM002-E/MM dsPIC33EV64GM106-E/MR dsPIC33EV256GM004-I/PT dsPIC33EV256GM102-E/SO
dsPIC33EV128GM104-E/PT dsPIC33EV64GM006-I/PT dsPIC33EV64GM102-E/MM dsPIC33EV64GM104-E/ML
dsPIC33EV64GM002-E/SO dsPIC33EV64GM006-I/MR dsPIC33EV128GM102T-I/SO dsPIC33EV32GM104T-I/ML
dsPIC33EV128GM104T-I/ML dsPIC33EV256GM106T-I/MR dsPIC33EV128GM104T-I/PT dsPIC33EV32GM104T-I/PT