Dspic33fj32mc202 204
Dspic33fj32mc202 204
Dspic33fj32mc202 204
dsPIC33FJ16MC304
Data Sheet
High-Performance,
16-bit Digital Signal Controllers
DS70283J
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
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 Microchips 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 Microchips 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.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
PIC32 logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, chipKIT,
chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, Omniscient Code Generation, PICC,
PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE,
rfLAB, Select Mode, Total Endurance, TSHARC,
UniWinDriver, WiperLock and ZENA are trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
2007-2011, Microchip Technology Incorporated, Printed in
the U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-61341-370-8
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Companys quality system processes and procedures
are for its PIC MCUs and dsPIC DSCs, KEELOQ code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchips quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
DS70283J-page 2
dsPIC33FJ32MC202/204 and
dsPIC33FJ16MC304
High-Performance, 16-bit Digital Signal Controllers
Operating Range:
Interrupt Controller:
Digital I/O:
Timers/Capture/Compare/PWM:
Timer/Counters, up to three 16-bit timers
- Can pair up to make one 32-bit timer
- One timer runs as Real-Time Clock with
external 32.768 kHz oscillator
- Programmable prescaler
Input Capture (up to four channels):
- Capture on up, down or both edges
- 16-bit capture input functions
- 4-deep FIFO on each capture
Output Compare (up to two channels):
- Single or Dual 16-Bit Compare mode
- 16-bit Glitchless PWM mode
5-cycle latency
Up to 26 available interrupt sources
Up to three external interrupts
Seven programmable priority levels
Four processor exceptions
System Management:
Flexible clock options:
- External, crystal, resonator, internal RC
- Fully integrated Phase-Locked Loop (PLL)
- Extremely low jitter PLL
Power-up Timer
Oscillator Start-up Timer/Stabilizer
Watchdog Timer with its own RC oscillator
Fail-Safe Clock Monitor
Reset by multiple sources
Power Management:
On-chip 2.5V voltage regulator
Switch between clock sources in real time
Idle, Sleep and Doze modes with fast wake-up
DS70283J-page 3
Communication Modules:
4-wire SPI:
- Framing supports I/O interface to simple
codecs
- Supports 8-bit and 16-bit data
- Supports all serial clock formats and
sampling modes
I2C:
- Full Multi-Master Slave mode support
- 7-bit and 10-bit addressing
- Bus collision detection and arbitration
- Integrated signal conditioning
- Slave address masking
UART:
- Interrupt on address bit detect
- Interrupt on UART error
- Wake-up on Start bit from Sleep mode
- 4-character TX and RX FIFO buffers
- LIN bus support
- IrDA encoding and decoding in hardware
- High-Speed Baud mode
- Hardware Flow Control with CTS and RTS
Packaging:
28-pin SPDIP/SOIC/SSOP/QFN-S
44-pin QFN/TQFP
Note:
DS70283J-page 4
Device
Pins
RAM (Kbyte)
Remappable Pins
16-bit Timer
Input Capture
Output Compare
Standard PWM
Quadrature Encoder
Interface
UART
External Interrupts(3)
SPI
TABLE 1:
dsPIC33FJ32MC202
28
32
16
3(1)
6ch(2)
2ch(2)
1ADC,
6 ch
21 SPDIP
SOIC
SSOP
QFN-S
dsPIC33FJ32MC204
44
32
26
3(1)
6ch(2)
2ch(2)
1ADC,
9 ch
35
QFN
TQFP
dsPIC33FJ16MC304
44
16
26
3(1)
6ch(2)
2ch(2)
1ADC,
9 ch
35
QFN
TQFP
Note 1:
2:
3:
Packages
I/O Pins
I2C
10-Bit/12-Bit ADC
Remappable Peripherals
DS70283J-page 5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dsPIC33FJ32MC202
MCLR
AN0/VREF+/CN2/RA0
AN1/VREF-/CN3/RA1
PGED1/AN2/C2IN-/RP0(1)/CN4/RB0
PGEC1/AN3/C2IN+/RP1(1)/CN5/RB1
AN4/RP2(1)/CN6/RB2
AN5/RP3(1)/CN7/RB3
VSS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/RA3
SOSCI/RP4(1)/CN1/RB4
SOSCO/T1CK/CN0/RA4
VDD
PGED3/ASDA1/RP5(1)/CN27/RB5
28
27
26
25
24
AVDD
AVSS
PWM1L1/RP15(1)/CN11/RB15
PWM1H1/RP14(1)/CN12/RB14
PWM1L2/RP13(1)/CN13/RB13
PWM1H2/RP12(1)/CN14/RB12
PGEC2/TMS/PWM1L3/RP11(1)/CN15/RB11
PGED2/TDI/PWM1H3/RP10(1)/CN16/RB10
VCAP
VSS
TDO/PWM2L1/SDA1/RP9(1)/CN21/RB9
TCK/PWM2H1/SCL1/RP8(1)/CN22/RB8
INT0/RP7/CN23/RB7
PGEC3/ASCL1/RP6(1)/CN24/RB6
23
22
21
20
19
18
17
16
15
28-Pin QFN-S(2)
PWM1H1/RP14(1)/CN12/RB14
AVDD
AVSS
PWM1L1/RP15(1)/CN11/RB15
AN1/VREF-/CN3/RA1
AN0/VREF+/CN2/RA0
MCLR
28 27 26 25 24 23 22
PGED1/EMUD1/AN2/C2IN-/RP0(1)/CN4/RB0
PGEC1/EMUC1/AN3/C2IN+/RP1(1)/CN5/RB1
21
PWM1L2/RP13(1)/CN13/RB13
20
PWM1H2/RP12(1)/CN14/RB12
19
PGEC2/EMUC2/TMS/PWM1L3/RP11(1)/CN15/RB11
AN4/RP2(1)/CN6/RB2
AN5/RP3(1)/CN7/RB3
VSS
dsPIC33FJ32MC202 18
17
VCAP
16
15
VSS
TDO/PWM2L1/SDA1/RP9(1)/CN21/RB9
TCK/PWM2H1/SCL1/RP8(1)/CN22/RB8
SOSCI/RP4/CN1/RB4
PGEC3/EMUC3/ASCL1/RP6(1)/CN24/RB6
INT0/RP7(1)/CN23/RB7
9 10 11 12 13 14
PGED3/EMUD3/ASDA1/RP5(1)/CN27/RB5
SOSCO/T1CK/CN0/RA4
VDD
5
OSC1/CLKI/CN30/RA2 6
OSC2/CLKO/CN29/RA3 7
PGED2/EMUD2/TDI/PWM1H3/RP10(1)/CN16/RB10
Note 1: The RPn pins can be used by any remappable peripheral. See Table 1 for the list of available
peripherals.
2: The metal plane at the bottom of the device is not connected to any pins and is recommended to
be connected to VSS externally.
DS70283J-page 6
TMS/RA10
PWM1H1/RP14(1)/CN12/RB14
TCK/RA7
PWM1L1/RP15(1)/CN11/RB15
AVSS
MCLR
AVDD
AN0/VREF+/CN2/RA0
AN1/VREF-/CN3/RA1
PGED1/EMUD1/AN2/C2IN-/RP0(1)/CN4/RB0
PGEC1/EMUC1/AN3/C2IN+/RP1(1)/CN5/RB1
22 21 20 19 18 17 16 15 14 13 12
AN4/RP2(1)/CN6/RB2
AN5/RP3(1)/CN7/RB3
AN6/RP16(1)/CN8/RC0
(1)
AN7/RP17 /CN9/RC1
11
PWM1L2/RP13(1)/CN13/RB13
24
10
PWM1H2/RP12(1)/CN14/RB12
25
PGEC2/EMUC2/PWM1L3/RP11(1)/CN15/RB11
26
PGED2/EMUD2/PWM1H3/RP10(1)/CN16/RB10
VCAP
23
AN8/RP18(1)/CN10/RC2
27
VDD
28
VSS
VSS
29
RP25/CN19/RC9
OSC1/CLKI/CN30/RA2
30
RP24/CN20/RC8
OSC2/CLKO/CN29/RA3
31
PWM2L1/RP23(1)/CN17/RC7
TDO/RA8
32
PWM2H1/RP22(1)/CN18/RC6
SOSCI/RP4(1)/CN1/RB4
33
SDA1/RP9(1)/CN21/RB9
dsPIC33FJ32MC204
dsPIC33FJ16MC304
SCL1/RP8(1)/CN22/RB8
INT0/RP7/CN23/RB7
PGEC3/EMUC3/ASCL1/RP6(1)/CN24/RB6
VDD
PGED3/EMUD3/ASDA1/RP5(1)/CN27/RB5
VSS
RP21(1)/CN26/RC5
RP20(1)/CN25/RC4
RP19(1)/CN28/RC3
TDI/RA9
SOSCO/T1CK/CN0/RA4
34 35 36 37 38 39 40 41 42 43 44
Note 1: The RPn pins can be used by any remappable peripheral. See Table 1 for the list of available
peripherals.
2: The metal plane at the bottom of the device is not connected to any pins and is recommended to
be connected to VSS externally.
DS70283J-page 7
PGEC1/EMUC1/AN3/C2IN+/RP1(1)/CN5/RB1
PGED1/EMUD1/AN2/C2IN-/RP0(1)/CN4/RB0
AN1/VREF-/CN3/RA1
AN0/VREF+/CN2/RA0
MCLR
AVDD
AVSS
PWM1L1/RP15(1)/CN11/RB15
PWM1H1/RP14(1)/CN12/RB14
TCK/RA7
TMS/RA10
12
13
14
15
16
17
18
19
20
21
22
dsPIC33FJ32MC204
dsPIC33FJ16MC304
11
10
9
8
7
6
5
4
3
2
1
PWM1L2/RP13(1)/CN13/RB13
PWM1H2/RP12(1)/CN14/RB12
PGEC2/EMUC2/PWM1L3/RP11(1)/CN15/RB11
PGED2/EMUD2/PWM1H3/RP10(1)/CN16/RB10
VCAP
VSS
RP25(1)/CN19/RC9
RP24(1)/CN20/RC8
PWM2L1/RP23(1)/CN17/RC7
PWM2H1/RP22(1)/CN18/RC6
SDA1/RP9(1)/CN21/RB9
34
35
36
37
38
39
40
41
42
43
44
23
24
25
26
27
28
29
30
31
32
33
SOSCO/T1CK/CN0/RA4
TDI/RA9
RP19/(1)CN28/RC3
RP20(1)/CN25/RC4
RP21(1)/CN26/RC5
VSS
VDD
PGED3/EMUD3/ASDA1/RP5(1)/CN27/RB5
PGEC3/EMUC3/ASCL1/RP6(1)/CN24/RB6
INT0/RP7(1)/CN23/RB7
SCL1/RP8(1)/CN22/RB8
AN4/RP2(1)/CN6/RB2
AN5/RP3(1)/CN7/RB3
AN6/RP16(1)/CN8/RC0
AN7/RP17(1)/CN9/RC1
AN8/RP18(1)/CN10/RC2
VDD
VSS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/RA3
TDO/RA8
SOSCI/RP4(1)/CN1/RB4
Note 1: The RPn pins can be used by any remappable peripheral. See Table 1 for the list of available
peripherals.
DS70283J-page 8
DS70283J-page 9
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:
Microchips 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.
DS70283J-page 10
DEVICE OVERVIEW
DS70283J-page 11
Y Data Bus
X Data Bus
Interrupt
Controller
PORTA
16
16
16
16
Data Latch
Data Latch
X RAM
Y RAM
Address
Latch
Address
Latch
23
PCU PCH PCL
Program Counter
Loop
Stack
Control
Control
Logic
Logic
23
PORTB
16
23
16
16
PORTC
Address Latch
Program Memory
Remappable
Pins
EA MUX
Data Latch
ROM Latch
24
Instruction Reg
Control Signals
to Various Blocks
Timing
Generation
FRC/LPRC
Oscillators
Precision
Band Gap
Reference
Voltage
Regulator
VCAP
Divide Support
16 x 16
W Register Array
16
Oscillator
Start-up Timer
Power-on
Reset
16-bit ALU
Watchdog
Timer
16
Brown-out
Reset
MCLR
UART1
IC1,2,7,8
Note:
16
DSP Engine
Power-up
Timer
VDD, VSS
Timers
1-3
Literal Data
Instruction
Decode and
Control
OSC2/CLKO
OSC1/CLKI
16
16
SPI1
ADC1
OC/
PWM1-2
PWM
2 Ch
CNx
I2C1
QEI
PWM
6 Ch
Not all pins or features are implemented on all device pinout configurations. See Pin Diagrams for the specific pins
and features present on each device.
DS70283J-page 12
Buffer
Type
PPS
Description
AN0-AN8
Analog
No
CLKI
CLKO
I
O
ST/CMOS
No
No
External clock source input. Always associated with OSC1 pin function.
Oscillator crystal output. Connects to crystal or resonator in Crystal
Oscillator mode. Optionally functions as CLKO in RC and EC modes.
Always associated with OSC2 pin function.
OSC1
ST/CMOS
No
OSC2
I/O
No
SOSCI
SOSCO
I
O
ST/CMOS
No
No
CN0-CN30
ST
No
IC1-IC2
IC7-IC8
I
I
ST
ST
Yes
Yes
OCFA
OC1-OC2
I
O
ST
Yes
Yes
INT0
INT1
INT2
I
I
I
ST
ST
ST
No
Yes
Yes
External interrupt 0.
External interrupt 1.
External interrupt 2.
RA0-RA4
RA7-RA10
I/O
ST
No
No
RB0-RB15
I/O
ST
No
RC0-RC9
I/O
ST
No
T1CK
T2CK
T3CK
I
I
I
ST
ST
ST
No
Yes
Yes
U1CTS
U1RTS
U1RX
U1TX
I
O
I
O
ST
ST
Yes
Yes
Yes
Yes
SCK1
SDI1
SDO1
SS1
I/O
I
O
I/O
ST
ST
ST
Yes
Yes
Yes
Yes
SCL1
SDA1
ASCL1
ASDA1
I/O
I/O
I/O
I/O
ST
ST
ST
ST
No
No
No
No
TMS
TCK
TDI
TDO
I
I
I
O
ST
ST
ST
No
No
No
No
P = Power
I = Input
DS70283J-page 13
Buffer
Type
PPS
INDX
QEA
I
I
ST
ST
Yes
Yes
QEB
ST
Yes
UPDN
CMOS
Yes
FLTA1
PWM1L1
PWM1H1
PWM1L2
PWM1H2
PWM1L3
PWM1H3
FLTA2
PWM2L1
PWM2H1
I
O
O
O
O
O
O
I
O
O
ST
ST
Yes
No
No
No
No
No
No
Yes
No
No
PGED1
PGEC1
PGED2
PGEC2
PGED3
PGEC3
I/O
I
I/O
I
I/O
I
ST
ST
ST
ST
ST
ST
No
No
No
No
No
No
MCLR
I/P
ST
No
Master Clear (Reset) input. This pin is an active-low Reset to the device.
Pin Name
Description
AVDD
No
Positive supply for analog modules. This pin must be connected at all times.
AVSS
No
VDD
No
VCAP
No
VSS
No
VREF+
Analog
No
VREF-
Analog
No
DS70283J-page 14
P = Power
I = Input
Referenced Sources
DS70283J-page 15
DS70283J-page 16
2.1
2.2
Decoupling Capacitors
DS70283J-page 17
VDD
RECOMMENDED
MINIMUM CONNECTION
0.1 F
Ceramic
R
R1
MCLR
C
dsPIC33F
VSS
10
2.2.1
VDD
0.1 F
Ceramic
VSS
VDD
AVSS
VDD
AVDD
0.1 F
Ceramic
VSS
VSS
VCAP
VDD
10 F
2.4
0.1 F
Ceramic
0.1 F
Ceramic
TANK CAPACITORS
FIGURE 2-2:
2.3
VDD
R
R1
MCLR
JP
dsPIC33F
Note 1:
R 10 k is recommended. A suggested
starting value is 10 k. Ensure that the MCLR
pin VIH and VIL specifications are met.
2:
DS70283J-page 18
ICSP Pins
2.6
FIGURE 2-3:
SUGGESTED PLACEMENT
OF THE OSCILLATOR
CIRCUIT
Main Oscillator
13
Guard Ring
14
15
Guard Trace
Secondary
Oscillator
16
17
18
19
20
DS70283J-page 19
2.8
2.9
Unused I/Os
DS70283J-page 20
CPU
3.1
3.2
DS70283J-page 21
FIGURE 3-1:
Y Data Bus
X Data Bus
Interrupt
Controller
8
16
16
16
16
16
Data Latch
Data Latch
X RAM
Y RAM
Address
Latch
Address
Latch
23
23
16
23
16
16
16
16
Address Latch
16
Program Memory
EA MUX
Data Latch
ROM Latch
24
24
Instruction
Decode and
Control
Instruction Reg
16
Literal Data
16
Control Signals
to Various Blocks
16
DSP Engine
Divide Support
16
16 x 16
W Register Array
16
16
16-bit ALU
16
To Peripheral Modules
DS70283J-page 22
D0
W0/WREG
PUSH.S Shadow
W1
DO Shadow
W2
W3
Legend
W4
DSP Operand
Registers
W5
W6
W7
Working Registers
W8
W9
DSP Address
Registers
W10
W11
W12/DSP Offset
W13/DSP Write Back
W14/Frame Pointer
W15/Stack Pointer
SPLIM
AD39
AD15
AD31
AD0
ACCA
DSP
Accumulators
ACCB
PC22
PC0
Program Counter
0
0
7
TBLPAG
0
PSVPAG
0
RCOUNT
15
0
DCOUNT
DO Loop Counter
22
0
DOSTART
DOEND
22
15
0
Core Configuration Register
CORCON
OA
OB
SA
SB OAB SAB DA
SRH
DC
OV
STATUS Register
SRL
DS70283J-page 23
REGISTER 3-1:
R-0
OA
R/C-0
R/C-0
R-0
R/C-0
R -0
R/W-0
OB
SA(1)
SB(1)
OAB
SAB
DA
DC
bit 15
bit 8
R/W-0(3)
R/W-0(3)
R/W-0(3)
IPL<2:0>(2)
R-0
R/W-0
R/W-0
R/W-0
R/W-0
RA
OV
bit 7
bit 0
Legend:
C = Clear only bit
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
This bit may be read or cleared (not set). Clearing this bit will clear SA and SB.
bit 9
bit 8
Note 1:
2:
3:
DS70283J-page 24
bit 7-5
bit 4
bit 3
bit 2
bit 1
bit 0
Note 1:
2:
3:
DS70283J-page 25
bit 15
U-0
R/W-0
SATB
Legend:
R = Readable bit
0 = Bit is cleared
bit 11
bit 10-8
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Note 1:
2:
U-0
R/W-0
US
R/W-0
EDT(1)
R-0
R-0
DL<2:0>
R-0
bit 8
R/W-0
SATA
bit 7
bit 15-13
bit 12
R/W-1
SATDW
R/W-0
ACCSAT
R/C-0
IPL3(2)
R/W-0
PSV
R/W-0
RND
R/W-0
IF
bit 0
-n = Value at POR
1 = Bit is set
U = Unimplemented bit, read as 0
Unimplemented: Read as 0
US: DSP Multiply Unsigned/Signed Control bit
1 = DSP engine multiplies are unsigned
0 = DSP engine multiplies are signed
EDT: Early DO Loop Termination Control bit(1)
1 = Terminate executing DO loop at end of current loop iteration
0 = No effect
DL<2:0>: DO Loop Nesting Level Status bits
111 = 7 DO loops active
DS70283J-page 26
3.5.1
MULTIPLIER
3.5.2
DIVIDER
3.6
DSP Engine
TABLE 3-1:
Instruction
CLR
ED
EDAC
MAC
MAC
MOVSAC
MPY
MPY
MPY.N
MSC
DSP INSTRUCTIONS
SUMMARY
Algebraic
Operation
ACC Write
Back
A=0
Yes
No
No
Yes
No
Yes
No
No
No
Yes
A = (x - y)2
A = A + (x y)2
A = A + (x * y)
A = A + x2
No change in A
A=x y
A = x2
A=xy
A=Axy
DS70283J-page 27
40
S
a
40 Round t 16
u
Logic r
a
t
e
40-bit Accumulator A
40-bit Accumulator B
Carry/Borrow Out
Saturate
Carry/Borrow In
Adder
Negate
40
40
40
16
X Data Bus
Barrel
Shifter
40
Y Data Bus
Sign-Extend
32
16
Zero Backfill
32
33
17-bit
Multiplier/Scaler
16
16
To/From W Array
DS70283J-page 28
MULTIPLIER
3.6.2
3.6.2.1
DS70283J-page 29
3.6.3
DS70283J-page 30
3.6.3.1
Round Logic
3.6.4
BARREL SHIFTER
For input data greater than 0x007FFF, data written to memory is forced to the maximum positive
1.15 value, 0x7FFF.
For input data less than 0xFF8000, data written to
memory is forced to the maximum negative 1.15
value, 0x8000.
DS70283J-page 31
DS70283J-page 32
Note:
FIGURE 4-1:
dsPIC33FJ32MC202/204
GOTO Instruction
Reset Address
Interrupt Vector Table
Reserved
Alternate Vector Table
User Memory Space
4.1
User Program
Flash Memory
(11264 instructions)
dsPIC33FJ16MC304
GOTO Instruction
Reset Address
Interrupt Vector Table
Reserved
Alternate Vector Table
0x000000
0x000002
0x000004
0x0000FE
0x000100
0x000104
0x0001FE
0x000200
0x0057FE
0x005800
Unimplemented
(Read 0s)
4.0
User Program
Flash Memory
(5632 instructions)
0xF7FFFE
0xF80000
0xF80017
0xF80018
0xFEFFFE
0xFF0000
0xFFFFFE
Reserved
Reserved
0x002BFE
0x002C00
0x7FFFFE
0x800000
Reserved
DEVID (2)
0x0000FE
0x000100
0x000104
0x0001FE
0x000200
Unimplemented
(Read 0s)
0x7FFFFE
0x800000
Device Configuration
Registers
0x000000
0x000002
0x000004
Device Configuration
Registers
0xF7FFFE
0xF80000
0xF80017
0xF80018
Reserved
DEVID (2)
0xFEFFFE
0xFF0000
0xFFFFFE
DS70283J-page 33
PROGRAM MEMORY
ORGANIZATION
4.1.2
FIGURE 4-2:
msw
Address
16
PC Address
(lsw Address)
0
0x000000
0x000002
0x000004
0x000006
00000000
00000000
00000000
00000000
Program Memory
Phantom Byte
(read as 0)
DS70283J-page 34
0x000001
0x000003
0x000005
0x000007
Instruction Width
4.2.1
4.2.3
4.2.2
SFR SPACE
Note:
4.2.4
DS70283J-page 35
2 Kbyte
SFR Space
2 Kbyte
SRAM Space
LSb
0x0000
0x0001
SFR Space
0x07FF
0x0801
0x0BFF
0x0001
0x07FE
0x0800
X Data RAM (X)
Y Data RAM (Y)
0x0BFE
0x0C00
0x0FFF
0x1001
0x0FFE
0x1000
0x1FFF
0x2001
0x1FFE
0x8001
0x8000
8 Kbyte
Near Data
Space
0x2000
X Data
Unimplemented (X)
Optionally
Mapped
into Program
Memory
0xFFFF
DS70283J-page 36
LSB
Address
16 bits
0xFFFE
DS70283J-page 37
SFR Name
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
All
Resets
WREG0
0000
Working Register 0
0000
WREG1
0002
Working Register 1
0000
WREG2
0004
Working Register 2
0000
WREG3
0006
Working Register 3
0000
WREG4
0008
Working Register 4
0000
WREG5
000A
Working Register 5
0000
WREG6
000C
Working Register 6
0000
WREG7
000E
Working Register 7
0000
WREG8
0010
Working Register 8
0000
WREG9
0012
Working Register 9
0000
WREG10
0014
Working Register 10
0000
WREG11
0016
Working Register 11
0000
WREG12
0018
Working Register 12
0000
WREG13
001A
Working Register 13
0000
WREG14
001C
Working Register 14
0000
WREG15
001E
Working Register 15
0800
SPLIM
0020
xxxx
ACCAL
0022
0000
ACCAH
0024
0000
ACCAU
0026
0000
ACCBL
0028
0000
ACCBH
002A
0000
ACCBU
002C
0000
PCL
002E
PCH
0030
0000
TBLPAG
0032
0000
PSVPAG
0034
0000
RCOUNT
0036
xxxx
DCOUNT
0038
DCOUNT<15:0>
xxxx
0000
DOSTARTL
003A
DOSTARTH
003C
DOENDL
003E
DOENDH
0040
SR
0042
OA
OB
SA
SB
OAB
SAB
DA
DC
IPL2
IPL1
IPL0
RA
OV
CORCON
0044
US
EDT
SATA
SATB
SATDW
ACCSAT
IPL3
PSV
RND
IF
MODCON
0046
XMODEN
YMODEN
Legend:
DOSTARTL<15:1>
BWM<3:0>
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
xxxx
xxxx
00xx
DOENDL<15:1>
DL<2:0>
0
DOSTARTH<5:0>
DOENDH
YWM<3:0>
00xx
XWM<3:0>
0000
0020
0000
DS70283J-page 38
TABLE 4-1:
SFR Name
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
All
Resets
XMODSRT
0048
XS<15:1>
xxxx
XMODEND
004A
XE<15:1>
xxxx
YMODSRT
004C
YS<15:1>
xxxx
YMODEND
004E
YE<15:1>
xxxx
XBREV
0050
BREN
DISICNT
0052
Legend:
xxxx
xxxx
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-2:
SFR
Name
SFR
Addr
Bit 15
CNEN1
0060
CNEN2
0062
CNPU1
0068
CNPU2
006A
Legend:
XB<14:0>
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
CN15IE
CN14IE
CN13IE
CN30IE
CN29IE
CN12IE
CN11IE
CN7IE
CN27IE
CN24IE
CN23IE
CN7PUE
CN6PUE
CN30PUE CN29PUE
CN27PUE
Bit 8
Bit 7
Bit 6
Bit 0
All
Resets
CN1IE
CN0IE
0000
CN16IE
0000
CN2PUE
CN1PUE
CN0PUE
0000
CN16PUE
0000
Bit 2
Bit 1
Bit 0
All
Resets
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
CN6IE
CN5IE
CN4IE
CN3IE
CN2IE
CN22IE
CN21IE
CN5PUE
CN4PUE
CN3PUE
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-3:
SFR
Name
SFR
Addr
Bit 15
CNEN1
0060
CN15IE
CN14IE
CN13IE
CN12IE
CN11IE
CN10IE
CN9IE
CN8IE
CN7IE
CN6IE
CN5IE
CN4IE
CN3IE
CN2IE
CN1IE
CN0IE
0000
0062
CN30IE
CN29IE
CN28IE
CN27IE
CN26IE
CN25IE
CN24IE
CN23IE
CN22IE
CN21IE
CN20IE
CN19IE
CN18IE
CN17IE
CN16IE
0000
CN8PUE
CN7PUE
CN6PUE
CN5PUE
CN4PUE
CN3PUE
CN2PUE
CN1PUE
CN0PUE
0000
CN30PUE CN29PUE CN28PUE CN27PUE CN26PUE CN25PUE CN24PUE CN23PUE CN22PUE CN21PUE CN20PUE CN19PUE CN18PUE CN17PUE CN16PUE
0000
CNEN2
CNPU1
0068
CNPU2
006A
Legend:
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
Bit 6
Bit 5
Bit 4
Bit 3
DS70283J-page 39
TABLE 4-1:
SFR
Name
SFR
Addr
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
Bit 6
Bit 5
Bit 3
Bit 2
Bit 1
Bit 0
All
Resets
0000
INTCON1
0080
OVATE
OVBTE
COVTE
OSCFAIL
INTCON2
0082
ALTIVT
DISI
INT2EP
INT1EP
INT0EP
0000
IFS0
0084
AD1IF
U1TXIF
U1RXIF
SPI1IF
SPI1EIF
T3IF
T2IF
OC2IF
IC2IF
T1IF
OC1IF
IC1IF
INT0IF
0000
SFTACERR DIV0ERR
Bit 4
IFS1
0086
INT2IF
IC8IF
IC7IF
INT1IF
CNIF
MI2C1IF
SI2C1IF
0000
IFS3
008A
FLTA1IF
QEIIF
PWM1IF
0000
IFS4
008C
FLTA2IF PWM2IF
U1EIF
0000
IEC0
0094
AD1IE
U1TXIE
U1RXIE
SPI1IE
SPI1EIE
T3IE
T2IE
OC2IE
IC2IE
T1IE
OC1IE
IC1IE
INT0IE
IEC1
0096
INT2IE
IC8IE
IC7IE
INT1IE
CNIE
IEC3
009A
FLTA1IE
QEIIE
PWM1IE
0000
IEC4
009C
FLTA2IE PWM2IE
U1EIE
0000
IPC0
00A4
T1IP<2:0>
OC1IP<2:0>
IC1IP<2:0>
IPC1
00A6
T2IP<2:0>
OC2IP<2:0>
IC2IP<2:0>
4440
IPC2
00A8
IPC3
00AA
IPC4
00AC
IPC5
00AE
IPC7
00B2
IPC14
00C0
IPC15
00C2
IPC16
00C4
IPC18
00C8
INTTREG
00E0
Legend:
U1RXIP<2:0>
4444
SPI1EIP<2:0>
T3IP<2:0>
4444
AD1IP<2:0>
U1TXIP<2:0>
0044
CNIP<2:0>
MI2C1IP<2:0>
SI2C1IP<2:0>
4044
IC8IP<2:0>
INT1IP<2:0>
FLTA1IP<2:0>
SPI1IP<2:0>
INT0IP<2:0>
0000
0000
MI2C1IE SI2C1IE
IC7IP<2:0>
QEIIP<2:0>
INT2IP<2:0>
PWM1IP<2:0>
0040
0440
4000
U1EIP<2:0>
0040
PWM2IP<2:0>
0440
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
ILR<3:0>
FLTA2IP<2:0>
4404
VECNUM<6:0>
0000
DS70283J-page 40
TABLE 4-4:
SFR
Name
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
All
Resets
TMR1
0100
Timer1 Register
PR1
0102
Period Register 1
T1CON
0104
TMR2
0106
Timer2 Register
0000
TMR3HLD
0108
xxxx
TMR3
010A
Timer3 Register
0000
PR2
010C
Period Register 2
FFFF
PR3
010E
Period Register 3
T2CON
0110
TON
TSIDL
TGATE
TCKPS<1:0>
T32
TCS
0000
T3CON
0112
TON
TSIDL
TGATE
TCKPS<1:0>
TCS
0000
Legend:
TSIDL
FFFF
TGATE
SFR
Addr
IC1BUF
0140
IC1CON
0142
IC2BUF
0144
IC2CON
0146
IC7BUF
0158
IC7CON
015A
IC8BUF
015C
IC8CON
015E
TSYNC
TCS
0000
FFFF
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
ICSIDL
Bit 8
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
ICI<1:0>
ICOV
ICBNE
ICM<2:0>
ICI<1:0>
ICOV
ICBNE
ICM<2:0>
ICI<1:0>
ICOV
ICBNE
ICM<2:0>
ICI<1:0>
ICOV
ICBNE
ICM<2:0>
Bit 0
xxxx
ICTMR
0000
ICSIDL
xxxx
ICTMR
0000
ICSIDL
xxxx
ICTMR
0000
ICSIDL
All
Resets
xxxx
ICTMR
0000
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-7:
SFR
Addr
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
Bit 6
DS70283J-page 41
OC1RS
0180
OC1R
0182
OC1CON
0184
OC2RS
0186
OC2R
0188
OC2CON
018A
Legend:
TCKPS<1:0>
SFR Name
SFR Name
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-6:
Legend:
TON
0000
OCSIDL
OCSIDL
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
All
Resets
xxxx
xxxx
OCFLT
OCTSEL
OCM<2:0>
0000
xxxx
xxxx
OCFLT
OCTSEL
OCM<2:0>
0000
TABLE 4-5:
SFR Name
Addr.
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
PTSIDL
Bit 8
Bit 7
Bit 6
Bit 5
Bit 4
PTOPS<3:0>
Bit 3
Bit 2
PTCKPS<1:0>
Bit 1
Bit 0
PTMOD<1:0>
Reset State
P1TCON
01C0
PTEN
P1TMR
01C2
PTDIR
P1TPER
01C4
P1SECMP
01C6 SEVTDIR
PWM1CON1 01C8
PWM1CON2 01CA
P1DTCON1
01CC
DTBPS<1:0>
P1DTCON2
01CE
P1FLTACON 01D0
P1OVDCON 01D4
PMOD3
PMOD2
PMOD1
SEVOPS<3:0>
DTB<5:0>
PEN3H
PEN2H
PEN1H
PEN3L
PEN2L
PEN1L
IUE
OSYNC
UDIS
DTAPS<1:0>
DTA<5:0>
DTS3A
DTS3I
DTS2A
DTS2I
DTS1A
DTS1I
FLTAM
FAEN3
FAEN2
FAEN1
POUT3H POUT3L POUT2H POUT2L POUT1H POUT1L 1111 1111 0000 0000
P1DC1
01D6
P1DC2
01D8
P1DC3
01DA
Legend:
TABLE 4-9:
SFR Name
Addr.
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
05C0
PTEN
PTSIDL
P2TMR
05C2
PTDIR
P2TPER
05C4
P2SECMP
05C6
SEVTDIR
P2TCON
Bit 6
Bit 5
Bit 4
PTOPS<3:0>
Bit 3
Bit 2
PTCKPS<1:0>
Bit 1
Bit 0
PTMOD<1:0>
PWM2CON1 05C8
PWM2CON2 05CA
P2DTCON1
05CC
DTBPS<1:0>
P2DTCON2
05CE
P2FLTACON
05D0
P2OVDCON
05D4
P2DC1
05D6
Legend:
Bit 7
PMOD1
SEVOPS<3:0>
DTB<5:0>
PEN1H
PEN1L
IUE
OSYNC
UDIS
DTS1A
DTS1I
FAEN1
DTAPS<1:0>
Reset State
0000 0000 0000 0000
DTA<5:0>
FAOV1H FAOV1L
FLTAM
POVD1H POVD1L
DS70283J-page 42
TABLE 4-8:
SFR
Name
Addr.
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
QEI1CON
01E0
CNTERR
QEISIDL
INDEX
UPDN
DFLT1CON
01E2
POS1CNT
01E4
Position Counter<15:0>
MAX1CNT
01E6
Maximum Count<15:0>
Legend:
Bit 9
Bit 8
QEIM<2:0>
IMV<1:0>
CEID
Bit 7
Bit 6
Bit 5
SWPAB
PCDOUT
QEOUT
Bit 4
TQGATE
Bit 3
TQCKPS<1:0>
QECK<2:0>
Bit 2
Bit 1
Bit 0
Reset State
TABLE 4-11:
SFR
Addr
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
I2C1RCV
0200
Receive Register
0000
I2C1TRN
0202
Transmit Register
00FF
I2C1BRG
0204
I2C1CON
0206
I2CEN
I2CSIDL
SCLREL
IPMIEN
A10M
DISSLW
SMEN
GCEN
STREN
ACKDT
ACKEN
RCEN
PEN
RSEN
SEN
1000
I2C1STAT
0208
ACKSTAT
TRSTAT
BCL
GCSTAT
ADD10
IWCOL
I2COV
D_A
R_W
RBF
TBF
0000
I2C1ADD
020A
Address Register
0000
I2C1MSK
020C
0000
SFR Name
Legend:
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0000
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-12:
SFR Name
Bit 7
SFR
Addr
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
Bit 6
WAKE
LPBACK
Bit 5
Bit 4
Bit 3
ABAUD
URXINV
BRGH
ADDEN
RIDLE
PERR
Bit 2
Bit 1
All
Resets
STSEL
0000
URXDA
0110
U1MODE
0220
UARTEN
USIDL
IREN
RTSMD
UEN1
UEN0
U1STA
0222
UTXISEL1
UTXINV
UTXISEL0
UTXBRK
UTXEN
UTXBF
TRMT
U1TXREG
0224
xxxx
U1RXREG
0226
0000
U1BRG
0228
Legend:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-13:
SFR
Name
URXISEL<1:0>
PDSEL<1:0>
Bit 0
FERR
OERR
0000
DS70283J-page 43
SFR
Addr
Bit 15
Bit 14
Bit 13
SPI1STAT
0240
SPIEN
SPISIDL
SPI1CON1
0242
DISSCK
DISSDO
MODE16
SMP
SPI1CON2
0244
FRMEN
SPIFSD
FRMPOL
SPI1BUF
0248
Legend:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
Bit 6
Bit 5
Bit 4
CKE
SSEN
SPIROV
CKP
MSTEN
Bit 3
Bit 2
Bit 1
Bit 0
All
Resets
SPITBF
SPIRBF
0000
SPRE<2:0>
PPRE<1:0>
FRMDLY
0000
0000
0000
TABLE 4-10:
Addr
ADC1BUF0
0300
xxxx
ADC1BUF1
0302
xxxx
ADC1BUF2
0304
xxxx
ADC1BUF3
0306
xxxx
ADC1BUF4
0308
xxxx
ADC1BUF5
030A
xxxx
ADC1BUF6
030C
xxxx
ADC1BUF7
030E
xxxx
ADC1BUF8
0310
xxxx
ADC1BUF9
0312
xxxx
ADC1BUFA
0314
xxxx
ADC1BUFB
0316
xxxx
ADC1BUFC
0318
xxxx
ADC1BUFD
031A
xxxx
ADC1BUFE
031C
xxxx
ADC1BUFF
031E
AD1CON1
0320
AD1CON2
0322
AD1CON3
0324
AD1CHS123
AD1CHS0
ADON
Bit 14
Bit 13
ADSIDL
VCFG<2:0>
Bit 12
Bit 11
Bit 10
Bit 9
AD12B
FORM<1:0>
CSCNA
CHPS<1:0>
ADRC
0326
0328
CH0NB
AD1PCFGL
032C
AD1CSSL
0330
Legend:
Bit 8
Bit 7
Bit 6
Bit 5
Bit 2
SIMSAM
ASAM
SMPI<3:0>
SAMC<4:0>
Bit 3
Bit 1
Bit 0
xxxx
SSRC<2:0>
BUFS
Bit 4
All
Reset
s
File Name
SAMP
DONE
BUFM
ALTS
ADCS<7:0>
CH123NB<1:0>
CH123SB
PCFG5
PCFG4
PCFG3
PCFG2
PCFG1
PCFG0
0000
CSS5
CSS4
CSS3
CSS2
CSS1
CSS0
0000
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
0000
0000
CH0NA
CH0SB<4:0>
0000
CH123NA<1:0>
CH123SA
CH0SA<4:0>
0000
0000
DS70283J-page 44
TABLE 4-14:
Addr
ADC1BUF0
0300
xxxx
ADC1BUF1
0302
xxxx
ADC1BUF2
0304
xxxx
ADC1BUF3
0306
xxxx
ADC1BUF4
0308
xxxx
ADC1BUF5
030A
xxxx
ADC1BUF6
030C
xxxx
ADC1BUF7
030E
xxxx
ADC1BUF8
0310
xxxx
ADC1BUF9
0312
xxxx
ADC1BUFA
0314
xxxx
ADC1BUFB
0316
xxxx
ADC1BUFC
0318
xxxx
ADC1BUFD
031A
xxxx
ADC1BUFE
031C
xxxx
ADC1BUFF
031E
AD1CON1
0320
AD1CON2
0322
AD1CON3
0324
ADRC
AD1CHS123
0326
AD1CHS0
0328
CH0NB
AD1PCFGL
032C
0330
AD1CSSL
Legend:
Bit 15
ADON
Bit 14
Bit 13
ADSIDL
VCFG<2:0>
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
AD12B
FORM<1:0>
CSCNA
CHPS<1:0>
Bit 7
Bit 6
Bit 5
Bit 3
Bit 2
Bit 1
Bit 0
xxxx
SSRC<2:0>
BUFS
Bit 4
All
Resets
File Name
SIMSAM
ASAM
SMPI<3:0>
SAMC<4:0>
SAMP
DONE
0000
BUFM
ALTS
0000
CH123SA
0000
ADCS<7:0>
CH123NB<1:0>
CH123SB
CH0NA
PCFG8
PCFG7
PCFG6
CSS8
CSS7
CSS6
CH0SB<4:0>
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
0000
CH123NA<1:0>
PCFG5
PCFG4
PCFG3
PCFG2
PCFG1
PCFG0
0000
CSS5
CSS4
CSS3
CSS2
CSS1
CSS0
0000
CH0SA<4:0>
0000
DS70283J-page 45
TABLE 4-15:
File
Name
Addr
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 2
Bit 1
Bit 0
All
Resets
1F00
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
INT2R<4:0>
001F
RPINR0
0680
RPINR1
0682
RPINR3
0686
T3CKR<4:0>
T2CKR<4:0>
1F1F
RPINR7
068E
IC2R<4:0>
IC1R<4:0>
1F1F
RPINR10
0694
IC7R<4:0>
1F1F
RPINR11
0696
OCFAR<4:0>
001F
RPINR12
0698
FLTA1R<4:0>
001F
RPINR13
069A
FLTA2R<4:0>
001F
RPINR14
069C
QEA1R<4:0>
1F1F
RPINR15
069E
INDX1R<4:0>
001F
RPINR18
06A4
U1CTSR<4:0>
U1RXR<4:0>
1F1F
RPINR20
06A8
SCK1R<4:0>
SDI1R<4:0>
1F1F
RPINR21
06AA
SS1R<4:0>
001F
Legend:
IC8R<4:0>
QEB1R<4:0>
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-17:
File
Name
INT1R<4:0>
Addr
Bit 15
Bit 14
Bit 13
RPOR0
06C0
RPOR1
06C2
RPOR2
06C4
RPOR3
06C6
RPOR4
06C8
RPOR5
Bit 11
Bit 10
Bit 9
Bit 8
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
All
Resets
Bit 7
Bit 6
Bit 5
RP1R<4:0>
RP0R<4:0>
0000
RP3R<4:0>
RP2R<4:0>
0000
RP5R<4:0>
RP4R<4:0>
0000
RP7R<4:0>
RP6R<4:0>
0000
RP9R<4:0>
RP8R<4:0>
0000
06CA
RP11R<4:0>
RP10R<4:0>
0000
RPOR6
06CC
RP13R<4:0>
RP12R<4:0>
0000
RPOR7
06CE
RP15R<4:0>
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
RP14R<4:0>
0000
Legend:
Bit 12
DS70283J-page 46
TABLE 4-16:
File
Name
PERIPHERAL PIN SELECT OUTPUT REGISTER MAP FOR dsPIC33FJ32MC204 AND dsPIC33FJ16MC304
Addr
Bit 15
Bit 14
Bit 13
RPOR0
06C0
RPOR1
06C2
RPOR2
06C4
RPOR3
06C6
RPOR4
06C8
RPOR5
Bit 7
Bit 6
Bit 5
RP1R<4:0>
RP0R<4:0>
0000
RP3R<4:0>
RP2R<4:0>
0000
RP5R<4:0>
RP4R<4:0>
0000
RP7R<4:0>
RP6R<4:0>
0000
RP9R<4:0>
RP8R<4:0>
0000
06CA
RP11R<4:0>
RP10R<4:0>
0000
RPOR6
06CC
RP13R<4:0>
RP12R<4:0>
0000
RPOR7
06CE
RP15R<4:0>
RP14R<4:0>
0000
RPOR8
06D0
RP17R<4:0>
RP16R<4:0>
0000
RPOR9
06D2
RP19R<4:0>
RP18R<4:0>
0000
RPOR10
06D4
RP21R<4:0>
RP20R<4:0>
0000
RPOR11
06D6
RP23R<4:0>
RP22R<4:0>
0000
RPOR12
06D8
RP25R<4:0>
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
RP24R<4:0>
0000
Legend:
TABLE 4-19:
File
Name
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
All Resets
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
All Resets
TRISA
02C0
TRISA4
TRISA3
TRISA2
TRISA1
TRISA0
001F
PORTA
02C2
RA4
RA3
RA2
RA1
RA0
xxxx
LATA
02C4
LATA4
LATA3
LATA2
LATA1
LATA0
xxxx
ODCA
02C6
ODCA4
ODCA3
ODCA2
ODCA1
ODCA0
0000
Legend:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-20:
File
Name
DS70283J-page 47
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
All Resets
TRISA
02C0
TRISA10
TRISA9
TRISA8
TRISA7
TRISA4
TRISA3
TRISA2
TRISA1
TRISA0
079F
PORTA
02C2
RA10
RA9
RA8
RA7
RA4
RA3
RA2
RA1
RA0
xxxx
LATA
02C4
LAT10
LAT8
LAT8
LAT7
LATA4
LATA3
LATA2
LATA1
LATA0
xxxx
ODCA
02C6
ODCA10
ODCA9
ODCA8
ODCA7
ODCA4
ODCA3
ODCA2
ODCA1
ODCA0
0000
Legend:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-18:
File
Name
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
All Resets
TRISB
02C8
TRISB15
TRISB14
TRISB13
TRISB12
TRISB11
TRISB10
TRISB9
TRISB8
TRISB7
TRISB6
TRISB5
TRISB4
TRISB6
TRISB5
TRISB1
TRISB0
FFFF
PORTB
02CA
RB15
RB14
RB13
RB12
RB11
RB10
RB9
RB8
RB7
RB6
RB5
RB4
RB6
RB5
RB1
RB0
xxxx
LATB
02CC
LATB15
LATB14
LATB13
LATB12
LATB11
LATB10
LATB9
LATB8
LATB7
LATB6
LATB5
LATB4
LATB6
LATB5
LATB1
LATB0
xxxx
ODCB
02CE
ODCB15
ODCB14
ODCB13
ODCB12
ODCB11
ODCB10
ODCB9
ODCB8
ODCB7
ODCB6
ODCB5
ODCB4
ODCB6
ODCB5
ODCB1
ODCB0
0000
Legend:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal for 100-pin devices.
TABLE 4-22:
File Name
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
All Resets
TRISC
02D0
TRISC9
TRISC8
TRISC7
TRISC6
TRISC5
TRISC4
TRISC6
TRISC5
TRISC1
TRISC0
03FF
PORTC
02D2
RC9
RC8
RC7
RC6
RC5
RC4
RC6
RC5
RC1
RC0
xxxx
LATC
02D4
LATC9
LATC8
LATC7
LATC6
LATC5
LATC4
LATC6
LATC5
LATC1
LATC0
xxxx
ODCC
02D6
ODCC9
ODCC8
ODCC7
ODCC6
ODCC5
ODCC4
ODCC6
ODCC5
ODCC1
ODCC0
0000
Legend:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
TABLE 4-23:
File Name
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
All
Resets
RCON
0740
TRAPR
IOPUWR
CM
VREGS
EXTR
SWR
SWDTEN
WDTO
SLEEP
IDLE
BOR
POR
xxxx(1)
OSCCON
0742
CF
LPOSCEN
OSWEN
0300(2)
COSC<2:0>
DOZE<2:0>
DOZEN
NOSC<2:0>
CLKLOCK IOLOCK
LOCK
FRCDIV<2:0>
PLLPOST<1:0>
CLKDIV
0744
ROI
PLLFBD
0746
OSCTUN
0748
Legend:
Note 1:
2:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
RCON register Reset values dependent on type of Reset.
OSCCON register Reset values dependent on the FOSC Configuration bits and by type of Reset.
PLLPRE<4:0>
PLLDIV<8:0>
3040
0030
TUN<5:0>
0000
DS70283J-page 48
TABLE 4-21:
File Name
Addr
Bit 15
Bit 14
Bit 13
Bit 12
Bit 11
Bit 10
Bit 9
Bit 8
Bit 7
Bit 6
Bit 5
ERASE
Bit 4
Bit 3
NVMCON
0760
WR
WREN
WRERR
NVMKEY
0766
Legend:
Note 1:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
Reset value shown is for POR only. Value on other Reset states is dependent on the state of memory write or erase operations at the time of Reset.
Bit 2
Bit 1
Bit 0
All
Resets
0000(1)
NVMOP<3:0>
NVMKEY<7:0>
0000
TABLE 4-25:
File Name
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
PMD1
0770
T3MD
T2MD
T1MD
QEIMD
PWM1MD
I2C1MD
U1MD
SPI1MD
AD1MD
0000
PMD2
0772
IC8MD
IC7MD
IC2MD
IC1MD
OC2MD
OC1MD
0000
PMD3
0774
PWM2MD
0000
Legend:
x = unknown value on Reset, = unimplemented, read as 0. Reset values are shown in hexadecimal.
Bit 0
All
Resets
DS70283J-page 49
TABLE 4-24:
SOFTWARE STACK
4.2.7
FIGURE 4-4:
0x0000
15
PC<15:0>
000000000 PC<22:16>
<Free Word>
DS70283J-page 50
4.3
4.3.1
4.3.2
MCU INSTRUCTIONS
Register Direct
Register Indirect
Register Indirect Post-Modified
Register Indirect Pre-Modified
5-bit or 10-bit Literal
Note:
Addressing Mode
File Register Direct
Description
The address of the file register is specified explicitly.
Register Direct
Register Indirect
Register Indirect with Register Offset The sum of Wn and Wb forms the EA.
(Register Indexed)
Register Indirect with Literal Offset
4.3.3
Register Direct
Register Indirect
Register Indirect Post-modified
Register Indirect Pre-modified
Register Indirect with Register Offset (Indexed)
Register Indirect with Literal Offset
8-bit Literal
16-bit Literal
Note:
4.3.4
MAC INSTRUCTIONS
Register Indirect
Register Indirect Post-Modified by 2
Register Indirect Post-Modified by 4
Register Indirect Post-Modified by 6
Register Indirect with Register Offset (Indexed)
4.3.5
OTHER INSTRUCTIONS
DS70283J-page 51
Modulo Addressing
Note:
4.4.1
FIGURE 4-5:
4.4.2
W ADDRESS REGISTER
SELECTION
Byte
Address
0x1100
0x1163
MOV
MOV
MOV
MOV
MOV
MOV
#0x1100, W0
W0, XMODSRT
#0x1163, W0
W0, MODEND
#0x8001, W0
W0, MODCON
MOV
#0x0000, W0
MOV
#0x1110, W1
;point W1 to buffer
DO
AGAIN, #0x31
MOV
W0, [W1++]
AGAIN: INC W0, W0
DS70283J-page 52
MODULO ADDRESSING
APPLICABILITY
4.5
Bit-Reversed Addressing
4.5.1
BIT-REVERSED ADDRESSING
IMPLEMENTATION
DS70283J-page 53
b7 b6 b5 b4
b3 b2
b1
0
Bit Locations Swapped Left-to-Right
Around Center of Binary Value
Bit-Reversed Address
Pivot Point
XB = 0x0008 for a 16-Word Bit-Reversed Buffer
TABLE 4-27:
A3
A2
A1
A0
Bit-Reversed Address
Decimal
A3
A2
A1
A0
Decimal
12
10
14
10
11
13
12
13
11
14
15
15
DS70283J-page 54
4.6.1
The
dsPIC33FJ32MC202/204
and
dsPIC33FJ16MC304 architecture uses a 24-bit-wide
program space and a 16-bit-wide data space. The
architecture is also a modified Harvard scheme,
meaning that data can also be present in the program
space. To use this data successfully, it must be
accessed in a way that preserves the alignment of
information in both spaces.
Aside
from
normal
execution,
the
dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304
architecture provides two methods by which program
space can be accessed during operation:
TABLE 4-28:
Access Type
Instruction Access
(Code Execution)
User
TBLRD/TBLWT
(Byte/Word Read/Write)
User
<22:16>
<15>
0xx
xxxx
xxxx
TBLPAG<7:0>
0xxx xxxx
User
<14:1>
PC<22:1>
Configuration
Note 1:
<0>
0
xxxx
xxxx xxx0
Data EA<15:0>
xxxx xxxx xxxx xxxx
TBLPAG<7:0>
Data EA<15:0>
1xxx xxxx
PSVPAG<7:0>
xxxx xxxx
Data EA<14:0>(1)
xxx xxxx xxxx xxxx
Data EA<15> is always 1 in this case, but is not used in calculating the program space address. Bit 15 of
the address is PSVPAG<0>.
DS70283J-page 55
Program Counter(1)
Program Counter
23 bits
EA
Table Operations(2)
1/0
1/0
TBLPAG
8 bits
16 bits
24 bits
Select
Program Space Visibility(1)
(Remapping)
EA
PSVPAG
8 bits
15 bits
23 bits
User/Configuration
Space Select
Byte Select
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 configuration memory space.
DS70283J-page 56
FIGURE 4-8:
TBLPAG
02
23
15
0x000000
23
16
00000000
00000000
0x020000
00000000
0x030000
00000000
Phantom Byte
TBLRDH.B (Wn<0> = 0)
TBLRDL.B (Wn<0> = 1)
TBLRDL.B (Wn<0> = 0)
TBLRDL.W
0x800000
DS70283J-page 57
FIGURE 4-9:
Program Space
PSVPAG
02
23
15
Data Space
0
0x000000
0x0000
Data EA<14:0>
0x010000
0x018000
The data in the page
designated by
PSVPAG is mapped
into the upper half of
the data memory
space...
0x8000
PSV Area
0x800000
DS70283J-page 58
5.1
FIGURE 5-1:
Program Counter
Working Reg EA
Using
Table Instruction
1/0
TBLPAG Reg
8 bits
User/Configuration
Space Select
16 bits
24-bit EA
Byte
Select
DS70283J-page 59
RTSP Operation
5.3
Programming Operations
EQUATION 5-1:
EQUATION 5-2:
11064 Cycles
T RW = ------------------------------------------------------------------------------------------------ = 1.435ms
7.37 MHz ( 1 + 0.05 ) ( 1 0.00375 )
EQUATION 5-3:
11064 Cycles
T RW = ------------------------------------------------------------------------------------------------ = 1.586ms
7.37 MHz ( 1 0.05 ) ( 1 0.00375 )
Setting the WR bit (NVMCON<15>) starts the operation, and the WR bit is automatically cleared when the
operation is finished.
5.4
Control Registers
PROGRAMMING TIME
T
--------------------------------------------------------------------------------------------------------------------------7.37 MHz ( FRC Accuracy )% ( FRC Tuning )%
DS70283J-page 60
R/SO-0(1)
R/W-0(1)
R/W-0(1)
U-0
U-0
U-0
U-0
U-0
WR
WREN
WRERR
bit 15
bit 8
U-0
R/W-0(1)
U-0
U-0
ERASE
R/W-0(1)
R/W-0(1)
R/W-0(1)
R/W-0(1)
NVMOP<3:0>(2)
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
bit 13
bit 12-7
Unimplemented: Read as 0
bit 6
bit 5-4
Unimplemented: Read as 0
bit 3-0
Note 1:
2:
DS70283J-page 61
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
W-0
W-0
W-0
W-0
W-0
W-0
W-0
W-0
NVMKEY<7:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-8
Unimplemented: Read as 0
bit 7-0
DS70283J-page 62
x = Bit is unknown
4.
5.
EXAMPLE 5-1:
6.
#0x55, W0
W0, NVMKEY
#0xAA, W1
W1, NVMKEY
NVMCON, #WR
;
; Initialize NVMCON
;
;
;
;
;
;
;
;
;
;
;
;
DS70283J-page 63
; 63rd_program_word
MOV
#LOW_WORD_31, W2
;
MOV
#HIGH_BYTE_31, W3
;
TBLWTL W2, [W0]
; Write PM low word into program latch
TBLWTH W3, [W0++]
; Write PM high byte into program latch
EXAMPLE 5-3:
DISI
#5
MOV
MOV
MOV
MOV
BSET
NOP
NOP
#0x55, W0
W0, NVMKEY
#0xAA, W1
W1, NVMKEY
NVMCON, #WR
DS70283J-page 64
RESETS
FIGURE 6-1:
Internal
Regulator
SYSRST
VDD
VDD Rise
Detect
POR
Trap Conflict
Illegal Opcode
Uninitialized W Register
Configuration Mismatch
DS70283J-page 65
REGISTER 6-1:
R/W-0
R/W-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
TRAPR
IOPUWR
CM
VREGS
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-1
R/W-1
EXTR
SWR
SWDTEN(2)
WDTO
SLEEP
IDLE
BOR
POR
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
bit 13-10
Unimplemented: Read as 0
bit 9
bit 8
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
Note 1:
2:
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.
If the FWDTEN Configuration bit is 1 (unprogrammed), the WDT is always enabled, regardless of the
SWDTEN bit setting.
DS70283J-page 66
bit 1
bit 0
Note 1:
2:
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.
If the FWDTEN Configuration bit is 1 (unprogrammed), the WDT is always enabled, regardless of the
SWDTEN bit setting.
DS70283J-page 67
System Reset
Cold Reset
Warm Reset
TABLE 6-1:
OSCILLATOR PARAMETERS
Oscillator
Start-up Delay
Oscillator Start-up
Timer
Total Delay
FRC, FRCDIV16,
FRCDIVN
TOSCD
TOSCD
FRCPLL
TOSCD
TLOCK
TOSCD + TLOCK
XT
TOSCD
TOST
TOSCD + TOST
HS
TOSCD
TOST
TOSCD + TOST
EC
XTPLL
TOSCD
TOST
TLOCK
HSPLL
TOSCD
TOST
TLOCK
Oscillator Mode
ECPLL
TLOCK
TLOCK
SOSC
TOSCD
TOST
TOSCD + TOST
TOSCD
TOSCD
LPRC
Note 1:
2:
3:
TOSCD = Oscillator Start-up Delay (1.1 s max for FRC, 70 s max for LPRC). Crystal Oscillator start-up
times vary with crystal characteristics, load capacitance, etc.
TOST = Oscillator Start-up Timer Delay (1024 oscillator clock period). For example, TOST = 102.4 s for a
10 MHz crystal and TOST = 32 ms for a 32 kHz crystal.
TLOCK = PLL lock time (1.5 ms nominal), if PLL is enabled.
DS70283J-page 68
VDD
TPOR
1
POR
TBOR
2
BOR
3
TPWRT
SYSRST
4
Oscillator Clock
TOSCD
TOST
TLOCK
6
TFSCM
FSCM
5
Reset
Device Status
Run
Time
Note 1:
POR: A POR circuit holds the device in Reset when the power supply is turned on. The POR circuit is active
until VDD crosses the VPOR threshold and the delay TPOR has elapsed.
2:
BOR: The on-chip voltage regulator has a BOR circuit that keeps the device in Reset until VDD crosses the
VBOR threshold and the delay TBOR has elapsed. The delay TBOR ensures the voltage regulator output
becomes stable.
3:
PWRT Timer: The programmable power-up timer continues to hold the processor in Reset for a specific
period of time (TPWRT) after a BOR. The delay TPWRT ensures that the system power supplies have stabilized
at the appropriate level for full-speed operation. After the delay TPWRT has elapsed, the SYSRST becomes
inactive, which in turn enables the selected oscillator to start generating clock cycles.
4:
Oscillator Delay: The total delay for the clock to be ready for various clock source selections are given in
Table 6-1. Refer to Section 8.0 Oscillator Configuration for more information.
5:
When the oscillator clock is ready, the processor begins execution from location 0x000000. The user
application programs a GOTO instruction at the reset address, which redirects program execution to the
appropriate start-up routine.
6:
The Fail-Safe Clock Monitor (FSCM), if enabled, begins to monitor the system clock when the system clock
is ready and the delay TFSCM elapsed.
DS70283J-page 69
OSCILLATOR DELAY
Symbol
Parameter
Value
VPOR
POR threshold
1.8V nominal
TPOR
30 s maximum
VBOR
BOR threshold
2.5V nominal
TBOR
100 s maximum
TPWRT
0-128 ms nominal
TFSCM
900 s maximum
Note:
6.2
DS70283J-page 70
6.2.1
BROWN-OUT SITUATIONS
VDD
VBOR
TBOR + TPWRT
SYSRST
VDD
VBOR
TBOR + TPWRT
SYSRST
VDD dips before PWRT expires
VDD
VBOR
TBOR + TPWRT
SYSRST
6.3
6.3.1
6.3.2
6.4
6.5
6.6
DS70283J-page 71
6.8.2
6.8
6.8.3
6.9
The user application can read the Reset Control register (RCON) after any device Reset to determine the
cause of the reset.
Note:
TABLE 6-3:
SECURITY RESET
6.8.1
UNINITIALIZED W REGISTER
RESET
Set by:
Cleared by:
TRAPR (RCON<15>)
POR,BOR
IOPWR (RCON<14>)
POR,BOR
CM (RCON<9>)
Configuration Mismatch
POR,BOR
EXTR (RCON<7>)
MCLR Reset
POR
SWR (RCON<6>)
RESET instruction
POR,BOR
WDTO (RCON<4>)
WDT time-out
PWRSAV instruction,
CLRWDT instruction, POR,BOR
SLEEP (RCON<3>)
POR,BOR
IDLE (RCON<2>)
POR,BOR
BOR (RCON<1>)
POR, BOR
POR (RCON<0>)
POR
Note:
DS70283J-page 72
INTERRUPT CONTROLLER
7.1
7.1.1
7.2
Reset Sequence
DS70283J-page 73
FIGURE 7-1:
Note 1:
DS70283J-page 74
0x000000
0x000002
0x000004
0x000014
0x00007C
0x00007E
0x000080
0x0000FC
0x0000FE
0x000100
0x000102
0x000114
0x0001FE
0x000200
INTERRUPT VECTORS
Vector
Number
Interrupt
Request (IRQ)
Number
IVT Address
AIVT Address
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
0x000014
0x000016
0x000018
0x00001A
0x00001C
0x00001E
0x000020
0x000022
0x000024
0x000026
0x000028
0x00002A
0x00002C
0x00002E
0x000030
0x000032
0x000034
0x000036
0x000038
0x00003A
0x00003C
0x00003E
0x000040
0x000042
0x000044
0x000046
0x000048
0x00004A
0x00004C
0x00004E
0x000050
0x000052
0x000054
0x000056
0x000058
0x00005A
0x00005C
0x00005E
0x000060
0x000062
0x000064
0x000066
0x000068
0x00006A
0x00006C
0x00006E
0x000114
0x000116
0x000118
0x00011A
0x00011C
0x00011E
0x000120
0x000122
0x000124
0x000126
0x000128
0x00012A
0x00012C
0x00012E
0x000130
0x000132
0x000134
0x000136
0x000138
0x00013A
0x00013C
0x00013E
0x000140
0x000142
0x000144
0x000146
0x000148
0x00014A
0x00014C
0x00014E
0x000150
0x000152
0x000154
0x000156
0x000158
0x00015A
0x00015C
0x00015E
0x000160
0x000162
0x000164
0x000166
0x000168
0x00016A
0x00016C
0x00016E
Interrupt Source
INT0 External Interrupt 0
IC1 Input Capture 1
OC1 Output Compare 1
T1 Timer1
Reserved
IC2 Input Capture 2
OC2 Output Compare 2
T2 Timer2
T3 Timer3
SPI1E SPI1 Error
SPI1 SPI1 Transfer Done
U1RX UART1 Receiver
U1TX UART1 Transmitter
ADC1 ADC1
Reserved
Reserved
SI2C1 I2C1 Slave Events
MI2C1 I2C1 Master Events
Reserved
Change Notification Interrupt
INT1 External Interrupt 1
Reserved
IC7 Input Capture 7
IC8 Input Capture 8
Reserved
Reserved
Reserved
Reserved
Reserved
INT2 External Interrupt 2
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
DS70283J-page 75
Vector
Number
Interrupt
Request (IRQ)
Number
IVT Address
AIVT Address
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
0x000070
0x000072
0x000074
0x000076
0x000078
0x00007A
0x00007C
0x00007E
0x000080
0x000082
0x000084
0x000086
0x000088
0x00008A
0x00008C
0x00008E
0x000090
0x000170
0x000172
0x000174
0x000176
0x000178
0x00017A
0x00017C
0x00017E
0x000180
0x000182
0x000184
0x000186
0x000188
0x00018A
0x00018C
0x00018E
0x000190
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
PWM1 PWM1 Period Match
QEI Position Counter Compare
Reserved
Reserved
Reserved
Reserved
71
63
0x000092
0x000192
72
73
74
75
76
77
78
79
80
81
82
64
65
66
67
68
69
70
71
72
73
74
0x000094
0x000096
0x000098
0x00009A
0x00009C
0x00009E
0x0000A0
0x0000A2
0x0000A4
0x0000A6
0x0000A8
0x000194
0x000196
0x000198
0x00019A
0x00019C
0x00019E
0x0001A0
0x0001A2
0x0001A4
0x0001A6
0x0001A8
Reserved
U1E UART1 Error
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
PWM2 PWM2 Period Match
83-125
75-117
TABLE 7-2:
Interrupt Source
TRAP VECTORS
Vector Number
IVT Address
AIVT Address
Trap Source
0x000004
0x000104
Reserved
0x000006
0x000106
Oscillator Failure
0x000008
0x000108
Address Error
0x00000A
0x00010A
Stack Error
0x00000C
0x00010C
Math Error
0x00000E
0x00010E
Reserved
0x000010
0x000110
Reserved
0x000012
0x000112
Reserved
DS70283J-page 76
INTCON1
INTCON2
IFSx
IECx
IPCx
INTTREG
7.3.1
7.3.2
IFSx
7.3.3
IECx
7.3.4
IPCx
7.3.5
INTTREG
7.3.6
STATUS/CONTROL REGISTERS
DS70283J-page 77
R-0
R-0
R/C-0
R/C-0
R-0
R/C-0
R -0
R/W-0
OA
OB
SA
SB
OAB
SAB
DA
DC
bit 15
bit 8
R/W-0(3)
R/W-0(3)
R/W-0(3)
R-0
R/W-0
R/W-0
R/W-0
R/W-0
IPL2(2)
IPL1(2)
IPL0(2)
RA
OV
bit 7
bit 0
Legend:
C = Clear only bit
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 7-5
Note 1:
2:
3:
For complete register details, see Register 3-1: SR: CPU STATUS Register.
The IPL<2:0> bits are concatenated with the IPL<3> bit (CORCON<3>) to form the CPU Interrupt Priority
Level. The value in parentheses indicates the IPL if IPL<3> = 1. User interrupts are disabled when
IPL<3> = 1.
The IPL<2:0> Status bits are read-only when NSTDIS (INTCON1<15>) = 1.
REGISTER 7-2:
U-0
bit 15
U-0
R/W-0
SATB
Legend:
R = Readable bit
0 = Bit is cleared
Note 1:
2:
U-0
R/W-0
US
R/W-0
EDT
R-0
R-0
DL<2:0>
R-0
bit 8
R/W-0
SATA
bit 7
bit 3
R/W-1
SATDW
R/W-0
ACCSAT
R/C-0
IPL3(2)
R/W-0
PSV
R/W-0
RND
R/W-0
IF
bit 0
-n = Value at POR
1 = Bit is set
U = Unimplemented bit, read as 0
DS70283J-page 78
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
NSTDIS
OVAERR
OVBERR
COVAERR
COVBERR
OVATE
OVBTE
COVTE
bit 15
bit 8
R/W-0
R/W-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
U-0
SFTACERR
DIV0ERR
MATHERR
ADDRERR
STKERR
OSCFAIL
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
Unimplemented: Read as 0
bit 4
bit 3
x = Bit is unknown
DS70283J-page 79
bit 2
bit 1
bit 0
Unimplemented: Read as 0
DS70283J-page 80
R/W-0
R-0
U-0
U-0
U-0
U-0
U-0
U-0
ALTIVT
DISI
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
INT2EP
INT1EP
INT0EP
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14
bit 13-3
Unimplemented: Read as 0
bit 2
bit 1
bit 0
x = Bit is unknown
DS70283J-page 81
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
AD1IF
U1TXIF
U1RXIF
SPI1IF
SPI1EIF
T3IF
bit 15
bit 8
R/W-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
T2IF
OC2IF
IC2IF
T1IF
OC1IF
IC1IF
INT0IF
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-14
Unimplemented: Read as 0
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
bit 4
Unimplemented: Read as 0
bit 3
bit 2
DS70283J-page 82
x = Bit is unknown
bit 1
bit 0
DS70283J-page 83
U-0
U-0
R/W-0
U-0
U-0
U-0
U-0
U-0
INT2IF
bit 15
bit 8
R/W-0
R/W-0
U-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
IC8IF
IC7IF
INT1IF
CNIF
MI2C1IF
SI2C1IF
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-14
Unimplemented: Read as 0
bit 13
bit 12-8
Unimplemented: Read as 0
bit 7
bit 6
bit 5
Unimplemented: Read as 0
bit 4
bit 3
bit 2
Unimplemented: Read as 0
bit 1
bit 0
DS70283J-page 84
x = Bit is unknown
R/W-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
U-0
FLTA1IF
QEIIF
PWM1IF
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14-11
Unimplemented: Read as 0
bit 10
bit 9
bit 8-0
Unimplemented: Read as 0
x = Bit is unknown
DS70283J-page 85
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
U-0
FLTA2IF
PWM2IF
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
U-0
U1EIF
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-11
Unimplemented: Read as 0
bit 10
bit 9
bit 8-2
Unimplemented: Read as 0
bit 1
bit 0
Unimplemented: Read as 0
DS70283J-page 86
x = Bit is unknown
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
AD1IE
U1TXIE
U1RXIE
SPI1IE
SPI1EIE
T3IE
bit 15
bit 8
R/W-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
T2IE
OC2IE
IC2IE
T1IE
OC1IE
IC1IE
INT0IE
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-14
Unimplemented: Read as 0
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
bit 4
Unimplemented: Read as 0
bit 3
bit 2
x = Bit is unknown
DS70283J-page 87
bit 1
bit 0
DS70283J-page 88
U-0
U-0
R/W-0
U-0
U-0
U-0
U-0
U-0
INT2IE
bit 15
bit 8
R/W-0
R/W-0
U-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
IC8IE
IC7IE
INT1IE
CNIE
MI2C1IE
SI2C1IE
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-14
Unimplemented: Read as 0
bit 13
bit 12-8
Unimplemented: Read as 0
bit 7
bit 6
bit 5
Unimplemented: Read as 0
bit 4
bit 3
bit 2
Unimplemented: Read as 0
bit 1
bit 0
x = Bit is unknown
DS70283J-page 89
R/W-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
U-0
FLTA1IE
QEIIE
PWM1IE
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14-11
Unimplemented: Read as 0
bit 10
bit 9
bit 8-0
Unimplemented: Read as 0
DS70283J-page 90
x = Bit is unknown
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
U-0
FLA2IE
PWM2IE
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
U-0
U1EIE
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-11
Unimplemented: Read as 0
bit 10
bit 9
bit 8-2
Unimplemented: Read as 0
bit 1
bit 0
Unimplemented: Read as 0
x = Bit is unknown
DS70283J-page 91
R/W-0
R/W-0
T1IP<2:0>
U-0
R/W-1
R/W-0
R/W-0
OC1IP<2:0>
bit 15
bit 8
U-0
R/W-1
R/W-0
IC1IP<2:0>
R/W-0
U-0
R/W-1
R/W-0
R/W-0
INT0IP<2:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
Unimplemented: Read as 0
bit 14-12
bit 11
Unimplemented: Read as 0
bit 10-8
bit 7
Unimplemented: Read as 0
bit 6-4
bit 3
Unimplemented: Read as 0
bit 2-0
DS70283J-page 92
x = Bit is unknown
R/W-0
R/W-0
T2IP<2:0>
U-0
R/W-1
R/W-0
R/W-0
OC2IP<2:0>
bit 15
bit 8
U-0
R/W-1
R/W-0
IC2IP<2:0>
R/W-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
Unimplemented: Read as 0
bit 14-12
bit 11
Unimplemented: Read as 0
bit 10-8
bit 7
Unimplemented: Read as 0
bit 6-4
bit 3-0
Unimplemented: Read as 0
x = Bit is unknown
DS70283J-page 93
R/W-0
R/W-0
U1RXIP<2:0>
U-0
R/W-1
R/W-0
R/W-0
SPI1IP<2:0>
bit 15
bit 8
U-0
R/W-1
R/W-0
SPI1EIP<2:0>
R/W-0
U-0
R/W-1
R/W-0
R/W-0
T3IP<2:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
Unimplemented: Read as 0
bit 14-12
bit 11
Unimplemented: Read as 0
bit 10-8
bit 7
Unimplemented: Read as 0
bit 6-4
bit 3
Unimplemented: Read as 0
bit 2-0
DS70283J-page 94
x = Bit is unknown
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
R/W-1
R/W-0
AD1IP<2:0>
R/W-0
U-0
R/W-1
R/W-0
R/W-0
U1TXIP<2:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-7
Unimplemented: Read as 0
bit 6-4
bit 3
Unimplemented: Read as 0
bit 2-0
x = Bit is unknown
DS70283J-page 95
R/W-0
R/W-0
CNIP<2:0>
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
R/W-1
R/W-0
MI2C1IP<2:0>
R/W-0
U-0
R/W-1
R/W-0
R/W-0
SI2C1IP<2:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
Unimplemented: Read as 0
bit 14-12
bit 11-7
Unimplemented: Read as 0
bit 6-4
bit 3
Unimplemented: Read as 0
bit 2-0
DS70283J-page 96
x = Bit is unknown
R/W-0
R/W-0
IC8IP<2:0>
U-0
R/W-1
R/W-0
R/W-0
IC7IP<2:0>
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
R/W-1
R/W-0
R/W-0
INT1IP<2:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
Unimplemented: Read as 0
bit 14-12
bit 11
Unimplemented: Read as 0
bit 10-8
bit 7-3
Unimplemented: Read as 0
bit 2-0
x = Bit is unknown
DS70283J-page 97
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
R/W-1
R/W-0
INT2IP<2:0>
R/W-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-7
Unimplemented: Read as 0
bit 6-4
bit 3-0
Unimplemented: Read as 0
DS70283J-page 98
x = Bit is unknown
U-0
U-0
U-0
U-0
U-0
R/W-1
R/W-0
R/W-0
QEIIP<2:0>
bit 15
bit 8
U-0
R/W-1
R/W-0
PWM1IP<2:0>
R/W-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-12
Unimplemented: Read as 0
bit 10-8
bit 7
Unimplemented: Read as 0
bit 6-4
bit 3-0
Unimplemented: Read as 0
x = Bit is unknown
DS70283J-page 99
R/W-0
R/W-0
FLTA1IP<2:0>
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
Unimplemented: Read as 0
bit 14-12
bit 11-0
Unimplemented: Read as 0
REGISTER 7-22:
x = Bit is unknown
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
R/W-1
R/W-0
U1EIP<2:0>
R/W-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-7
Unimplemented: Read as 0
bit 6-4
bit 3-0
Unimplemented: Read as 0
DS70283J-page 100
x = Bit is unknown
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
FLTA2IP<2:0>
bit 15
bit 8
U-0
R/W-1
R/W-0
PWM2IP<2:0>
R/W-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-11
Unimplemented: Read as 0
bit 8-10
bit 7
Unimplemented: Read as 0
bit 6-4
bit 3-0
Unimplemented: Read as 0
x = Bit is unknown
DS70283J-page 101
U-0
U-0
U-0
U-0
R-0
R-0
R-0
R-0
ILR<3:0>
bit 15
bit 8
U-0
R-0
R-0
R-0
R-0
R-0
R-0
R-0
VECNUM<6:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-12
Unimplemented: Read as 0
bit 11-8
bit 7
Unimplemented: Read as 0
bit 6-0
DS70283J-page 102
x = Bit is unknown
7.4.1
INITIALIZATION
3.
4.
7.4.2
7.4.3
7.4.4
INTERRUPT DISABLE
The method used to declare an Interrupt Service Routine (ISR) and initialize the IVT with the correct vector
address depends on the programming language (C or
assembler) and the language development tool suite
used to develop the application.
In general, the user application must clear the interrupt
flag in the appropriate IFSx register for the source of
interrupt that the ISR handles. Otherwise, program will
re-enter the ISR immediately after exiting the routine. If
the ISR is coded in assembly language, it must be
terminated using a RETFIE instruction to unstack the
saved PC value, SRL value and old CPU priority level.
DS70283J-page 103
DS70283J-page 104
OSCILLATOR
CONFIGURATION
FIGURE 8-1:
R(2)
S3
PLL
S1
OSC2
(1)
DOZE<2:0>
S2
XTPLL, HSPLL,
ECPLL, FRCPLL
DOZE
OSC1
S1/S3
POSCMD<1:0>
FCY(3)
FRCDIV
FP(3)
FRC
Oscillator
FRCDIVN
S7
2
FOSC
FRCDIV<2:0>
TUN<5:0>
FRCDIV16
16
FRC
LPRC
LPRC
Oscillator
Secondary Oscillator (SOSC)
SOSC
SOSCO
S6
S0
S5
S4
LPOSCEN
SOSCI
Clock Fail
S7
Clock Switch
Reset
NOSC<2:0> FNOSC<2:0>
WDT, PWRT,
FSCM
Timer 1
DS70283J-page 105
The
dsPIC33FJ32MC202/204
and
dsPIC33FJ16MC304 devices provide seven system
clock options:
8.1.1
8.1.1.1
8.1.1.2
Primary
8.1.1.3
Secondary
8.1.1.4
Low-Power RC
8.1.1.5
FRC
DS70283J-page 106
8.1.2
EQUATION 8-1:
DEVICE OPERATING
FREQUENCY
OSC
------------F CY = F
2
8.1.3
PLL CONFIGURATION
EQUATION 8-2:
FOSC CALCULATION
M
F OSC = F IN ----------------------
N1 N2
For example, suppose a 10 MHz crystal is being used
with the selected oscillator mode of XT with PLL.
EQUATION 8-3:
FIGURE 8-2:
1
10000000 32
OSC
------------= --- ------------------------------------- = 40 MIPS
F CY = F
2
2 2
2
0.8-8.0 MHz
Here(1)
Source (Crystal, External Clock
or Internal RC)
PLLPRE
VCO
12.5-80 MHz
Here(1)
FOSC
PLLPOST
PLLDIV
N1
Divide by
2-33
M
Divide by
2-513
N2
Divide by
2, 4, 8
TABLE 8-1:
Oscillator Mode
Oscillator Source
POSCMD<1:0>
FNOSC<2:0>
See Note
Internal
xx
111
1, 2
Internal
xx
110
Internal
xx
101
Secondary
xx
100
Primary
10
011
Primary
01
011
Primary
00
011
Primary
10
010
Primary
01
010
Primary
00
010
Internal
xx
001
Internal
xx
000
Note 1:
2:
DS70283J-page 107
REGISTER 8-1:
U-0
R-0
R-0
R-0
COSC<2:0>
U-0
R/W-y
R/W-y
R/W-y
NOSC<2:0>(2)
bit 15
bit 8
R/W-0
R/W-0
R-0
U-0
R/C-0
U-0
R/W-0
R/W-0
CLKLOCK
IOLOCK
LOCK
CF
LPOSCEN
OSWEN
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
Unimplemented: Read as 0
bit 14-12
bit 11
Unimplemented: Read as 0
bit 10-8
bit 7
bit 6
bit 5
bit 4
Unimplemented: Read as 0
Note 1:
2:
3:
Writes to this register require an unlock sequence. Refer to Section 7. Oscillator (DS70186) in the
dsPIC33F/PIC24H Family Reference Manual for details.
Direct clock switches between any primary oscillator mode with PLL and FRCPLL mode are not permitted.
This applies to clock switches in either direction. In these instances, the application must switch to FRC
mode as a transition clock source between the two PLL modes.
This register is reset only on a Power-on Reset (POR).
DS70283J-page 108
bit 3
bit 2
Unimplemented: Read as 0
bit 1
bit 0
Note 1:
2:
3:
Writes to this register require an unlock sequence. Refer to Section 7. Oscillator (DS70186) in the
dsPIC33F/PIC24H Family Reference Manual for details.
Direct clock switches between any primary oscillator mode with PLL and FRCPLL mode are not permitted.
This applies to clock switches in either direction. In these instances, the application must switch to FRC
mode as a transition clock source between the two PLL modes.
This register is reset only on a Power-on Reset (POR).
DS70283J-page 109
Legend:
R = Readable bit
-n = Value at POR
bit 14-12
bit 11
bit 10-8
bit 7-6
bit 5
bit 4-0
Note 1:
2:
R/W-1
R/W-0
DOZEN(1)
R/W-0
R/W-0
FRCDIV<2:0>
R/W-0
bit 8
R/W-0
R/W-1
PLLPOST<1:0>
bit 7
bit 15
R/W-1
DOZE<2:0>
U-0
R/W-0
R/W-0
R/W-0
PLLPRE<4:0>
R/W-0
R/W-0
bit 0
11111 = Input/33
This bit is cleared when the ROI bit is set and an interrupt occurs.
This register is reset only on a Power-on Reset (POR).
DS70283J-page 110
U-0
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
PLLDIV<8>
bit 15
bit 8
R/W-0
R/W-0
R/W-1
R/W-1
R/W-0
R/W-0
R/W-0
R/W-0
PLLDIV<7:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-9
Unimplemented: Read as 0
bit 8-0
000110000 = 50 (default)
111111111 = 513
Note 1:
DS70283J-page 111
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
TUN<5:0>(1)
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-6
Unimplemented: Read as 0
bit 5-0
Note 1:
2:
x = Bit is unknown
OSCTUN functionality has been provided to help customers compensate for temperature effects on the
FRC frequency over a wide range of temperatures. The tuning step size is an approximation and is neither
characterized nor tested.
This register is reset only on a Power-on Reset (POR).
DS70283J-page 112
2.
3.
4.
5.
6.
8.2.1
8.2.2
Performing
sequence:
1.
2.
3.
4.
5.
OSCILLATOR SWITCHING
SEQUENCE
a
8.3
this basic
If
desired,
read
the
COSC
bits
(OSCCON<14:12>) to determine the current
oscillator source.
Perform the unlock sequence to allow a write to
the OSCCON register high byte.
Write the appropriate value to the NOSC control
bits (OSCCON<10:8>) for the new oscillator
source.
Perform the unlock sequence to allow a write to
the OSCCON register low byte.
Set the OSWEN bit (OSCCON<0>) to initiate
the oscillator switch.
DS70283J-page 113
DS70283J-page 114
POWER-SAVING FEATURES
Clock frequency
Instruction-based Sleep and Idle modes
Software-controlled Doze mode
Selective peripheral control in software
Combinations of these methods can be used to selectively tailor an applications power consumption while
still maintaining critical application features, such as
timing-sensitive communications.
9.1
EXAMPLE 9-1:
9.2
Instruction-Based Power-Saving
Modes
9.2.1
SLEEP MODE
PWRSAV #SLEEP_MODE
PWRSAV #IDLE_MODE
DS70283J-page 115
IDLE MODE
9.2.3
9.4
9.3
Doze Mode
DS70283J-page 116
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
U-0
T3MD
T2MD
T1MD
QEIMD
PWM1MD
bit 15
bit 8
R/W-0
U-0
R/W-0
U-0
R/W-0
U-0
U-0
R/W-0
I2C1MD
U1MD
SPI1MD
AD1MD(1)
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-14
Unimplemented: Read as 0
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
Unimplemented: Read as 0
bit 7
bit 6
Unimplemented: Read as 0
bit 5
bit 4
Unimplemented: Read as 0
bit 3
bit 2-1
Unimplemented: Read as 0
bit 0
Note 1:
x = Bit is unknown
PCFGx bits have no effect if the ADC module is disabled by setting this bit. In this case, all port pins
multiplexed with ANx will be in Digital mode.
DS70283J-page 117
R/W-0
R/W-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
IC8MD
IC7MD
IC2MD
IC1MD
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
OC2MD
OC1MD
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14
bit 13-10
Unimplemented: Read as 0
bit 9
bit 8
bit 7-2
Unimplemented: Read as 0
bit 1
bit 0
DS70283J-page 118
x = Bit is unknown
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
U-0
R/W-0
U-0
U-0
U-0
U-0
PWM2MD
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-5
Unimplemented: Read as 0
bit 4
bit 3-0
Unimplemented: Read as 0
x = Bit is unknown
DS70283J-page 119
DS70283J-page 120
I/O PORTS
10.1
FIGURE 10-1:
Output Multiplexers
I/O
Peripheral Output Enable
PIO Module
WR TRIS
Output Data
Read TRIS
Data Bus
Output Enable
I/O Pin
CK
TRIS Latch
D
WR LAT +
WR Port
CK
Data Latch
Read LAT
Input Data
Read Port
DS70283J-page 121
Open-Drain Configuration
10.3
The AD1PCFG and TRIS registers control the operation of the analog-to-digital (A/D) port pins. The port
pins that are to function as analog inputs must have
their corresponding TRIS bit set (input). If the TRIS bit
is cleared (output), the digital output level (VOH or VOL)
will be converted.
The AD1PCFGL register has a default value of 0x0000;
therefore, all pins that share ANx functions are analog
(not digital) by default.
When the PORT register is read, all pins configured as
analog input channels will read as cleared (a low level).
Pins configured as digital inputs will not convert an
analog input. Analog levels on any pin defined as a digital input (including the ANx pins) can cause the input
buffer to consume current that exceeds the device
specifications.
10.4
10.5
MOV
MOV
NOP
btss
Four control registers are associated with the CN module. The CNEN1 and CNEN2 registers contain the
interrupt enable control bits for each of the CN input
pins. Setting any of these bits enables a CN interrupt
for the corresponding pins.
Each CN pin also has a weak pull-up connected to it.
The pull-ups act as a current source connected to the
pin, and eliminate the need for external resistors when
push-button or keypad devices are connected. The
pull-ups are enabled separately using the CNPU1 and
CNPU2 registers, which contain the control bits for
each of the CN pins. Setting any of the control bits
enables the weak pull-ups for the corresponding pins.
Pull-ups on change notification pins
should always be disabled when the port
pin is configured as a digital output.
0xFF00, W0
W0, TRISBB
;
;
;
;
PORTB, #13
EXAMPLE 10-2:
Note:
EXAMPLE 10-1:
Incorrect:
BSET
BSET
PORTB, #RB1
PORTB, #RB6
PORTB, #RB1
PORTB, #RB6
LATB, LATB1
LATB, LATB6
Correct:
BSET
NOP
BSET
NOP
Preferred:
BSET
BSET
DS70283J-page 122
10.6.1
AVAILABLE PINS
10.6.2
10.6.2.1
FIGURE 10-2:
Input Mapping
REMAPPABLE MUX
INPUT FOR U1RX
U1RXR<4:0>
0
RP0
1
RP1
2
U1RX input
to peripheral
RP2
25
RP25
DS70283J-page 123
TABLE 10-1:
Function Name
Register
Configuration
Bits
INT1
RPINR0
INT1R<4:0>
External Interrupt 2
INT2
RPINR1
INT2R<4:0>
T2CK
RPINR3
T2CKR<4:0>
T3CK
RPINR3
T3CKR<4:0>
IC1
RPINR7
IC1R<4:0>
Input Name
External Interrupt 1
Input Capture 1
Input Capture 2
IC2
RPINR7
IC2R<4:0>
Input Capture 7
IC7
RPINR10
IC7R<4:0>
Input Capture 8
IC8
RPINR10
IC8R<4:0>
OCFA
RPINR11
OCFAR<4:0>
PWM1 Fault
FLTA1
RPINR12
FLTA1R<4:0>
PWM2 Fault
FLTA2
RPINR13
FLTA2R<4:0>
QEI1 Phase A
QEA
RPINR14
QEA1R<4:0>
QEI1 Phase B
QEB
RPINR14
QEB1R<4:0>
QEI1 Index
INDX
RPINR15
INDX1R<4:0>
UART1 Receive
U1RX
RPINR18
U1RXR<4:0>
U1CTS
RPINR18
U1CTSR<4:0>
SDI1
RPINR20
SDI1R<4:0>
SCK1
RPINR20
SCK1R<4:0>
SS1
RPINR21
SS1R<4:0>
Unless otherwise noted, all inputs use the Schmitt input buffers.
DS70283J-page 124
Output Mapping
FIGURE 10-3:
MULTIPLEXING OF
REMAPPABLE OUTPUT
FOR RPn
RPnR<4:0>
Default
3
U1RTS Output Enable 4
Output Enable
Default
U1TX Output
U1RTS Output
19
26
0
3
4
RPn
Output Data
OC2 Output
UPDN Output
TABLE 10-2:
19
26
Function
RPnR<4:0>
Output Name
NULL
00000
U1TX
00011
U1RTS
00100
SDO1
00111
SCK1OUT
01000
SS1OUT
01001
OC1
10010
OC2
10011
UPDN
11010
DS70283J-page 125
CONTROLLING CONFIGURATION
CHANGES
10.6.3.1
10.6.3.2
10.6.3.3
DS70283J-page 126
The
dsPIC33FJ32MC202/204
and
dsPIC33FJ16MC304 family of devices implement 21
registers for remappable peripheral configuration:
Input Remappable Peripheral Registers (13)
Output Remappable Peripheral Registers (8)
Note:
REGISTER 10-1:
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
INT1R<4:0>
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
INT1R<4:0>: Assign External Interrupt 1 (INTR1) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
bit 7-0
Unimplemented: Read as 0
DS70283J-page 127
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
INT2R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-5
Unimplemented: Read as 0
bit 4-0
INT2R<4:0>: Assign External Interrupt 2 (INTR2) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 128
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
T3CKR<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
T2CKR<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
T3CKR<4:0>: Assign Timer3 External Clock (T3CK) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
bit 7-5
Unimplemented: Read as 0
bit 4-0
T2CKR<4:0>: Assign Timer2 External Clock (T2CK) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 129
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
IC2R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
IC1R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
IC2R<4:0>: Assign Input Capture 2 (IC2) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
bit 7-5
Unimplemented: Read as 0
bit 4-0
IC1R<4:0>: Assign Input Capture 1 (IC1) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 130
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
IC8R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
IC7R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
IC8R<4:0>: Assign Input Capture 8 (IC8) to the corresponding pin RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
bit 7-5
Unimplemented: Read as 0
bit 4-0
IC7R<4:0>: Assign Input Capture 7 (IC7) to the corresponding pin RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 131
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
OCFAR<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-5
Unimplemented: Read as 0
bit 4-0
OCFAR<4:0>: Assign Output Capture A (OCFA) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
REGISTER 10-7:
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
FLTA1R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-5
Unimplemented: Read as 0
bit 4-0
FLTA1R<4:0>: Assign PWM1 Fault (FLTA1) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 132
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
FLTA2R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-5
Unimplemented: Read as 0
bit 4-0
FLTA2R<4:0>: Assign PWM2 Fault (FLTA2) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 133
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
QEB1R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
QEA1R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-13
Unimplemented: Read as 0
bit 12-8
bit 7-5
Unimplemented: Read as 0
bit 4-0
DS70283J-page 134
x = Bit is unknown
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
INDX1R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-5
Unimplemented: Read as 0
bit 4-0
INDX1R<4:0>: Assign QEI INDEX (INDX) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 135
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
U1CTSR<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
U1RXR<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
U1CTSR<4:0>: Assign UART1 Clear to Send (U1CTS) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
bit 7-5
Unimplemented: Read as 0
bit 4-0
U1RXR<4:0>: Assign UART1 Receive (U1RX) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 136
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
SCK1R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
SDI1R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
SCK1R<4:0>: Assign SPI1 Clock Input (SCK1IN) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
bit 7-5
Unimplemented: Read as 0
bit 4-0
SDI1R<4:0>: Assign SPI1 Data Input (SDI1) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 137
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
SS1R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-5
Unimplemented: Read as 0
bit 4-0
SS1R<4:0>: Assign SPI1 Slave Select Input (SS1IN) to the corresponding RPn pin bits
11111 = Input tied VSS
11001 = Input tied to RP25
.
.
.
00001 = Input tied to RP1
00000 = Input tied to RP0
DS70283J-page 138
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP1R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP0R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP1R<4:0>: Peripheral Output Function is Assigned to RP1 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP0R<4:0>: Peripheral Output Function is Assigned to RP0 Output Pin bits (see Table 10-2 for
peripheral function numbers)
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP3R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP2R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP3R<4:0>: Peripheral Output Function is Assigned to RP3 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP2R<4:0>: Peripheral Output Function is Assigned to RP2 Output Pin bits (see Table 10-2 for
peripheral function numbers)
DS70283J-page 139
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP5R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP4R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP5R<4:0>: Peripheral Output Function is Assigned to RP5 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP4R<4:0>: Peripheral Output Function is Assigned to RP4 Output Pin bits (see Table 10-2 for
peripheral function numbers)
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP7R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP6R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP7R<4:0>: Peripheral Output Function is Assigned to RP7 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP6R<4:0>: Peripheral Output Function is Assigned to RP6 Output Pin bits (see Table 10-2 for
peripheral function numbers)
DS70283J-page 140
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP9R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP8R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP9R<4:0>: Peripheral Output Function is Assigned to RP9 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP8R<4:0>: Peripheral Output Function is Assigned to RP8 Output Pin bits (see Table 10-2 for
peripheral function numbers)
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP11R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP10R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP11R<4:0>: Peripheral Output Function is Assigned to RP11 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP10R<4:0>: Peripheral Output Function is Assigned to RP10 Output Pin bits (see Table 10-2 for
peripheral function numbers)
DS70283J-page 141
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP13R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP12R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP13R<4:0>: Peripheral Output Function is Assigned to RP13 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP12R<4:0>: Peripheral Output Function is Assigned to RP12 Output Pin bits (see Table 10-2 for
peripheral function numbers)
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP15R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP14R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP15R<4:0>: Peripheral Output Function is Assigned to RP15 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP14R<4:0>: Peripheral Output Function is Assigned to RP14 Output Pin bits (see Table 10-2 for
peripheral function numbers)
DS70283J-page 142
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP17R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP16R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP17R<4:0>: Peripheral Output Function is Assigned to RP17 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP16R<4:0>: Peripheral Output Function is Assigned to RP16 Output Pin bits (see Table 10-2 for
peripheral function numbers)
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP19R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP18R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP19R<4:0>: Peripheral Output Function is Assigned to RP19 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP18R<4:0>: Peripheral Output Function is Assigned to RP18 Output Pin bits (see Table 10-2 for
peripheral function numbers)
DS70283J-page 143
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP21R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP20R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP21R<4:0>: Peripheral Output Function is Assigned to RP21 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP20R<4:0>: Peripheral Output Function is Assigned to RP20 Output Pin bits (see Table 10-2 for
peripheral function numbers)
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP23R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP22R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP23R<4:0>: Peripheral Output Function is Assigned to RP23 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP22R<4:0>: Peripheral Output Function is Assigned to RP22 Output Pin bits (see Table 10-2 for
peripheral function numbers)
DS70283J-page 144
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP25R<4:0>
bit 15
bit 8
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
RP24R<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12-8
RP25R<4:0>: Peripheral Output Function is Assigned to RP25 Output Pin bits (see Table 10-2 for
peripheral function numbers)
bit 7-5
Unimplemented: Read as 0
bit 4-0
RP24R<4:0>: Peripheral Output Function is Assigned to RP24 Output Pin bits (see Table 10-2 for
peripheral function numbers)
DS70283J-page 145
DS70283J-page 146
TIMER1
3.
4.
5.
6.
16-bit Timer
16-bit Synchronous Counter
16-bit Asynchronous Counter
FIGURE 11-1:
TON
SOSCO/
T1CK
1x
SOSCEN
SOSCI
Gate
Sync
01
TCY
00
Prescaler
1, 8, 64, 256
TGATE
TCS
TGATE
CK
Set T1IF
Reset
0
TMR1
1
Comparator
Sync
TSYNC
Equal
PR1
DS70283J-page 147
R/W-0
U-0
R/W-0
U-0
U-0
U-0
U-0
U-0
TON
TSIDL
bit 15
bit 8
U-0
R/W-0
TGATE
R/W-0
R/W-0
TCKPS<1:0>
U-0
R/W-0
R/W-0
U-0
TSYNC
TCS
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12-7
Unimplemented: Read as 0
bit 6
bit 5-4
bit 3
Unimplemented: Read as 0
bit 2
bit 1
bit 0
Unimplemented: Read as 0
DS70283J-page 148
x = Bit is unknown
TIMER2/3 FEATURE
12.1
5.
6.
12.2
16-bit Operation
32-bit Operation
3.
4.
5.
6.
DS70283J-page 149
FIGURE 12-1:
T2CK
1x
Gate
Sync
01
TCY
00
TCKPS<1:0>
2
TON
Prescaler
1, 8, 64, 256
TGATE
TCS
TGATE
1
Set T3IF
D
CK
0
PR3
ADC Event Trigger(2)
Equal
PR2
Comparator
MSb
LSb
TMR3
Reset
TMR2
Sync
16
Read TMR2
Write TMR2
16
16
TMR3HLD
16
Data Bus<15:0>
Note 1:
2:
The 32-bit timer control bit, T32, must be set for 32-bit timer/counter operation. All control bits are respective
to the T2CON register.
The ADC event trigger is available only on Timer2/3.
DS70283J-page 150
TON
T2CK
TCKPS<1:0>
2
1x
Gate
Sync
Prescaler
1, 8, 64, 256
01
00
TGATE
TCS
TCY
1
Set T2IF
0
Reset
CK
TMR2
TGATE
Sync
Comparator
Equal
PR2
DS70283J-page 151
R/W-0
U-0
R/W-0
U-0
U-0
U-0
U-0
U-0
TON
TSIDL
bit 15
bit 8
U-0
R/W-0
TGATE
R/W-0
R/W-0
TCKPS<1:0>
R/W-0
U-0
R/W-0
U-0
T32
TCS
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12-7
Unimplemented: Read as 0
bit 6
bit 5-4
bit 3
bit 2
Unimplemented: Read as 0
bit 1
bit 0
Unimplemented: Read as 0
DS70283J-page 152
x = Bit is unknown
TON(2)
R/W-0
U-0
U-0
U-0
U-0
U-0
(1)
TSIDL
bit 15
bit 8
U-0
R/W-0
R/W-0
(2)
TGATE
R/W-0
TCKPS<1:0>
(2)
U-0
U-0
R/W-0
(2)
TCS
bit 7
U-0
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12-7
Unimplemented: Read as 0
bit 6
bit 5-4
bit 3-2
Unimplemented: Read as 0
bit 1
bit 0
Unimplemented: Read as 0
Note 1:
2:
x = Bit is unknown
When 32-bit timer operation is enabled (T32 = 1) in the Timer Control register (T2CON<3>), the TSIDL bit
must be cleared to operate the 32-bit timer in Idle mode.
When the 32-bit timer operation is enabled (T32 = 1) in the Timer Control register (T2CON<3>), these bits
have no effect.
DS70283J-page 153
DS70283J-page 154
INPUT CAPTURE
1.
FIGURE 13-1:
16
16
1
Edge Detection Logic
and
Clock Synchronizer
Prescaler
Counter
(1, 4, 16)
FIFO
R/W
Logic
ICTMR
(ICxCON<7>)
ICx Pin
ICM<2:0> (ICxCON<2:0>)
Mode Select
FIFO
Interrupt
Logic
System Bus
Set Flag ICxIF
(in IFSn Register)
Note: An x in a signal, register or bit name denotes the number of the capture channel.
DS70283J-page 155
REGISTER 13-1:
U-0
U-0
R/W-0
U-0
U-0
U-0
U-0
U-0
ICSIDL
bit 15
bit 8
R/W-0
R/W-0
ICTMR
R/W-0
ICI<1:0>
R-0, HC
R-0, HC
ICOV
ICBNE
R/W-0
R/W-0
R/W-0
ICM<2:0>
bit 7
bit 0
Legend:
HC = Cleared in Hardware
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-14
Unimplemented: Read as 0
bit 13
bit 12-8
Unimplemented: Read as 0
bit 7
bit 6-5
bit 4
bit 3
bit 2-0
DS70283J-page 156
OUTPUT COMPARE
FIGURE 14-1:
OCxRS
Output
Logic
OCxR
S Q
R
3
OCM<2:0>
Mode Select
Comparator
0
16
OCTSEL
Output
Enable
OCx
Output
Enable
Logic
OCFA
16
TMR2 TMR3
TMR2
Rollover
TMR3
Rollover
DS70283J-page 157
TABLE 14-1:
Note:
OCM<2:0>
Mode
000
Module Disabled
001
Active-Low One-Shot
010
Active-High One-Shot
011
Toggle Mode
100
Delayed One-Shot
101
110
111
FIGURE 14-2:
0, if OCxR is zero
1, if OCxR is non-zero
No interrupt
OCFA Falling edge for OC1 to OC4
Timer is reset on
period match
OCxRS
TMRy
OCxR
Active-Low One-Shot
(OCM = 001)
Active-High One-Shot
(OCM = 010)
Toggle Mode
(OCM = 011)
Delayed One-Shot
(OCM = 100)
Continuous Pulse Mode
(OCM = 101)
PWM Mode
(OCM = 110 or 111)
DS70283J-page 158
U-0
U-0
R/W-0
U-0
U-0
U-0
U-0
U-0
OCSIDL
bit 15
bit 8
U-0
U-0
U-0
R-0 HC
R/W-0
OCFLT
OCTSEL
R/W-0
R/W-0
R/W-0
OCM<2:0>
bit 7
bit 0
Legend:
HC = Cleared in Hardware
HS = Set in Hardware
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-14
Unimplemented: Read as 0
bit 13
bit 12-5
Unimplemented: Read as 0
bit 4
bit 3
bit 2-0
DS70283J-page 159
DS70283J-page 160
Up to 16-bit resolution.
On-the-fly PWM frequency changes.
Edge and Center-Aligned Output modes.
Single Pulse Generation mode.
Interrupt support for asymmetrical updates in
Center-Aligned mode.
Output override control for Electrically
Commutative Motor (ECM) operation or BLDC.
Special Event comparator for scheduling other
peripheral events.
Fault pins to optionally drive each of the PWM
output pins to a defined state.
15.1
15.2
of
DS70283J-page 161
PWM1CON1
PWM Enable and Mode SFRs
PWM1CON2
P1DTCON1
Dead-Time Control SFRs
P1DTCON2
P1FLTACON
P1OVDCON
PWM Manual
Control SFR
PWM Generator 3
P1DC3 Buffer
P1DC3
Comparator
PWM
Generator 2
P1TMR
Channel 3 Dead-Time
Generator and
Override Logic
PWM1H3
Channel 2 Dead-Time
Generator and
Override Logic
PWM1H2
PWM1L3
Output
PWM1L2
Driver
Comparator
PWM
Generator 1
P1TPER
Channel 1 Dead-Time
Generator and
Override Logic
Block
PWM1H1
PWM1L1
P1TPER Buffer
FLTA1
P1TCON
Comparator
SEVTDIR
P1SECMP
Special Event
Postscaler
PTDIR
Note:
Details of PWM Generator 1and PWM Generator 2 are not shown for clarity.
DS70283J-page 162
PWM2CON1
PWM2CON2
P2DTCON1
Dead-Time Control SFRs
P2DTCON2
P2FLTACON
P2OVDCON
PWM Manual
Control SFR
PWM Generator 1
P2DC1Buffer
P2DC1
Comparator
PWM2H1
Channel 1 Dead-Time
Generator and
Override Logic
PWM2L1
P2TMR
Output
Driver
Comparator
Block
P2TPER
P2TPER Buffer
FLTA2
P2TCON
Comparator
SEVTDIR
P2SECMP
Special Event
Postscaler
PTDIR
DS70283J-page 163
R/W-0
U-0
R/W-0
U-0
U-0
U-0
U-0
U-0
PTEN
PTSIDL
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PTOPS<3:0>
R/W-0
R/W-0
PTCKPS<1:0>
R/W-0
PTMOD<1:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12-8
Unimplemented: Read as 0
bit 7-4
bit 3-2
bit 1-0
DS70283J-page 164
R/W-0
R/W-0
PTDIR
R/W-0
R/W-0
R/W-0
R/W-0
PTMR<14:8>
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PTMR<7:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14-0
REGISTER 15-3:
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PTPER<14:8>
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PTPER<7:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
Unimplemented: Read as 0
bit 14-0
x = Bit is unknown
DS70283J-page 165
R/W-0
R/W-0
SEVTDIR(1)
R/W-0
R/W-0
R/W-0
R/W-0
SEVTCMP<14:8>(2)
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
SEVTCMP<7:0>(2)
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14-0
Note 1:
2:
SEVTDIR is compared with PTDIR (PXTMR<15>) to generate the Special Event Trigger.
PxSECMP<14:0> is compared with PXTMR<14:0> to generate the Special Event Trigger.
DS70283J-page 166
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
PMOD3
PMOD2
PMOD1
bit 15
bit 8
U-0
R/W-1
(1)
PEN3H
R/W-1
(1)
PEN2H
R/W-1
(1)
PEN1H
U-0
R/W-1
(1)
PEN3L
R/W-1
(1)
PEN2L
R/W-1
PEN1L(1)
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-11
Unimplemented: Read as 0
bit 10-8
bit 7
Unimplemented: Read as 0
bit 6-4
bit 3
Unimplemented: Read as 0
bit 2-0
Note 1:
2:
x = Bit is unknown
Reset condition of the PENxH and PENxL bits depends on the value of the PWMPIN Configuration bit in
the FPOR Configuration register.
PWM2 supports only 1 PWM I/O pin pair.
DS70283J-page 167
U-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
SEVOPS<3:0>
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
IUE
OSYNC
UDIS
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-12
Unimplemented: Read as 0
bit 11-8
bit 7-3
Unimplemented: Read as 0
bit 2
bit 1
bit 0
DS70283J-page 168
R/W-0
R/W-0
DTBPS<1:0>
R/W-0
R/W-0
R/W-0
R/W-0
DTB<5:0>
bit 15
bit 8
R/W-0
R/W-0
R/W-0
DTAPS<1:0>
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
DTA<5:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-14
bit 13-8
bit 7-6
bit 5-0
x = Bit is unknown
DS70283J-page 169
U-0
U-0
U-0
U-0
U-0
U-0
U-0
U-0
bit 15
bit 8
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
DTS3A
DTS3I
DTS2A
DTS2I
DTS1A
DTS1I
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-6
Unimplemented: Read as 0
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Note 1:
x = Bit is unknown
DS70283J-page 170
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
FAOV3H
FAOV3L
FAOV2H
FAOV2L
FAOV1H
FAOV1L
bit 15
bit 8
R/W-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
FLTAM
FAEN3
FAEN2
FAEN1
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-14
Unimplemented: Read as 0
bit 13-8
bit 7
bit 6-3
Unimplemented: Read as 0
bit 2
bit 1
bit 0
Note 1:
DS70283J-page 171
U-0
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
R/W-1
POVD3H
POVD3L
POVD2H
POVD2L
POVD1H
POVD1L
bit 15
bit 8
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
POUT3H
POUT3L
POUT2H
POUT2L
POUT1H
POUT1L
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-14
Unimplemented: Read as 0
bit 13-8
bit 7-6
Unimplemented: Read as 0
bit 5-0
Note 1:
DS70283J-page 172
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PDC1<15:8>
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PDC1<7:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-0
x = Bit is unknown
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PDC2<15:8>
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PDC2<7:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-0
x = Bit is unknown
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PDC3<15:8>
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PDC3<7:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-0
x = Bit is unknown
DS70283J-page 173
DS70283J-page 174
QUADRATURE ENCODER
INTERFACE (QEI) MODULE
This section describes the Quadrature Encoder Interface (QEI) module and associated operational modes.
The QEI module provides the interface to incremental
encoders for obtaining mechanical position data.
FIGURE 16-1:
Sleep Input
TQCS
TCY
Synchronize
Det
Prescaler
1, 8, 64, 256
1
1
QEIM<2:0>
0
D
TQGATE
CK
QEAx
Programmable
Digital Filter
UPDN_SRC
0
QEIxCON<11>
QEBx
Programmable
Digital Filter
INDXx
Programmable
Digital Filter
PCDOUT
0
1
Quadrature
Encoder
Interface Logic
Equal
3
QEIM<2:0>
Mode Select
UPDNx
QEIIF
Event
Flag
DS70283J-page 175
DS70283J-page 176
R/W-0
U-0
R/W-0
R-0
R/W-0
CNTERR
QEISIDL
INDEX
UPDN
R/W-0
R/W-0
R/W-0
QEIM<2:0>
bit 15
bit 8
R/W-0
R/W-0
R/W-0
SWPAB
PCDOUT
TQGATE
R/W-0
R/W-0
TQCKPS<1:0>
R/W-0
R/W-0
R/W-0
POSRES
TQCS
UPDN_SRC
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12
bit 11
bit 10-8
bit 7
bit 6
bit 5
Note:
DS70283J-page 177
bit 4-3
bit 2
bit 1
bit 0
DS70283J-page 178
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
IMV<1:0>
CEID
bit 15
bit 8
R/W-0
R/W-0
U-0
U-0
U-0
U-0
QEOUT
QECK<2:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-11
Unimplemented: Read as 0
bit 10-9
IMV<1:0>: Index Match Value bits These bits allow the user application to specify the state of the
QEA and QEB input pins during an Index pulse when the POSxCNT register is to be reset.
In 4X Quadrature Count Mode:
IMV1 = Required State of Phase B input signal for match on index pulse
IMV0 = Required State of Phase A input signal for match on index pulse
In 2X Quadrature Count Mode:
IMV1 = Selects Phase input signal for Index state match (0 = Phase A, 1 = Phase B)
IMV0 = Required state of the selected Phase input signal for match on index pulse
bit 8
bit 7
bit 6-4
bit 3-0
Unimplemented: Read as 0
DS70283J-page 179
DS70283J-page 180
SERIAL PERIPHERAL
INTERFACE (SPI)
FIGURE 17-1:
The Serial Peripheral Interface (SPI) module is a synchronous serial interface useful for communicating with
other peripheral or microcontroller devices. These
peripheral devices can be serial EEPROMs, shift registers, display drivers, analog-to-digital converters, etc.
The SPI module is compatible with SPI and SIOP from
Motorola.
Each SPI module consists of a 16-bit shift register,
SPIxSR (where x = 1 or 2), used for shifting data in and
out, and a buffer register, SPIxBUF. A control register,
SPIxCON, configures the module. Additionally, a status
register, SPIxSTAT, indicates status conditions.
The serial interface consists of these four pins:
SCKx
1:1 to 1:8
Secondary
Prescaler
1:1/4/16/64
Primary
Prescaler
FCY
SSx
Sync
Control
Select
Edge
Control
Clock
SPIxCON1<1:0>
Shift Control
SPIxCON1<4:2>
SDOx
Enable
Master Clock
bit 0
SDIx
SPIxSR
Transfer
Transfer
SPIxRXB
SPIxTXB
SPIxBUF
Read SPIxBUF
Write SPIxBUF
16
Internal Data Bus
DS70283J-page 181
R/W-0
U-0
R/W-0
U-0
U-0
U-0
U-0
U-0
SPIEN
SPISIDL
bit 15
bit 8
U-0
R/C-0
U-0
U-0
U-0
U-0
R-0
R-0
SPIROV
SPITBF
SPIRBF
bit 7
bit 0
Legend:
C = Clearable bit
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12-7
Unimplemented: Read as 0
bit 6
bit 5-2
Unimplemented: Read as 0
bit 1
bit 0
DS70283J-page 182
U-0
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
DISSCK
DISSDO
MODE16
SMP
CKE(1)
bit 15
bit 8
R/W-0
R/W-0
(2)
CKP
SSEN
R/W-0
R/W-0
MSTEN
R/W-0
R/W-0
R/W-0
(3)
R/W-0
PPRE<1:0>(3)
SPRE<2:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-13
Unimplemented: Read as 0
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
Note 1:
2:
3:
The CKE bit is not used in the Framed SPI modes. Program this bit to 0 for the Framed SPI modes
(FRMEN = 1).
This bit must be cleared when FRMEN = 1.
Do not set both Primary and Secondary prescalers to a value of 1:1.
DS70283J-page 183
bit 4-2
bit 1-0
Note 1:
2:
3:
The CKE bit is not used in the Framed SPI modes. Program this bit to 0 for the Framed SPI modes
(FRMEN = 1).
This bit must be cleared when FRMEN = 1.
Do not set both Primary and Secondary prescalers to a value of 1:1.
DS70283J-page 184
R/W-0
R/W-0
R/W-0
U-0
U-0
U-0
U-0
U-0
FRMEN
SPIFSD
FRMPOL
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
U-0
FRMDLY
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
bit 13
bit 12-2
Unimplemented: Read as 0
bit 1
bit 0
DS70283J-page 185
DS70283J-page 186
INTER-INTEGRATED
CIRCUIT (I2C)
18.1
Operating Modes
18.2
I2C Registers
DS70283J-page 187
SCLx
Shift
Clock
I2CxRSR
LSb
SDAx
Address Match
Match Detect
Write
I2CxMSK
Write
Read
I2CxADD
Read
Start and Stop
Bit Detect
Write
Start and Stop
Bit Generation
Control Logic
I2CxSTAT
Collision
Detect
Read
Write
I2CxCON
Acknowledge
Generation
Read
Clock
Stretching
Write
I2CxTRN
LSb
Read
Shift Clock
Reload
Control
Write
I2CxBRG
Read
TCY/2
DS70283J-page 188
R/W-0
U-0
R/W-0
R/W-1 HC
R/W-0
R/W-0
R/W-0
R/W-0
I2CEN
I2CSIDL
SCLREL
IPMIEN
A10M
DISSLW
SMEN
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0 HC
R/W-0 HC
R/W-0 HC
R/W-0 HC
R/W-0 HC
GCEN
STREN
ACKDT
ACKEN
RCEN
PEN
RSEN
SEN
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
HS = Set in hardware
HC = Cleared in hardware
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
bit 7
bit 6
STREN: SCLx Clock Stretch Enable bit (when operating as I2C slave)
Used in conjunction with SCLREL bit.
1 = Enable software or receive clock stretching
0 = Disable software or receive clock stretching
DS70283J-page 189
bit 5
ACKDT: Acknowledge Data bit (when operating as I2C master, applicable during master receive)
Value that will be transmitted when the software initiates an Acknowledge sequence.
1 = Send NACK during Acknowledge
0 = Send ACK during Acknowledge
bit 4
bit 3
bit 2
bit 1
RSEN: Repeated Start Condition Enable bit (when operating as I2C master)
1 = Initiate Repeated Start condition on SDAx and SCLx pins. Hardware clear at end of
master Repeated Start sequence
0 = Repeated Start condition not in progress
bit 0
DS70283J-page 190
R-0 HSC
R-0 HSC
U-0
U-0
U-0
R/C-0 HS
R-0 HSC
R-0 HSC
ACKSTAT
TRSTAT
BCL
GCSTAT
ADD10
bit 15
bit 8
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
R_W
RBF
TBF
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
HS = Set in hardware
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
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
Hardware set at beginning of master transmission. Hardware clear at end of slave Acknowledge.
bit 13-11
Unimplemented: Read as 0
bit 10
bit 9
bit 8
bit 7
bit 6
bit 5
bit 4
P: Stop bit
1 = Indicates that a Stop bit has been detected last
0 = Stop bit was not detected last
Hardware set or clear when Start, Repeated Start or Stop detected.
DS70283J-page 191
bit 3
S: Start bit
1 = Indicates that a Start (or Repeated Start) bit has been detected last
0 = Start bit was not detected last
Hardware set or clear when Start, Repeated Start or Stop detected.
bit 2
bit 1
bit 0
DS70283J-page 192
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
AMSK9
AMSK8
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
AMSK7
AMSK6
AMSK5
AMSK4
AMSK3
AMSK2
AMSK1
AMSK0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-10
Unimplemented: Read as 0
bit 9-0
DS70283J-page 193
DS70283J-page 194
UNIVERSAL ASYNCHRONOUS
RECEIVER TRANSMITTER
(UART)
FIGURE 19-1:
IrDA
UxRTS/BCLK
UxCTS
UART Receiver
UxRX
UART Transmitter
UxTX
DS70283J-page 195
UARTEN(1)
R/W-0
R/W-0
R/W-0
U-0
USIDL
IREN(2)
RTSMD
R/W-0
R/W-0
UEN<1:0>
bit 15
bit 8
R/W-0 HC
R/W-0
R/W-0, HC
R/W-0
R/W-0
WAKE
LPBACK
ABAUD
URXINV
BRGH
R/W-0
R/W-0
PDSEL<1:0>
R/W-0
STSEL
bit 7
bit 0
Legend:
HC = Hardware Clearable
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12
bit 11
bit 10
Unimplemented: Read as 0
bit 9-8
bit 7
WAKE: Wake-up on Start bit Detect During Sleep Mode Enable bit
1 = UARTx will continue to sample the UxRX pin; interrupt generated on falling edge; bit cleared
in hardware on following rising edge
0 = No wake-up enabled
bit 6
bit 5
bit 4
Note 1:
2:
Refer to Section 17. UART (DS70188) in the dsPIC33F/PIC24H Family Reference Manual for
information on enabling the UART module for receive or transmit operation.
This feature is only available for the 16x BRG mode (BRGH = 0).
DS70283J-page 196
bit 3
bit 2-1
bit 0
Note 1:
2:
Refer to Section 17. UART (DS70188) in the dsPIC33F/PIC24H Family Reference Manual for
information on enabling the UART module for receive or transmit operation.
This feature is only available for the 16x BRG mode (BRGH = 0).
DS70283J-page 197
UTXISEL1
UTXINV
R/W-0
UTXISEL0
U-0
R/W-0 HC
R/W-0
R-0
R-1
UTXBRK
UTXEN(1)
UTXBF
TRMT
bit 15
bit 8
R/W-0
R/W-0
URXISEL<1:0>
R/W-0
R-1
R-0
R-0
R/C-0
R-0
ADDEN
RIDLE
PERR
FERR
OERR
URXDA
bit 7
bit 0
Legend:
HC = Hardware cleared
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15,13
bit 14
bit 12
Unimplemented: Read as 0
bit 11
bit 10
bit 9
bit 8
bit 7-6
Note 1:
Refer to Section 17. UART (DS70188) in the dsPIC33F/PIC24H Family Reference Manual for
information on enabling the UART module for transmit operation.
DS70283J-page 198
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
Note 1:
Refer to Section 17. UART (DS70188) in the dsPIC33F/PIC24H Family Reference Manual for
information on enabling the UART module for transmit operation.
DS70283J-page 199
DS70283J-page 200
10-BIT/12-BIT
ANALOG-TO-DIGITAL
CONVERTER (ADC)
20.2
ADC Initialization
2.
Note:
1.
3.
20.1
Key Features
5.
6.
7.
8.
Select
port
pins
as
analog
inputs
(AD1PCFGH<15:0> or AD1PCFGL<15:0>).
Select voltage reference source to match
expected
range
on
analog
inputs
(AD1CON2<15:13>).
Select the analog conversion clock to match the
desired data rate with the processor clock
(AD1CON3<7:0>).
Determine how many sample-and-hold channels will be used (AD1CON2<9:8> and
AD1PCFGH<15:0> or AD1PCFGL<15:0>).
Select the appropriate sample/conversion
sequence
(AD1CON1<7:5>
and
AD1CON3<12:8>).
Select the way conversion results are presented
in the buffer (AD1CON1<9:8>).
Turn on the ADC module (AD1CON1<15>).
Configure ADC interrupt (if required):
a) Clear the AD1IF bit.
b) Select the ADC interrupt priority.
DS70283J-page 201
CHANNEL
SCAN
CH0SA<4:0>
CH0
CH0SB<4:0>
CSCNA
AN1
VREFL
CH0NA CH0NB
AN0
(1)
AN3
AVSS
S/H1
+
-
CH123SA CH123SB
CH1(2)
AN6
VCFG<2:0>
ADC1BUF0
VREFL
ADC1BUF1
ADC1BUF2
VREFH
VREFL
CH123NA CH123NB
SAR ADC
AN1
AN4
S/H2
CH123SA CH123SB
CH2(2)
ADC1BUFE
ADC1BUFF
AN7
VREFL
CH123NA CH123NB
AN2
AN5
S/H3
+
CH123SA CH123SB
CH3(2)
AN8
VREFL
CH123NA CH123NB
Alternate
Input Selection
Note
1:
2:
DS70283J-page 202
CHANNEL
SCAN
CH0SA<4:0>
CH0
CH0SB<4:0>
CSCNA
AN1
VREFL
CH0NA CH0NB
AN0
AN3
S/H1
+
-
CH123SA CH123SB
CH1(2)
VCFG<2:0>
ADC1BUF0
VREFL
ADC1BUF1
ADC1BUF2
VREFH
VREFL
CH123NA CH123NB
SAR ADC
AN1
AN4
S/H2
CH123SA CH123SB
CH2
ADC1BUFE
ADC1BUFF
(2)
VREFL
CH123NA CH123NB
AN2
AN5
S/H3
+
CH123SA CH123SB
CH3(2)
VREFL
CH123NA CH123NB
Alternate
Input Selection
Note
1:
2:
DS70283J-page 203
ADC Internal
RC Clock(2)
TAD
AD1CON3<5:0>
TOSC(1)
X2
TCY
ADC Conversion
Clock Multiplier
1, 2, 3, 4, 5,..., 64
Note 1:
2:
Refer to Figure 8-2 for the derivation of FOSC when the PLL is enabled. If the PLL is not used, FOSC is equal
to the clock frequency. TOSC = 1/FOSC.
See the ADC Electrical Characteristics for the exact RC clock value.
DS70283J-page 204
R/W-0
U-0
R/W-0
U-0
U-0
R/W-0
ADON
ADSIDL
AD12B
R/W-0
R/W-0
FORM<1:0>
bit 15
bit 8
R/W-0
R/W-0
R/W-0
SSRC<2:0>
U-0
R/W-0
R/W-0
R/W-0
HC,HS
R/C-0
HC, HS
SIMSAM
ASAM
SAMP
DONE
bit 7
bit 0
Legend:
HC = Cleared by hardware
HS = Set by hardware
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15
bit 14
Unimplemented: Read as 0
bit 13
bit 12-11
Unimplemented: Read as 0
bit 10
bit 9-8
bit 7-5
bit 4
Unimplemented: Read as 0
bit 3
SIMSAM: Simultaneous Sample Select bit (applicable only when CHPS<1:0> = 01 or 1x)
When AD12B = 1, SIMSAM is: U-0, Unimplemented, Read as 0
1 = Samples CH0, CH1, CH2, CH3 simultaneously (when CHPS<1:0> = 1x); or
Samples CH0 and CH1 simultaneously (when CHPS<1:0> = 01)
0 = Samples multiple channels individually in sequence
DS70283J-page 205
bit 2
bit 1
bit 0
DS70283J-page 206
R/W-0
VCFG<2:0>
U-0
U-0
R/W-0
CSCNA
R/W-0
R/W-0
CHPS<1:0>
bit 15
bit 8
R-0
U-0
BUFS
R/W-0
R/W-0
R/W-0
R/W-0
SMPI<3:0>
R/W-0
R/W-0
BUFM
ALTS
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-13
x = Bit is unknown
000
001
010
011
1xx
ADREF+
ADREF-
AVDD
External VREF+
AVDD
External VREF+
AVDD
AVSS
AVSS
External VREFExternal VREFAVSS
bit 12-11
Unimplemented: Read as 0
bit 10
bit 9-8
bit 7
bit 6
Unimplemented: Read as 0
bit 5-2
0001 = Interrupts at the completion of conversion for each 2nd sample/convert sequence
0000 = Interrupts at the completion of conversion for each sample/convert sequence
bit 1
bit 0
DS70283J-page 207
ADRC
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
SAMC<4:0>(1)
bit 15
bit 8
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
ADCS<7:0>(2)
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14-13
Unimplemented: Read as 0
bit 12-8
00001 = 1 TAD
00000 = 0 TAD
bit 7-0
01000000 = Reserved
00111111 = TCY (ADCS<7:0> + 1) = 64 TCY = TAD
Note 1:
2:
x = Bit is unknown
DS70283J-page 208
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
CH123NB<1:0>
R/W-0
CH123SB
bit 15
bit 8
U-0
U-0
U-0
U-0
U-0
R/W-0
R/W-0
CH123NA<1:0>
R/W-0
CH123SA
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-11
Unimplemented: Read as 0
bit 10-9
x = Bit is unknown
If AD12B = 0:
11 = Reserved
10 = Reserved
01 = CH1, CH2, CH3 negative input is VREF00 = CH1, CH2, CH3 negative input is VREFdsPIC33FJ32MC204 and dsPIC33FJ16MC304 devices only:
If AD12B = 1:
11 = Reserved
10 = Reserved
01 = Reserved
00 = Reserved
If AD12B = 0:
11 = Reserved
10 = CH1 negative input is AN6, CH2 negative input is AN7, CH3 negative input is AN8
01 = CH1, CH2, CH3 negative input is VREF00 = CH1, CH2, CH3 negative input is VREFbit 8
bit 7-3
Unimplemented: Read as 0
DS70283J-page 209
bit 0
DS70283J-page 210
R/W-0
U-0
U-0
CH0NB
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
CH0SB<4:0>
bit 15
bit 8
R/W-0
U-0
U-0
CH0NA
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
CH0SA<4:0>
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15
bit 14-13
Unimplemented: Read as 0
bit 12-8
x = Bit is unknown
bit 6-5
Unimplemented: Read as 0
bit 4-0
DS70283J-page 211
REGISTER 20-6:
U-0
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
CSS8
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
CSS7
CSS6
CSS5
CSS4
CSS3
CSS2
CSS1
CSS0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
bit 15-9
Unimplemented: Read as 0
bit 8-0
x = Bit is unknown
Note 1: On devices without 9 analog inputs, all AD1CSSL bits can be selected by the user application. However,
inputs selected for scan without a corresponding input on device converts VREFL.
2: CSSx = ANx, where x = 0 through 8.
REGISTER 20-7:
U-0
U-0
U-0
U-0
U-0
U-0
U-0
R/W-0
PCFG8
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PCFG7
PCFG6
PCFG5
PCFG4
PCFG3
PCFG2
PCFG1
PCFG0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
-n = Value at POR
1 = Bit is set
0 = Bit is cleared
x = Bit is unknown
bit 15-9
Unimplemented: Read as 0
bit 8-0
Note 1:
2:
3:
On devices without 9 analog inputs, all PCFG bits are R/W by user software. However, the PCFG bits are
ignored on ports without a corresponding input on device.
PCFGx = ANx, where x = 0 through 8.
The PCFGx bits have no effect if the ADC module is disabled by setting ADxMD bit in the PMDx Register.
In this case, all port pins multiplexed with ANx will be in Digital mode.
DS70283J-page 212
SPECIAL FEATURES
Note:
21.1
Flexible configuration
Watchdog Timer (WDT)
Code Protection and CodeGuard Security
JTAG Boundary Scan Interface
In-Circuit Serial Programming (ICSP)
In-Circuit emulation
TABLE 21-1:
Address
Configuration Bits
Bit 7
Bit 6
Bit 5
Bit 4
0xF80000 FBS
0xF80002 RESERVED
IESO
0xF80004 FGS
0xF80006 FOSCSEL
0xF80008 FOSC
FCKSM<1:0>
0xF8000A FWDT
FWDTEN WINDIS
0xF8000C FPOR
PWMPIN
0xF8000E FICD
HPOL
Reserved(1)
Bit 3
Bit 2
BSS<2:0>
Bit 0
BWRP
GSS<1:0>
IOL1WAY
Bit 1
GWRP
FNOSC<2:0>
WDTPRE
LPOL
ALTI2C
JTAGEN
OSCIOFNC POSCMD<1:0>
WDTPOST<3:0>
0xF80010 FUID0
0xF80012 FUID1
0xF80014 FUID2
0xF80016 FUID3
FPWRT<2:0>
ICS<1:0>
DS70283J-page 213
Bit Field
Register
Description
BWRP
FBS
BSS<2:0>
FBS
BSS<2:0>
FBS
GSS<1:0>
FGS
GWRP
FGS
IESO
FNOSC<2:0>
DS70283J-page 214
If clock
switch is
enabled,
RTSP
effect is
on any
device
Reset;
otherwise,
Immediate
Bit Field
Register
FCKSM<1:0>
FOSC
IOL1WAY
FOSC
OSCIOFNC
FOSC
POSCMD<1:0>
FOSC
FWDTEN
FWDT
WINDIS
FWDT
WDTPRE
FWDT
WDTPOST<3:0>
FWDT
0001 = 1:2
0000 = 1:1
PWMPIN
FPOR
Description
DS70283J-page 215
Bit Field
Register
HPOL
FPOR
LPOL
FPOR
FPWRT<2:0>
FPOR
ALTI2C
FPOR
JTAGEN
FICD
ICS<1:0>
FICD
DS70283J-page 216
Description
The
dsPIC33FJ32MC202/204
and
dsPIC33FJ16MC304 devices power their core digital
logic at a nominal 2.5V. This can create a conflict for
designs that are required to operate at a higher typical
voltage, such as 3.3V. To simplify system design, all
devices in the dsPIC33FJ32MC202/204 and
dsPIC33FJ16MC304 family incorporate an on-chip
regulator that allows the device to run its core logic from
VDD.
The regulator provides power to the core from the other
VDD pins. When the regulator is enabled, a low-ESR
(less than 5 ohms) capacitor (such as tantalum or
ceramic) must be connected to the VCAP pin
(Figure 21-1). This helps to maintain the stability of the
regulator. The recommended value for the filter capacitor is provided in Table 24-13 located in Section 24.1
DC Characteristics.
Note:
FIGURE 21-1:
21.3
3.3V
dsPIC33F
VDD
VCAP
CEFC
10 F
Note 1:
2:
3:
VSS
DS70283J-page 217
21.4.2
For
dsPIC33FJ32MC202/204
and
dsPIC33FJ16MC304 devices, the WDT is driven by the
LPRC oscillator. When the WDT is enabled, the clock
source is also enabled.
21.4.1
PRESCALER/POSTSCALER
21.4.3
ENABLING WDT
FIGURE 21-2:
Watchdog Timer
Sleep/Idle
WDTPRE
WDTPOST<3:0>
WDT
Wake-up
SWDTEN
FWDTEN
RS
Prescaler
(divide by N1)
LPRC Clock
RS
Postscaler
(divide by N2)
0
WINDIS
WDT
Reset
CLRWDT Instruction
DS70283J-page 218
JTAG Interface
21.7
In-Circuit Debugger
21.6
DS70283J-page 219
When coupled with software encryption libraries, CodeGuard Security can be used to securely update Flash
even when multiple IPs reside on the single chip.
The
dsPIC33FJ32MC202/204
and
dsPIC33FJ16MC304 devices offer the intermediate
implementation of CodeGuard Security. CodeGuard
Security enables multiple parties to securely share
resources (memory, interrupts and peripherals) on a
single chip. This feature helps protect individual
Intellectual Property in collaborative system designs.
TABLE 21-3:
CONFIG BITS
BSS<2:0> = x11
GS = 11008 IW
VS = 256 IW
BSS<2:0> = x10
BS = 768 IW
256
GS = 10240 IW
VS = 256 IW
BSS<2:0> = x01
BS = 3840 IW
768
GS = 7168 IW
VS = 256 IW
BSS<2:0> = x00
BS = 7936 IW
1792
GS = 3072 IW
DS70283J-page 220
TABLE 21-4:
CONFIG BITS
VS = 256 IW
0K
000000h
0001FEh
000200h
0007FEh
000800h
001FFEh
002000h
003FFEh
004000h
0057FEh
000000h
0001FEh
000200h
0007FEh
000800h
001FFEh
002000h
003FFEh
004000h
VS = 256 IW
BSS<2:0> = x11
0K
002BFEh
VS = 256 IW
BSS<2:0> = x10
GS = 4608 IW
VS = 256 IW
BSS<2:0> = x01
0057FEh
BS = 3840 IW
768
GS = 1536 IW
0057FEh
000000h
0001FEh
000200h
0007FEh
000800h
001FFEh
002000h
003FFEh
004000h
BS = 768 IW
256
0057FEh
000000h
0001FEh
000200h
0007FEh
000800h
001FFEh
002000h
003FFEh
004000h
GS = 5376 IW
000000h
0001FEh
000200h
0007FEh
000800h
001FFEh
002000h
VS = 256 IW
BSS<2:0> = x00
1792
BS = 5376 IW
000000h
0001FEh
000200h
0007FEh
000800h
001FFEh
002000h
002BFEh
000000h
0001FEh
000200h
0007FEh
000800h
001FFEh
002000h
002BFEh
000000h
0001FEh
000200h
0007FEh
000800h
001FFEh
002000h
002BFEh
simple
DS70283J-page 221
TABLE 22-1:
Field
#text
Description
Means literal defined by text
(text)
[text]
{ }
<n:m>
.b
.d
.S
.w
Acc
AWB
bit4
C, DC, N, OV, Z
MCU Status bits: Carry, Digit Carry, Negative, Overflow, Sticky Zero
Expr
lit1
lit4
lit5
lit8
lit10
10-bit unsigned literal {0...255} for Byte mode, {0:1023} for Word mode
lit14
lit16
lit23
None
DSP Status bits: ACCA Overflow, ACCB Overflow, ACCA Saturate, ACCB Saturate
PC
Program Counter
Slit10
Slit16
Slit6
Wb
Wd
Wdo
Destination W register
{ Wnd, [Wnd], [Wnd++], [Wnd--], [++Wnd], [--Wnd], [Wnd+Wb] }
Wm,Wn
DS70283J-page 222
Field
Description
Wm*Wm
Wm*Wn
Wn
Wnd
Wns
WREG
Ws
Wso
Source W register
{ Wns, [Wns], [Wns++], [Wns--], [++Wns], [--Wns], [Wns+Wb] }
Wx
Wxd
Wy
Wyd
DS70283J-page 223
Assembly
Mnemonic
ADD
ADDC
AND
ASR
Assembly Syntax
# of
# of
Words Cycles
Description
Status Flags
Affected
ADD
Acc
Add Accumulators
ADD
f = f + WREG
OA,OB,SA,SB
C,DC,N,OV,Z
ADD
f,WREG
WREG = f + WREG
C,DC,N,OV,Z
ADD
#lit10,Wn
Wd = lit10 + Wd
C,DC,N,OV,Z
ADD
Wb,Ws,Wd
Wd = Wb + Ws
C,DC,N,OV,Z
ADD
Wb,#lit5,Wd
Wd = Wb + lit5
C,DC,N,OV,Z
OA,OB,SA,SB
ADD
Wso,#Slit4,Acc
ADDC
f = f + WREG + (C)
C,DC,N,OV,Z
ADDC
f,WREG
C,DC,N,OV,Z
ADDC
#lit10,Wn
Wd = lit10 + Wd + (C)
C,DC,N,OV,Z
ADDC
Wb,Ws,Wd
Wd = Wb + Ws + (C)
C,DC,N,OV,Z
ADDC
Wb,#lit5,Wd
Wd = Wb + lit5 + (C)
C,DC,N,OV,Z
AND
f = f .AND. WREG
N,Z
AND
f,WREG
N,Z
AND
#lit10,Wn
Wd = lit10 .AND. Wd
N,Z
AND
Wb,Ws,Wd
Wd = Wb .AND. Ws
N,Z
AND
Wb,#lit5,Wd
Wd = Wb .AND. lit5
N,Z
ASR
C,N,OV,Z
ASR
f,WREG
C,N,OV,Z
ASR
Ws,Wd
C,N,OV,Z
ASR
Wb,Wns,Wnd
N,Z
ASR
Wb,#lit5,Wnd
N,Z
f,#bit4
Bit Clear f
None
None
BCLR
BCLR
BCLR
Ws,#bit4
Bit Clear Ws
BRA
BRA
C,Expr
Branch if Carry
1 (2)
None
BRA
GE,Expr
1 (2)
None
BRA
GEU,Expr
1 (2)
None
BRA
GT,Expr
1 (2)
None
BRA
GTU,Expr
1 (2)
None
BRA
LE,Expr
1 (2)
None
BRA
LEU,Expr
1 (2)
None
BRA
LT,Expr
1 (2)
None
BRA
LTU,Expr
1 (2)
None
BRA
N,Expr
Branch if Negative
1 (2)
None
BRA
NC,Expr
1 (2)
None
BRA
NN,Expr
1 (2)
None
BRA
NOV,Expr
1 (2)
None
BRA
NZ,Expr
1 (2)
None
BRA
OA,Expr
1 (2)
None
BRA
OB,Expr
1 (2)
None
BRA
OV,Expr
Branch if Overflow
1 (2)
None
BSET
BSW
BRA
SA,Expr
1 (2)
None
BRA
SB,Expr
1 (2)
None
BRA
Expr
Branch Unconditionally
None
BRA
Z,Expr
Branch if Zero
1 (2)
None
BRA
Wn
Computed Branch
None
BSET
f,#bit4
Bit Set f
None
BSET
Ws,#bit4
Bit Set Ws
None
BSW.C
Ws,Wb
None
BSW.Z
Ws,Wb
None
DS70283J-page 224
10
11
12
13
Assembly
Mnemonic
BTG
BTSC
BTSS
BTST
BTSTS
Assembly Syntax
Description
# of
# of
Words Cycles
Status Flags
Affected
BTG
f,#bit4
Bit Toggle f
None
BTG
Ws,#bit4
Bit Toggle Ws
None
BTSC
f,#bit4
1
(2 or 3)
None
BTSC
Ws,#bit4
1
(2 or 3)
None
BTSS
f,#bit4
1
(2 or 3)
None
BTSS
Ws,#bit4
1
(2 or 3)
None
BTST
f,#bit4
Bit Test f
BTST.C
Ws,#bit4
Bit Test Ws to C
BTST.Z
Ws,#bit4
Bit Test Ws to Z
BTST.C
Ws,Wb
C
Z
BTST.Z
Ws,Wb
BTSTS
f,#bit4
BTSTS.C
Ws,#bit4
BTSTS.Z
Ws,#bit4
14
CALL
CALL
lit23
Call subroutine
None
CALL
Wn
None
15
CLR
CLR
f = 0x0000
None
CLR
WREG
WREG = 0x0000
None
CLR
Ws
Ws = 0x0000
None
CLR
Acc,Wx,Wxd,Wy,Wyd,AWB
Clear Accumulator
OA,OB,SA,SB
16
CLRWDT
CLRWDT
WDTO,Sleep
17
COM
COM
f=f
N,Z
COM
f,WREG
WREG = f
N,Z
COM
Ws,Wd
Wd = Ws
N,Z
CP
C,DC,N,OV,Z
CP
Wb,#lit5
C,DC,N,OV,Z
CP
Wb,Ws
C,DC,N,OV,Z
CP0
C,DC,N,OV,Z
CP0
Ws
C,DC,N,OV,Z
CPB
C,DC,N,OV,Z
CPB
Wb,#lit5
C,DC,N,OV,Z
CPB
Wb,Ws
C,DC,N,OV,Z
18
19
20
CP
CP0
CPB
21
CPSEQ
CPSEQ
Wb, Wn
1
(2 or 3)
None
22
CPSGT
CPSGT
Wb, Wn
1
(2 or 3)
None
23
CPSLT
CPSLT
Wb, Wn
1
(2 or 3)
None
24
CPSNE
CPSNE
Wb, Wn
1
(2 or 3)
None
25
DAW
DAW
Wn
Wn = decimal adjust Wn
26
DEC
DEC
f=f-1
C,DC,N,OV,Z
DEC
f,WREG
WREG = f - 1
C,DC,N,OV,Z
DEC
Ws,Wd
Wd = Ws - 1
C,DC,N,OV,Z
DEC2
f=f-2
C,DC,N,OV,Z
DEC2
f,WREG
WREG = f - 2
C,DC,N,OV,Z
DEC2
Ws,Wd
Wd = Ws - 2
C,DC,N,OV,Z
DISI
#lit14
None
27
28
DEC2
DISI
DS70283J-page 225
Assembly
Mnemonic
DIV
Assembly Syntax
# of
# of
Words Cycles
Description
Status Flags
Affected
DIV.S
Wm,Wn
18
N,Z,C,OV
DIV.SD
Wm,Wn
18
N,Z,C,OV
DIV.U
Wm,Wn
18
N,Z,C,OV
DIV.UD
Wm,Wn
18
N,Z,C,OV
18
N,Z,C,OV
None
30
DIVF
DIVF
31
DO
DO
#lit14,Expr
DO
Wn,Expr
None
Wm,Wn
32
ED
ED
Wm*Wm,Acc,Wx,Wy,Wxd
OA,OB,OAB,
SA,SB,SAB
33
EDAC
EDAC
Wm*Wm,Acc,Wx,Wy,Wxd
Euclidean Distance
OA,OB,OAB,
SA,SB,SAB
34
EXCH
EXCH
Wns,Wnd
None
35
FBCL
FBCL
Ws,Wnd
36
FF1L
FF1L
Ws,Wnd
37
FF1R
FF1R
Ws,Wnd
38
GOTO
GOTO
Expr
Go to address
None
GOTO
Wn
Go to indirect
None
INC
f=f+1
C,DC,N,OV,Z
INC
f,WREG
WREG = f + 1
C,DC,N,OV,Z
C,DC,N,OV,Z
39
40
41
INC
INC2
IOR
INC
Ws,Wd
Wd = Ws + 1
INC2
f=f+2
C,DC,N,OV,Z
INC2
f,WREG
WREG = f + 2
C,DC,N,OV,Z
C,DC,N,OV,Z
INC2
Ws,Wd
Wd = Ws + 2
IOR
f = f .IOR. WREG
N,Z
IOR
f,WREG
N,Z
IOR
#lit10,Wn
Wd = lit10 .IOR. Wd
N,Z
IOR
Wb,Ws,Wd
Wd = Wb .IOR. Ws
N,Z
IOR
Wb,#lit5,Wd
Wd = Wb .IOR. lit5
N,Z
OA,OB,OAB,
SA,SB,SAB
42
LAC
LAC
Wso,#Slit4,Acc
Load Accumulator
43
LNK
LNK
#lit14
None
44
LSR
LSR
C,N,OV,Z
LSR
f,WREG
C,N,OV,Z
LSR
Ws,Wd
C,N,OV,Z
LSR
Wb,Wns,Wnd
N,Z
LSR
Wb,#lit5,Wnd
N,Z
MAC
Wm*Wn,Acc,Wx,Wxd,Wy,Wyd
,
AWB
OA,OB,OAB,
SA,SB,SAB
MAC
Wm*Wm,Acc,Wx,Wxd,Wy,Wyd
OA,OB,OAB,
SA,SB,SAB
MOV
f,Wn
Move f to Wn
None
MOV
Move f to f
N,Z
MOV
f,WREG
Move f to WREG
None
45
46
47
MAC
MOV
MOVSAC
MOV
#lit16,Wn
None
MOV.b
#lit8,Wn
None
MOV
Wn,f
Move Wn to f
None
MOV
Wso,Wdo
Move Ws to Wd
None
MOV
WREG,f
None
Move WREG to f
MOV.D
Wns,Wd
None
MOV.D
Ws,Wnd
None
None
MOVSAC
DS70283J-page 226
Acc,Wx,Wxd,Wy,Wyd,AWB
Assembly
Mnemonic
MPY
Assembly Syntax
Description
# of
# of
Words Cycles
Status Flags
Affected
MPY
Wm*Wn,Acc,Wx,Wxd,Wy,Wyd
Multiply Wm by Wn to Accumulator
OA,OB,OAB,
SA,SB,SAB
MPY
Wm*Wm,Acc,Wx,Wxd,Wy,Wyd
Square Wm to Accumulator
OA,OB,OAB,
SA,SB,SAB
49
MPY.N
MPY.N
Wm*Wn,Acc,Wx,Wxd,Wy,Wyd
None
50
MSC
MSC
Wm*Wm,Acc,Wx,Wxd,Wy,Wyd
,
AWB
OA,OB,OAB,
SA,SB,SAB
51
MUL
MUL.SS
Wb,Ws,Wnd
None
MUL.SU
Wb,Ws,Wnd
None
MUL.US
Wb,Ws,Wnd
None
MUL.UU
Wb,Ws,Wnd
None
MUL.SU
Wb,#lit5,Wnd
None
MUL.UU
Wb,#lit5,Wnd
None
MUL
W3:W2 = f * WREG
None
NEG
Acc
Negate Accumulator
OA,OB,OAB,
SA,SB,SAB
52
53
54
NEG
NOP
POP
NEG
f=f+1
C,DC,N,OV,Z
NEG
f,WREG
WREG = f + 1
C,DC,N,OV,Z
NEG
Ws,Wd
Wd = Ws + 1
C,DC,N,OV,Z
NOP
No Operation
None
NOPR
No Operation
None
POP
None
POP
Wdo
None
POP.D
Wnd
None
All
None
PUSH
Wso
None
PUSH.D
Wns
None
POP.S
55
PUSH
PUSH
None
WDTO,Sleep
Expr
Relative Call
None
Wn
Computed Call
None
REPEAT
#lit14
None
REPEAT
Wn
None
PUSH.S
56
PWRSAV
PWRSAV
57
RCALL
RCALL
RCALL
58
REPEAT
#lit1
59
RESET
RESET
None
60
RETFIE
RETFIE
3 (2)
None
61
RETLW
RETLW
3 (2)
None
62
RETURN
RETURN
3 (2)
None
63
RLC
RLC
C,N,Z
RLC
f,WREG
C,N,Z
RLC
Ws,Wd
C,N,Z
RLNC
N,Z
RLNC
f,WREG
N,Z
RLNC
Ws,Wd
N,Z
RRC
C,N,Z
RRC
f,WREG
C,N,Z
RRC
Ws,Wd
C,N,Z
64
65
RLNC
RRC
#lit10,Wn
DS70283J-page 227
67
Assembly
Mnemonic
RRNC
SAC
Assembly Syntax
# of
# of
Words Cycles
Description
Status Flags
Affected
RRNC
RRNC
f,WREG
N,Z
N,Z
RRNC
Ws,Wd
N,Z
SAC
Acc,#Slit4,Wdo
Store Accumulator
None
SAC.R
Acc,#Slit4,Wdo
None
Ws,Wnd
Wnd = sign-extended Ws
C,N,Z
None
68
SE
SE
69
SETM
SETM
f = 0xFFFF
SETM
WREG
WREG = 0xFFFF
None
SETM
Ws
Ws = 0xFFFF
None
SFTAC
Acc,Wn
OA,OB,OAB,
SA,SB,SAB
SFTAC
Acc,#Slit6
OA,OB,OAB,
SA,SB,SAB
SL
f = Left Shift f
C,N,OV,Z
SL
f,WREG
C,N,OV,Z
SL
Ws,Wd
Wd = Left Shift Ws
C,N,OV,Z
SL
Wb,Wns,Wnd
N,Z
SL
Wb,#lit5,Wnd
N,Z
SUB
Acc
Subtract Accumulators
OA,OB,OAB,
SA,SB,SAB
SUB
f = f - WREG
C,DC,N,OV,Z
SUB
f,WREG
WREG = f - WREG
C,DC,N,OV,Z
SUB
#lit10,Wn
Wn = Wn - lit10
C,DC,N,OV,Z
SUB
Wb,Ws,Wd
Wd = Wb - Ws
C,DC,N,OV,Z
SUB
Wb,#lit5,Wd
Wd = Wb - lit5
C,DC,N,OV,Z
SUBB
f = f - WREG - (C)
C,DC,N,OV,Z
SUBB
f,WREG
C,DC,N,OV,Z
SUBB
#lit10,Wn
Wn = Wn - lit10 - (C)
C,DC,N,OV,Z
70
71
72
73
74
75
76
SFTAC
SL
SUB
SUBB
SUBR
SUBBR
SWAP
SUBB
Wb,Ws,Wd
Wd = Wb - Ws - (C)
C,DC,N,OV,Z
SUBB
Wb,#lit5,Wd
Wd = Wb - lit5 - (C)
C,DC,N,OV,Z
SUBR
f = WREG - f
C,DC,N,OV,Z
SUBR
f,WREG
WREG = WREG - f
C,DC,N,OV,Z
SUBR
Wb,Ws,Wd
Wd = Ws - Wb
C,DC,N,OV,Z
C,DC,N,OV,Z
SUBR
Wb,#lit5,Wd
Wd = lit5 - Wb
SUBBR
f = WREG - f - (C)
C,DC,N,OV,Z
SUBBR
f,WREG
C,DC,N,OV,Z
SUBBR
Wb,Ws,Wd
Wd = Ws - Wb - (C)
C,DC,N,OV,Z
SUBBR
Wb,#lit5,Wd
Wd = lit5 - Wb - (C)
C,DC,N,OV,Z
SWAP.b
Wn
Wn = nibble swap Wn
None
SWAP
Wn
Wn = byte swap Wn
None
77
TBLRDH
TBLRDH
Ws,Wd
None
78
TBLRDL
TBLRDL
Ws,Wd
Read Prog<15:0> to Wd
None
79
TBLWTH
TBLWTH
Ws,Wd
None
80
TBLWTL
TBLWTL
Ws,Wd
Write Ws to Prog<15:0>
None
81
ULNK
ULNK
None
82
XOR
XOR
f = f .XOR. WREG
N,Z
XOR
f,WREG
N,Z
XOR
#lit10,Wn
Wd = lit10 .XOR. Wd
N,Z
XOR
Wb,Ws,Wd
Wd = Wb .XOR. Ws
N,Z
XOR
Wb,#lit5,Wd
Wd = Wb .XOR. lit5
N,Z
ZE
Ws,Wnd
Wnd = Zero-extend Ws
C,Z,N
83
ZE
DS70283J-page 228
DEVELOPMENT SUPPORT
23.1
DS70283J-page 229
23.3
23.4
MPASM Assembler
23.5
23.6
DS70283J-page 230
23.8
23.9
MPLAB ICD 3 In-Circuit Debugger System is Microchip's most cost effective high-speed hardware
debugger/programmer for Microchip Flash Digital Signal Controller (DSC) and microcontroller (MCU)
devices. It debugs and programs PIC Flash microcontrollers and dsPIC DSCs with the powerful, yet easyto-use graphical user interface of MPLAB Integrated
Development Environment (IDE).
The MPLAB ICD 3 In-Circuit Debugger probe is connected to the design engineer's PC using a high-speed
USB 2.0 interface and is connected to the target with a
connector compatible with the MPLAB ICD 2 or MPLAB
REAL ICE systems (RJ-11). MPLAB ICD 3 supports all
MPLAB ICD 2 headers.
DS70283J-page 231
23.13 Demonstration/Development
Boards, Evaluation Kits, and
Starter Kits
DS70283J-page 232
ELECTRICAL CHARACTERISTICS
DS70283J-page 233
DC Characteristics
TABLE 24-1:
Characteristic
DC5
TABLE 24-2:
VDD Range
(in Volts)
Temp Range
(in C)
3.0-3.6V
-40C to +85C
40
3.0-3.6V
-40C to +125C
40
dsPIC33FJ32MC202/204 and
dsPIC33FJ16MC304
Symbol
Min
Typ
Max
Unit
TJ
-40
+125
TA
-40
+85
TJ
-40
+140
TA
-40
+125
Power Dissipation:
Internal chip power dissipation:
PINT = VDD x (IDD - IOH)
PD
PINT + PI/O
PDMAX
(TJ - TA)/ JA
TABLE 24-3:
Symbol
JA
JA
JA
JA
JA
JA
Typ
Max
Unit
Notes
32
C/W
45
C/W
45
C/W
50
C/W
71
C/W
35
C/W
Junction to ambient thermal resistance, Theta-JA ( JA) numbers are achieved by package simulations.
DS70283J-page 234
DC CHARACTERISTICS
Param
Symbol
No.
Characteristic
Min
Typ(1)
Max
Units
3.0
3.6
Conditions
Operating Voltage
DC10
Supply Voltage
VDD
(2)
DC12
VDR
1.8
DC16
VPOR
VSS
DC17
SVDD
0.03
Note 1:
2:
DS70283J-page 235
DC CHARACTERISTICS
Parameter
No.
Typical(1)
Max
Units
Conditions
20
30
mA
-40C
DC20a
19
22
mA
+25C
DC20b
19
25
mA
+85C
DC20c
19
30
mA
+125C
DC21d
28
40
mA
-40C
DC21a
27
30
mA
+25C
DC21b
27
32
mA
+85C
DC21c
27
36
mA
+125C
DC22d
33
50
mA
-40C
DC22a
33
40
mA
+25C
DC22b
33
40
mA
+85C
DC22c
33
50
mA
+125C
DC23d
44
60
mA
-40C
DC23a
43
50
mA
+25C
DC23b
42
55
mA
+85C
DC23c
41
65
mA
+125C
DC24d
55
75
mA
-40C
DC24a
54
65
mA
+25C
DC24b
52
70
mA
+85C
DC24c
51
80
mA
+125C
Note 1:
2:
3:
3.3V
10 MIPS(3)
3.3V
16 MIPS(3)
3.3V
20 MIPS(3)
3.3V
30 MIPS(3)
3.3V
40 MIPS
DS70283J-page 236
DC CHARACTERISTICS
Parameter
No.
Typical(1)
Max
Units
Conditions
20
mA
-40C
DC40a
mA
+25C
DC40b
10
mA
+85C
DC40c
20
mA
+125C
DC41d
10
20
mA
-40C
DC41a
mA
+25C
DC41b
10
mA
+85C
DC41c
20
mA
+125C
DC42d
11
20
mA
-40C
DC42a
10
10
mA
+25C
DC42b
10
12
mA
+85C
DC42c
10
20
mA
+125C
DC43d
14
25
mA
-40C
DC43a
13
14
mA
+25C
DC43b
13
15
mA
+85C
DC43c
13
25
mA
+125C
DC44d
14
25
mA
-40C
DC44a
17
20
mA
+25C
DC44b
17
20
mA
+85C
DC44c
18
30
mA
+125C
Note 1:
2:
3:
3.3V
10 MIPS
3.3V
16 MIPS
3.3V
20 MIPS
3.3V
30 MIPS
3.3V
40 MIPS
DS70283J-page 237
DC CHARACTERISTICS
Parameter
No.
Typical(1)
Max
Units
Conditions
55
500
-40C
DC60a
63
300
+25C
DC60b
85
350
+85C
DC60c
146
600
+125C
DC61d
15
-40C
DC61a
+25C
DC61b
+85C
DC61c
+125C
Note 1:
2:
3:
4:
5:
3.3V
3.3V
TABLE 24-8:
DC CHARACTERISTICS
Parameter No.
Typical(1,2)
Max
Doze
Ratio
Units
DC73a
41
51
1:2
mA
DC73f
20
28
1:64
mA
DC73g
19
24
1:128
mA
DC70a
40
46
1:2
mA
DC70f
18
20
1:64
mA
DC70g
18
20
1:128
mA
DC71a
40
46
1:2
mA
DC71f
18
25
1:64
mA
DC71g
18
20
1:128
mA
DC72a
39
55
1:2
mA
DC72f
18
30
1:64
mA
DC72g
18
25
1:128
mA
Note 1:
2:
Conditions
-40C
3.3V
40 MIPS
+25C
3.3V
40 MIPS
+85C
3.3V
40 MIPS
+125C
3.3V
40 MIPS
DS70283J-page 238
DC CHARACTERISTICS
Param
Symbol
No.
VIL
Characteristic
Min
Typ(1)
Max
Units
Conditions
DI10
I/O pins
VSS
0.2 VDD
DI15
MCLR
VSS
0.2 VDD
DI16
VSS
0.2 VDD
DI18
SDAx, SCLx
VSS
0.3 VDD
SMBus disabled
SDAx, SCLx
VSS
0.8 V
SMBus enabled
DI19
VIH
DI20
0.7 VDD
0.7 VDD
VDD
5.5
V
V
DI28
SDAx, SCLx
0.7 VDD
5.5
SMBus disabled
SDAx, SCLx
2.1
5.5
SMBus enabled
50
250
400
DI29
ICNPU
DI30
Note 1:
2:
3:
4:
5:
6:
7:
8:
9:
DS70283J-page 239
DC CHARACTERISTICS
Param
Symbol
No.
IIL
Characteristic
Min
Typ(1)
Max
Units
Conditions
DI50
DI51
DI51a
DI51b
3.5
DI51c
DI55
MCLR
DI56
OSC1
Note 1:
2:
3:
4:
5:
6:
7:
8:
9:
DS70283J-page 240
DC CHARACTERISTICS
Param
Symbol
No.
IICL
Characteristic
DI60c
3:
4:
5:
6:
7:
8:
9:
Units
Conditions
-5(5,8)
mA
+5(6,7,8)
mA
-20(9)
+20(9)
mA
Absolute instantaneous
sum of all input injection
currents from all I/O pins
( | IICL + | IICH | ) IICT
Note 1:
2:
Max
DI60b
IICT
Typ(1)
DI60a
IICH
Min
DS70283J-page 241
DC CHARACTERISTICS
Param
Symbol
No.
VOL
DO10
DO16
VOH
Characteristic
Min
Typ
Max
Units
Conditions
I/O ports
0.4
OSC2/CLKO
0.4
DO20
I/O ports
2.40
DO26
OSC2/CLKO
2.41
Param
No.
Symbol
Min
Typ
Max
Units
Conditions
2.40
2.55
VDD
BO10
VBOR
Note 1:
Parameters are for design guidance only and are not tested in manufacturing.
DS70283J-page 242
DC CHARACTERISTICS
Param
Symbol
No.
Characteristic(3)
Min
Typ(1)
Max
10,000
Units
Conditions
EP
Cell Endurance
D131
VPR
VMIN
3.6
D132B
VPEW
VMIN
3.6
D134
TRETD
Characteristic Retention
20
D135
IDDP
10
mA
D136a
TRW
1.32
1.74
ms
D136b
TRW
1.28
1.79
ms
D137a
TPE
20.1
26.5
ms
D137b
TPE
19.5
27.3
ms
D138a
TWW
42.3
55.9
D138b
TWW
41.1
57.6
Note 1:
2:
3:
Note 1:
Symbol
CEFC
Characteristics
External Filter Capacitor
Value(1)
Min
Typ
Max
Units
4.7
10
Comments
Capacitor must be low
series resistance
(< 5 ohms)
DS70283J-page 243
AC CHARACTERISTICS
FIGURE 24-1:
VDD/2
CL
Pin
RL
VSS
CL
Pin
RL = 464
CL = 50 pF for all pins except OSC2
15 pF for OSC2 output
VSS
Characteristic
Min
Typ
Max
Units
Conditions
15
pF
COSC2
OSC2/SOSC2 pin
DO56
CIO
50
pF
EC mode
DO58
CB
SCLx, SDAx
400
pF
In I2C mode
DS70283J-page 244
Q2
Q3
Q4
Q1
Q2
OS30
OS30
Q3
Q4
OSC1
OS20
OS31
OS31
OS25
CLKO
OS41
OS40
AC CHARACTERISTICS
Param
No.
OS10
Symb
FIN
Min
Typ(1)
Max
Units
DC
40
MHz
EC
3.5
10
10
40
33
MHz
MHz
kHz
XT
HS
SOSC
12.5
DC
ns
25
DC
ns
0.375 x TOSC
0.625 x TOSC
ns
EC
Characteristic
OS20
TOSC
TOSC = 1/FOSC(4)
OS25
TCY
Conditions
OS30
TosL,
TosH
External Clock in
High or Low Time
OS31
TosR,
TosF
20
ns
EC
OS40
TckR
5.2
ns
5.2
ns
14
16
18
mA/V
Time(3,5)
OS41
TckF
CLKO Fall
OS42
GM
External Oscillator
Transconductance(6)
Note 1:
2:
3:
4:
5:
6:
VDD = 3.3V
TA = +25C
DS70283J-page 245
AC CHARACTERISTICS
Param
No.
OS50
FPLLI
OS51
FSYS
OS52
OS53
TLOCK
DCLK
Note 1:
2:
3:
Characteristic
Min
Typ(1)
Max
Units
0.8
MHz
100
200
MHz
0.9
-3
1.5
0.5
3.1
3
mS
%
Symbol
Conditions
ECPLL, XTPLL modes
Characteristic
Typ
Max
Units
Conditions
+2
%
-40C TA +85C
VDD = 3.0-3.6V
VDD = 3.0-3.6V
F20b
FRC
-5
+5
%
-40C TA +125C
Note 1: Frequency calibrated at 25C and 3.3V. TUN bits can be used to compensate for temperature drift.
Characteristic
Typ
Max
Units
Conditions
+40
%
-40C TA +125C
Note 1: Change of LPRC frequency as VDD changes.
2: LPRC impacts the Watchdog Timer Time-out Period (TWDT1). See Section 21.4 Watchdog Timer
(WDT) for more information.
DS70283J-page 246
I/O Pin
(Input)
DI35
DI40
I/O Pin
(Output)
New Value
Old Value
DO31
DO32
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(2)
Min
Typ(1)
Max
Units
Conditions
DO31
TIOR
10
25
ns
DO32
TIOF
10
25
ns
DI35
TINP
25
ns
DI40
TRBP
TCY
Note 1:
2:
DS70283J-page 247
VDD
SY12
MCLR
SY10
Internal
POR
SY11
PWRT
Time-out
OSC
Time-out
SY30
Internal
Reset
Watchdog
Timer
Reset
SY13
SY20
SY13
I/O Pins
SY35
FSCM
Delay
Note: Refer to Figure 24-1 for load conditions.
DS70283J-page 248
AC CHARACTERISTICS
Param
Symbol
No.
Characteristic
Min
Typ(2)
Max
Units
Conditions
SY10
TMCL
-40C to +85C
SY11
TPWRT
2
4
8
16
32
64
128
ms
-40C to +85C
User programmable
SY12
TPOR
10
30
-40C to +85C
SY13
TIOZ
0.68
0.72
1.2
SY20
TWDT1
ms
SY30
TOST
1024
TOSC
SY35
TFSCM
500
900
-40C to +85C
Note 1:
2:
3:
DS70283J-page 249
TxCK
Tx11
Tx10
Tx15
OS60
Tx20
TMRx
AC CHARACTERISTICS
Param
No.
TA10
TA11
Symbol
TTXH
TTXL
Characteristic(2)
TxCK High Time
Min
Typ
Max
Units
Conditions
Synchronous,
no prescaler
0.5 TCY + 20
ns
Synchronous,
with prescaler
10
ns
Asynchronous
10
ns
Synchronous,
no prescaler
0.5 TCY + 20
ns
Synchronous,
with prescaler
10
ns
Asynchronous
TA15
TTXP
OS60
Ft1
TA20
Note 1:
2:
10
ns
TCY + 40
ns
Greater of:
20 ns or
(TCY + 40)/N
N = prescale
value
(1, 8, 64, 256)
20
ns
DC
50
kHz
1.5 TCY
0.5 TCY
Timer1 is a Type A.
These parameters are characterized by similarity, but are not tested in manufacturing.
DS70283J-page 250
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ
Max
Units
Conditions
TB10
TtxH
Greater of:
20 or
(TCY + 20)/N
ns
TB11
TtxL
Greater of:
20 or
(TCY + 20)/N
ns
TB15
TtxP
TxCK
Input
Period
Greater of:
40 or
(2 TCY + 40)/N
ns
N = prescale
value
(1, 8, 64, 256)
TB20
1.75 TCY + 40
ns
Note 1:
Synchronous
mode
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ
Max
Units
Conditions
TC10
TtxH
TxCK High
Time
Synchronous
TCY + 20
ns
TC11
TtxL
TxCK Low
Time
Synchronous
TCY + 20
ns
TC15
TtxP
TxCK Input
Period
Synchronous,
with prescaler
2 TCY + 40
ns
N = prescale
value
(1, 8, 64, 256)
TC20
0.75 TCY + 40
1.75 TCY + 40
ns
Note 1:
DS70283J-page 251
QEB
TQ11
TQ10
TQ15
TQ20
POSCNT
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ
Max
Units
Conditions
TQ10
TtQH
Synchronous,
with prescaler
TCY + 20
ns
TQ11
TtQL
Synchronous,
with prescaler
TCY + 20
ns
TQ15
TtQP
TQCP Input
Period
Synchronous, 2 * TCY + 40
with prescaler
ns
TQ20
1.5 TCY
Note 1:
0.5 TCY
DS70283J-page 252
IC10
IC11
IC15
AC CHARACTERISTICS
Param
No.
Symbol
IC10
TccL
Characteristic(1)
ICx Input Low Time
Min
No Prescaler
TccH
No Prescaler
Note 1:
TccP
Conditions
ns
10
ns
0.5 TCY + 20
ns
10
ns
(TCY + 40)/N
ns
With Prescaler
IC15
Units
0.5 TCY + 20
With Prescaler
IC11
Max
N = prescale
value (1, 4, 16)
FIGURE 24-8:
OCx
(Output Compare
or PWM Mode)
OC10
OC11
Param
Symbol
No.
Characteristic(1)
Typ
Max
Units
Conditions
OC10
TccF
ns
OC11
TccR
ns
Note 1:
DS70283J-page 253
OC20
OCFA
OC15
Active
OCx
Tri-state
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ
Max
Units
Conditions
OC15
TFD
TCY + 20
ns
OC20
TFLT
TCY + 20
ns
Note 1:
DS70283J-page 254
FLTA
MP20
PWMx
FIGURE 24-11:
PWMx
Note: Refer to Figure 24-1 for load conditions.
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ
Max
Units
Conditions
MP10
TFPWM
ns
MP11
TRPWM
ns
TFD
50
ns
TFH
Minimum Pulse-Width
50
ns
MP20
MP30
Note 1:
DS70283J-page 255
QEA
(input)
TQ30
TQ31
TQ35
QEB
(input)
TQ41
TQ40
TQ30
TQ31
TQ35
QEB
Internal
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Max
Units
Conditions
6 TCY
ns
TQ30
TQUL
TQ31
TQUH
6 TCY
ns
TQ35
TQUIN
12 TCY
ns
TQ36
TQUP
3 TCY
ns
TQ40
TQUFL
3 * N * TCY
ns
TQ41
TQUFH
3 * N * TCY
ns
Note 1:
2:
3:
DS70283J-page 256
Typ(2)
QEA
(input)
QEB
(input)
Ungated
Index
TQ50
TQ51
Index Internal
TQ55
Position Counter Reset
AC CHARACTERISTICS
Param
No.
Symbol
TQ50
TqIL
TQ51
TQ55
Note 1:
2:
Characteristic(1)
Min
Max
Units
Conditions
3 * N * TCY
ns
TqiH
3 * N * TCY
ns
Tqidxr
3 TCY
ns
DS70283J-page 257
AC CHARACTERISTICS
Maximum
Data Rate
Master
Transmit Only
(Half-Duplex)
15 Mhz
Table 24-33
9 Mhz
9 Mhz
15 Mhz
11 Mhz
Slave
Transmit/Receive
(Full-Duplex)
CKE
Table 24-34
Table 24-35
15 Mhz
11 Mhz
FIGURE 24-14:
Master
Transmit/Receive
(Full-Duplex)
CKP
SMP
0,1
0,1
0,1
0,1
0,1
Table 24-36
Table 24-37
Table 24-38
Table 24-39
SCKx
(CKP = 0)
SP10
SP21
SP20
SP20
SP21
SCKx
(CKP = 1)
SP35
Bit 14 - - - - - -1
MSb
SDOx
SP30, SP31
LSb
SP30, SP31
FIGURE 24-15:
SCKx
(CKP = 0)
SP10
SP21
SP20
SP20
SP21
SCKx
(CKP = 1)
SP35
SDOx
MSb
Bit 14 - - - - - -1
LSb
SP30, SP31
Note: Refer to Figure 24-1 for load conditions.
DS70283J-page 258
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ(2)
Max
Units
Conditions
See Note 3
SP10
TscP
15
MHz
SP20
TscF
ns
SP21
TscR
ns
SP30
TdoF
ns
SP31
TdoR
ns
SP35
TscH2doV,
TscL2doV
20
ns
SP36
TdiV2scH,
TdiV2scL
30
ns
Note 1:
2:
3:
4:
DS70283J-page 259
SCKx
(CKP = 0)
SP10
SP21
SP20
SP20
SP21
SCKx
(CKP = 1)
SP35
Bit 14 - - - - - -1
MSb
SDOx
SP30, SP31
SP40
SDIx
LSb
MSb In
LSb In
Bit 14 - - - -1
SP41
TABLE 24-34: SPIx MASTER MODE (FULL-DUPLEX, CKE = 1, CKP = x, SMP = 1) TIMING
REQUIREMENTS
Standard Operating Conditions: 3.0V to 3.6V
(unless otherwise stated)
Operating temperature -40C TA +85C for Industrial
-40C TA +125C for Extended
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ(2)
Max
Units
Conditions
See Note 3
SP10
SP20
TscP
TscF
MHz
ns
SP21
TscR
ns
SP30
TdoF
ns
SP31
TdoR
ns
SP35
6
20
ns
TscL2doV SCKx Edge
TdoV2sc, SDOx Data Output Setup to
30
ns
ns
ns
TscL2diL
to SCKx Edge
These parameters are characterized, but are not tested in manufacturing.
Data in Typ column is at 3.3V, 25C unless otherwise stated.
The minimum clock period for SCKx is 111 ns. The clock generated in Master mode must not violate this
specification.
Assumes 50 pF load on all SPIx pins.
SP36
SP40
SP41
Note 1:
2:
3:
4:
DS70283J-page 260
SCKx
(CKP = 0)
SP10
SP21
SP20
SP20
SP21
SCKx
(CKP = 1)
SP35
MSb
SDOx
Bit 14 - - - - - -1
SP30, SP31
SDIx
MSb In
LSb
SP30, SP31
LSb In
Bit 14 - - - -1
SP40 SP41
Note: Refer to Figure 24-1 for load conditions.
TABLE 24-35: SPIx MASTER MODE (FULL-DUPLEX, CKE = 0, CKP = x, SMP = 1) TIMING
REQUIREMENTS
Standard Operating Conditions: 3.0V to 3.6V
(unless otherwise stated)
Operating temperature -40C TA +85C for Industrial
-40C TA +125C for Extended
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ(2)
Max
Units
Conditions
-40C to +125C and
see Note 3
See parameter DO32
and Note 4
See parameter DO31
and Note 4
See parameter DO32
and Note 4
See parameter DO31
and Note 4
SP10
TscP
MHz
SP20
TscF
ns
SP21
TscR
ns
SP30
TdoF
ns
SP31
TdoR
ns
SP35
6
20
ns
TscL2doV SCKx Edge
TdoV2scH, SDOx Data Output Setup to
30
ns
ns
ns
TscL2diL
to SCKx Edge
These parameters are characterized, but are not tested in manufacturing.
Data in Typ column is at 3.3V, 25C unless otherwise stated.
The minimum clock period for SCKx is 111 ns. The clock generated in Master mode must not violate this
specification.
Assumes 50 pF load on all SPIx pins.
SP36
SP40
SP41
Note 1:
2:
3:
4:
DS70283J-page 261
SSx
SP52
SP50
SCKx
(CKP = 0)
SP70
SP73
SP72
SP72
SP73
SCKx
(CKP = 1)
SP35
MSb
SDOx
Bit 14 - - - - - -1
LSb
SP30,SP31
SDI
SDIx
MSb In
Bit 14 - - - -1
SP51
LSb In
SP41
SP40
DS70283J-page 262
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ(2)
Max
Units
Conditions
See Note 3
SP70
SP72
TscP
TscF
15
MHz
ns
SP73
TscR
ns
SP30
TdoF
ns
SP31
TdoR
ns
SP35
TscH2doV,
TscL2doV
TdoV2scH,
TdoV2scL
TdiV2scH,
TdiV2scL
20
ns
30
ns
30
ns
SP41
TscH2diL,
TscL2diL
30
ns
SP50
TssL2scH,
TssL2scL
120
ns
SP51
TssH2doZ
10
50
ns
SP52
1.5 TCY + 40
ns
See Note 4
SP60
50
ns
SSx Edge
These parameters are characterized, but are not tested in manufacturing.
Data in Typ column is at 3.3V, 25C unless otherwise stated.
The minimum clock period for SCKx is 66.7 ns. Therefore, the SCK clock generated by the Master must
not violate this specification.
Assumes 50 pF load on all SPIx pins.
SP36
SP40
Note 1:
2:
3:
4:
DS70283J-page 263
SSx
SP52
SP50
SCKx
(CKP = 0)
SP70
SP73
SP72
SP72
SP73
SCKx
(CKP = 1)
SP35
SP52
MSb
SDOx
Bit 14 - - - - - -1
LSb
SP30,SP31
SDIx
SDI
MSb In
Bit 14 - - - -1
SP51
LSb In
SP41
SP40
Note: Refer to Figure 24-1 for load conditions.
DS70283J-page 264
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ(2)
Max
Units
Conditions
See Note 3
SP70
TscP
11
MHz
SP72
TscF
ns
SP73
TscR
ns
SP30
TdoF
ns
SP31
TdoR
ns
SP35
20
ns
SP36
30
ns
SP40
TdiV2scH,
TdiV2scL
30
ns
SP41
TscH2diL,
TscL2diL
30
ns
SP50
TssL2scH,
TssL2scL
120
ns
SP51
TssH2doZ
10
50
ns
SP52
1.5 TCY + 40
ns
See Note 4
SP60
50
ns
Note 1:
2:
3:
4:
DS70283J-page 265
SSX
SP52
SP50
SCKX
(CKP = 0)
SP70
SP73
SP72
SP72
SP73
SCKX
(CKP = 1)
SP35
MSb
SDOX
Bit 14 - - - - - -1
LSb
SP51
SP30,SP31
SDIX
MSb In
Bit 14 - - - -1
LSb In
SP41
SP40
Note: Refer to Figure 24-1 for load conditions.
DS70283J-page 266
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ(2)
Max
Units
Conditions
See Note 3
SP70
TscP
15
MHz
SP72
TscF
ns
SP73
TscR
ns
SP30
TdoF
ns
SP31
TdoR
ns
SP35
20
ns
SP36
30
ns
SP40
TdiV2scH,
TdiV2scL
30
ns
SP41
TscH2diL,
TscL2diL
30
ns
SP50
TssL2scH,
TssL2scL
120
ns
SP51
TssH2doZ
10
50
ns
SP52
1.5 TCY + 40
ns
See Note 4
Note 1:
2:
3:
4:
DS70283J-page 267
SSX
SP52
SP50
SCKX
(CKP = 0)
SP70
SP73
SP72
SP72
SP73
SCKX
(CKP = 1)
SP35
MSb
SDOX
Bit 14 - - - - - -1
LSb
SP51
SP30,SP31
SDIX
MSb In
Bit 14 - - - -1
LSb In
SP41
SP40
Note: Refer to Figure 24-1 for load conditions.
DS70283J-page 268
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic(1)
Min
Typ(2)
Max
Units
Conditions
See Note 3
SP70
TscP
11
MHz
SP72
TscF
ns
SP73
TscR
ns
SP30
TdoF
ns
SP31
TdoR
ns
SP35
20
ns
SP36
30
ns
SP40
TdiV2scH,
TdiV2scL
30
ns
SP41
TscH2diL,
TscL2diL
30
ns
SP50
TssL2scH,
TssL2scL
120
ns
SP51
TssH2doZ
10
50
ns
SP52
1.5 TCY + 40
ns
See Note 4
Note 1:
2:
3:
4:
DS70283J-page 269
SCLx
IM31
IM34
IM30
IM33
SDAx
Stop
Condition
Start
Condition
Note: Refer to Figure 24-1 for load conditions.
FIGURE 24-23:
IM21
IM11
IM10
SCLx
IM11
IM26
IM10
IM25
IM33
SDAx
In
IM40
IM40
IM45
SDAx
Out
Note: Refer to Figure 24-1 for load conditions.
DS70283J-page 270
AC CHARACTERISTICS
Param
Symbol
No.
IM10
IM11
IM20
IM21
IM25
IM26
IM30
IM31
IM33
IM34
IM40
IM45
IM50
IM51
Note 1:
2:
3:
4:
Characteristic(3)
Min(1)
Max
Units
Conditions
300
ns
CB is specified to be
Fall Time
from 10 to 400 pF
300
ns
400 kHz mode
20 + 0.1 CB
(2)
100
ns
1 MHz mode
TR:SCL SDAx and SCLx 100 kHz mode
1000
ns
CB is specified to be
Rise Time
from 10 to 400 pF
300
ns
400 kHz mode
20 + 0.1 CB
300
ns
1 MHz mode(2)
TSU:DAT Data Input
100 kHz mode
250
ns
Setup Time
400 kHz mode
100
ns
40
ns
1 MHz mode(2)
THD:DAT Data Input
100 kHz mode
0
Hold Time
400 kHz mode
0
0.9
s
0.2
s
1 MHz mode(2)
TSU:STA Start Condition 100 kHz mode TCY/2 (BRG + 1)
s
Only relevant for
Setup Time
Repeated Start
s
400 kHz mode TCY/2 (BRG + 1)
condition
(2)
TCY/2 (BRG + 1)
s
1 MHz mode
THD:STA Start Condition 100 kHz mode TCY/2 (BRG + 1)
s
After this period the
Hold Time
first clock pulse is
s
400 kHz mode TCY/2 (BRG + 1)
generated
s
1 MHz mode(2) TCY/2 (BRG + 1)
TSU:STO Stop Condition 100 kHz mode TCY/2 (BRG + 1)
Setup Time
s
400 kHz mode TCY/2 (BRG + 1)
s
1 MHz mode(2) TCY/2 (BRG + 1)
ns
ns
Hold Time
400 kHz mode T
ns
1 MHz mode(2) TCY/2 (BRG + 1)
TAA:SCL Output Valid
100 kHz mode
3500
ns
From Clock
400 kHz mode
1000
ns
(2)
400
ns
1 MHz mode
TBF:SDA Bus Free Time 100 kHz mode
4.7
s
Time the bus must be
free before a new
400 kHz mode
1.3
s
transmission can start
0.5
s
1 MHz mode(2)
CB
Bus Capacitive Loading
400
pF
DS70283J-page 271
SCLx
IS34
IS31
IS30
IS33
SDAx
Stop
Condition
Start
Condition
FIGURE 24-25:
IS21
IS11
IS10
SCLx
IS30
IS26
IS31
IS25
IS33
SDAx
In
IS40
IS40
IS45
SDAx
Out
DS70283J-page 272
AC CHARACTERISTICS
Param. Symbol
IS10
IS11
Characteristic(2)
THI:SCL
IS20
TF:SCL
IS21
TR:SCL
IS25
IS26
IS30
IS31
IS33
IS34
THD:ST
O
Stop Condition
Hold Time
IS40
IS45
Min
Max
Units
4.7
1.3
1 MHz mode(1)
100 kHz mode
0.5
4.0
s
s
0.6
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
400 kHz mode
1 MHz mode(1)
100 kHz mode
0.5
20 + 0.1 CB
20 + 0.1 CB
250
100
100
0
0
0
4.7
0.6
0.25
4.0
0.6
0.25
4.7
0.6
0.6
4000
600
250
0
0
0
4.7
300
300
100
1000
300
300
0.9
0.3
s
ns
ns
ns
ns
ns
ns
ns
ns
ns
s
s
s
s
s
s
s
s
s
s
s
s
ns
ns
ns
ns
ns
ns
s
3500
1000
350
Conditions
Device must operate at a
minimum of 1.5 MHz
Device must operate at a
minimum of 10 MHz
CB is specified to be from
10 to 400 pF
CB is specified to be from
10 to 400 pF
s
0.5
s
1 MHz mode(1)
IS50
CB
Bus Capacitive Loading
400
pF
Note 1: Maximum pin capacitance = 10 pF for all I2Cx pins (for 1 MHz mode only).
2: These parameters are characterized by similarity, but are not tested in manufacturing.
DS70283J-page 273
AC CHARACTERISTICS
Param Symb
No.
ol
Characteristic
Min.
Typ
Max.
Units
Lesser of
VDD + 0.3
or 3.6
VSS + 0.3
Conditions
Device Supply
AD01
AD02
AVDD
AVSS
Module
VDD Supply(2)
Greater of
VDD 0.3
or 3.0
VSS 0.3
Reference Inputs
AD05
VREFH
AD05a
AD06
VREFL
AD06a
AVSS + 2.5
AVDD
See Note 1
3.0
3.6
VREFH = AVDD
VREFL = AVSS = 0, see Note 2
AVSS
AVDD 2.5
See Note 1
VREFH = AVDD
VREFL = AVSS = 0, see Note 2
AD07
VREF
Absolute Reference
Voltage(2)
2.5
3.6
AD08
IREF
Current Drain
250
550
10
A
A
AD08a IAD
Operating Current
7.0
2.7
9.0
3.2
mA
mA
AD12
VINH
VINL
VREFH
AD13
VINL
VREFL
AVSS + 1V
AD17
RIN
Recommended Impedance
of Analog Voltage Source(3)
200
200
10-bit ADC
12-bit ADC
Analog Input
Note 1:
2:
3:
DS70283J-page 274
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic
Min.
Typ
Max.
Units
Conditions
Nr
Resolution(4)
bits
AD21a
INL
Integral Nonlinearity
-2
+2
LSb
AD22a
DNL
Differential Nonlinearity
>-1
<1
LSb
AD23a
GERR
Gain Error
3.4
10
LSb
AD24a
EOFF
Offset Error
0.9
LSb
AD25a
Monotonicity
12 data bits
Guaranteed(1)
Nr
Resolution(4)
AD21a
INL
Integral Nonlinearity
-2
+2
LSb
AD22a
DNL
Differential Nonlinearity
>-1
<1
LSb
AD23a
GERR
Gain Error
10.5
20
LSb
AD24a
EOFF
Offset Error
3.8
10
LSb
AD25a
Monotonicity
12 data bits
bits
THD
AD31a
SINAD
AD32a
SFDR
AD33a
FNYQ
AD34a
ENOB
Note 1:
2:
3:
4:
-75
dB
68.5
69.5
dB
80
dB
250
kHz
11.09
11.3
bits
The A/D conversion result never decreases with an increase in the input voltage, and has no missing
codes.
These parameters are characterized by similarity, but are not tested in manufacturing.
These parameters are characterized, but are tested at 20 ksps only.
Injection currents > | 0 | can affect the ADC results by approximately 4-6 counts.
DS70283J-page 275
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic
Min.
Typ
Max.
Units
Conditions
Nr
Resolution(4)
AD21b
INL
Integral Nonlinearity
-1.5
+1.5
LSb
AD22b
DNL
Differential Nonlinearity
>-1
<1
LSb
AD23b
GERR
Gain Error
LSb
AD24b
EOFF
Offset Error
LSb
AD25b
Monotonicity
10 data bits
bits
Guaranteed(1)
Nr
Resolution(4)
bits
AD21b
INL
Integral Nonlinearity
-1
+1
LSb
10 data bits
AD22b
DNL
Differential Nonlinearity
>-1
<1
LSb
AD23b
GERR
Gain Error
15
LSb
AD24b
EOFF
Offset Error
LSb
AD25b
Monotonicity
THD
-64
dB
AD31b
SINAD
57
58.5
dB
AD32b
SFDR
72
dB
AD33b
FNYQ
550
kHz
AD34b
ENOB
9.16
9.4
bits
Note 1:
2:
3:
4:
The A/D conversion result never decreases with an increase in the input voltage, and has no missing
codes.
These parameters are characterized by similarity, but are not tested in manufacturing.
These parameters are characterized, but are tested at 20 ksps only.
Injection currents > | 0 | can affect the ADC results by approximately 4-6 counts.
DS70283J-page 276
ADCLK
Instruction
Execution
Set SAMP
Clear SAMP
SAMP
AD61
AD60
TSAMP
AD55
DONE
AD1IF
7 Convert bit 1.
8 Convert bit 0.
AC CHARACTERISTICS
Param
No.
Symbol
Characteristic
Min.
Typ
Max.
Units
Conditions
Clock Parameters
Period(2)
AD50
TAD
ADC Clock
AD51
tRC
117.6
ns
250
ns
Conversion Rate
Time(2)
14 TAD
ns
500
Ksps
3.0 TAD
AD55
tCONV
Conversion
AD56
FCNV
Throughput Rate(2)
AD57
TSAMP
Sample Time(2)
Timing Parameters
AD60
tPCS
2.0 TAD
3.0 TAD
AD61
tPSS
2.0 TAD
3.0 TAD
AD62
tCSS
Conversion Completion to
Sample Start (ASAM = 1)(2)
0.5 TAD
AD63
tDPU
20
Note 1:
2:
Because the sample caps will eventually lose charge, clock rates below 10 kHz may affect linearity
performance, especially at elevated temperatures.
These parameters are characterized but not tested in manufacturing.
DS70283J-page 277
AD50
ADCLK
Instruction
Execution Set SAMP
Clear SAMP
SAMP
AD61
AD60
AD55
TSAMP
AD55
DONE
AD1IF
5 Convert bit 9.
6 Convert bit 8.
7 Convert bit 0.
8 One TAD for end of conversion.
FIGURE 24-28:
AD50
ADCLK
Instruction
Set ADON
Execution
SAMP
TSAMP
AD55
TSAMP
AD55
AD55
AD1IF
DONE
5 Convert bit 0.
4 Convert bit 8.
DS70283J-page 278
Param
Symbol
No.
Min.
Typ(1)
Max.
Units
Conditions
Clock Parameters
(1)
AD50
TAD
76
ns
AD51
tRC
250
ns
Conversion Rate
(1)
AD55
tCONV
Conversion Time
12 TAD
AD56
FCNV
Throughput Rate(1)
1.1
Msps
AD57
TSAMP
Sample Time(1)
2.0 TAD
Timing Parameters
AD60
tPCS
2.0 TAD
3.0 TAD
AD61
tPSS
2.0 TAD
3.0 TAD
AD62
tCSS
Conversion Completion to
Sample Start (ASAM = 1)(1)
0.5 TAD
AD63
tDPU
20
Note 1:
2:
Auto-Convert Trigger
not selected
DS70283J-page 279
DS70283J-page 280
This section provides an overview of dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304 electrical characteristics for
devices operating in an ambient temperature range of -40C to +150C.
Note:
The specifications between -40C to +150C are identical to those shown in Section 24.0 Electrical Characteristics
for operation between -40C to +125C, with the exception of the parameters listed in this section.
Parameters in this section begin with an H, which denotes High temperature. For example, parameter DC10 in
Section 24.0 Electrical Characteristics is the Industrial and Extended temperature equivalent of HDC10.
Absolute maximum ratings for the dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304 high temperature devices are
listed below. Exposure to these maximum rating conditions for extended periods can affect device reliability. Functional
operation of the device at these or any other conditions above the parameters indicated in the operation listings of this
specification is not implied.
DS70283J-page 281
TABLE 25-1:
Characteristic
VDD Range
(in Volts)
Temperature Range
(in C)
HDC5
3.0V to 3.6V
-40C to +150C
TABLE 25-2:
dsPIC33FJ32MC202/204 and
dsPIC33FJ16MC304
20
Symbol
Min
Typ
Max
Unit
TJ
-40
+155
TA
-40
+150
Power Dissipation:
Internal chip power dissipation:
PINT = VDD x (IDD - IOH)
PD
PINT + PI/O
PDMAX
(TJ - TA)/JA
TABLE 25-3:
DC CHARACTERISTICS
Parameter
No.
Symbol
Characteristic
Min
Typ
Max
Units
3.0
3.3
3.6
Conditions
Operating Voltage
HDC10
Supply Voltage
VDD
TABLE 25-4:
DC CHARACTERISTICS
Parameter
No.
-40C to +150C
Typical
Max
Units
Conditions
250
2000
+150C
3.3V
HDC61c
+150C
3.3V
Note 1:
2:
3:
4:
Base IPD is measured with all peripherals and clocks shut down. All I/Os are configured as inputs and
pulled to VSS. WDT, etc., are all switched off, and VREGS (RCON<8>) = 1.
The current is the additional current consumed when the module is enabled. This current should be
added to the base IPD current.
These currents are measured on the device containing the most memory in this family.
These parameters are characterized, but are not tested in manufacturing.
DS70283J-page 282
DC CHARACTERISTICS
Parameter
No.
Typical(1)
Max
Units
Conditions
19
35
mA
+150C
3.3V
10 MIPS
HDC21
27
45
mA
+150C
3.3V
16 MIPS
HDC22
33
55
mA
+150C
3.3V
20 MIPS
Note 1:
TABLE 25-6:
DC CHARACTERISTICS
Parameter
No.
Typical(1)
Max
Doze
Ratio
Units
HDC72a
39
45
1:2
mA
HDC72f
18
25
1:64
mA
18
25
1:128
mA
HDC72g
Note 1:
+150C
3.3V
20 MIPS
Parameters with Doze ratios of 1:2 and 1:64 are characterized, but are not tested in manufacturing.
TABLE 25-7:
DC CHARACTERISTICS
Param
No.
Conditions
Symbol
VOL
Characteristic
Min
Typ
Max
Units
Conditions
HDO10
I/O ports
0.4
HDO16
OSC2/CLKO
0.4
VOH
HDO20
I/O ports
2.40
HDO26
OSC2/CLKO
2.41
DS70283J-page 283
DC CHARACTERISTICS
Param
Symbol
No.
Characteristic(1)
Typ
Max
Units
Conditions
10,000
E/W
20
Year
Cell Endurance
HD134 TRETD
Characteristic Retention
Note 1:
2:
These parameters are assured by design, but are not characterized or tested in manufacturing.
Programming of the Flash memory is not allowed above 125C.
DS70283J-page 284
TABLE 25-9:
AC CHARACTERISTICS
FIGURE 25-1:
VDD/2
CL
Pin
RL
VSS
CL
Pin
RL = 464
CL = 50 pF for all pins except OSC2
15 pF for OSC2 output
VSS
Symbol
Characteristic
CLKO Stability (Jitter)(1)
Min
Typ
Max
Units
-5
0.5
Conditions
Measured over 100 ms
period
HOS53
DCLK
Note 1:
These parameters are characterized by similarity, but are not tested in manufacturing. This specification is
based on clock cycle by clock cycle measurements. To calculate the effective jitter for individual time
bases or communication clocks use this formula:
D CLK
Peripheral Clock Jitter = ----------------------------------------------------------------------F OSC
-------------------------------------------------------------
Peripheral Bit Rate Clock
For example: Fosc = 32 MHz, DCLK = 5%, SPI bit rate clock, (i.e., SCK) is 2 MHz.
D CLK
5%
5%
SPI SCK Jitter = ------------------------------ = ---------- = -------- = 1.25%
4
16
32
MHz
--------------------
2 MHz
DS70283J-page 285
Symbol
Characteristic(1)
Min
Typ
Max
Units
Conditions
HSP35
TscH2doV,
TscL2doV
10
25
ns
HSP40
TdiV2scH,
TdiV2scL
28
ns
HSP41
TscH2diL,
TscL2diL
35
ns
Note 1:
Symbol
Characteristic(1)
Min
Typ
Max
Units
Conditions
HSP35
10
25
ns
HSP36
TdoV2sc,
TdoV2scL
35
ns
HSP40
28
ns
HSP41
TscH2diL,
TscL2diL
35
ns
Note 1:
DS70283J-page 286
Characteristic(1)
Symbol
Min
Typ
Max
Units
Conditions
HSP35
TscH2doV,
TscL2doV
35
ns
HSP40
TdiV2scH,
TdiV2scL
25
ns
HSP41
TscH2diL,
TscL2diL
25
ns
HSP51
TssH2doZ
15
55
ns
Note 1:
2:
See Note 2
Symbol
Min
Typ
Max
Units
Conditions
HSP35
35
ns
HSP40
25
ns
HSP41
TscH2diL,
TscL2diL
25
ns
HSP51
TssH2doZ
15
55
ns
HSP60
TssL2doV
55
ns
Note 1:
2:
See Note 2
Characteristic
Typ
Max
Units
-70
+70
Conditions
LPRC
-40C TA +150C
VDD = 3.0-3.6V
DS70283J-page 287
Symbol
Min
Typ
Max
Units
600
50
A
A
Conditions
Reference Inputs
HAD08
Note 1:
2:
IREF
Current Drain
250
Symbol
Characteristic
Min
Typ
Max
Units
Conditions
Nr
Resolution(3)
HAD21a
INL
Integral Nonlinearity
HAD22a
DNL
Differential Nonlinearity
HAD23a
GERR
HAD24a
EOFF
12 data bits
bits
-2
+2
LSb
> -1
<1
LSb
Gain Error
-2
10
LSb
Offset Error
-3
LSb
Nr
Resolution(3)
12 data bits
HAD21a
INL
Integral Nonlinearity
HAD22a
DNL
Differential Nonlinearity
HAD23a
GERR
HAD24a
EOFF
bits
-2
+2
LSb
> -1
<1
LSb
Gain Error
20
LSb
Offset Error
10
LSb
FNYQ
Note 1:
2:
3:
DS70283J-page 288
Mode)(2)
200
kHz
Symbol
Characteristic
Min
Typ
Max
Units
Conditions
Resolution(3)
HAD21b INL
Integral Nonlinearity
HAD22b DNL
Differential Nonlinearity
HAD23b GERR
HAD24b EOFF
10 data bits
bits
-3
LSb
> -1
<1
LSb
Gain Error
-5
LSb
Offset Error
-1
LSb
Resolution(3)
HAD21b INL
Integral Nonlinearity
HAD22b DNL
Differential Nonlinearity
HAD23b GERR
HAD24b EOFF
10 data bits
Note 1:
2:
3:
-2
LSb
> -1
<1
LSb
Gain Error
-5
15
LSb
Offset Error
-1.5
LSb
bits
Mode)(2)
400
kHz
DS70283J-page 289
Symbol
Characteristic
Min
Typ
Max
Units
Conditions
ns
400
Ksps
Clock Parameters
HAD50
TAD
HAD56
FCNV
Throughput Rate(1)
147
Conversion Rate
Note 1:
Symbol
Characteristic
Min
Typ
Max
Units
Conditions
ns
800
Ksps
Clock Parameters
HAD50
TAD
ADC Clock
Period(1)
104
Conversion Rate
Throughput Rate(1)
HAD56
FCNV
Note 1:
DS70283J-page 290
PACKAGING INFORMATION
26.1
28-Lead SPDIP
Example
dsPIC33FJ32MC
202-E/SP e3
0730235
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXX
YYWWNNN
28-Lead SOIC
Example
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXX
YYWWNNN
28-Lead SSOP
Example
XXXXXXXXXXXX
XXXXXXXXXXXX
YYWWNNN
Legend: XX...X
Y
YY
WW
NNN
e3
Note:
dsPIC33FJ32MC
202-E/SO e3
0730235
33FJ32MC
202-E/SS e3
0730235
Customer-specific information
Year code (last digit of calendar year)
Year code (last 2 digits of calendar year)
Week code (week of January 1 is week 01)
Alphanumeric traceability code
Pb-free JEDEC designator for Matte Tin (Sn)
This package is Pb-free. The Pb-free JEDEC designator ( e3 )
can be found on the outer packaging for this package.
If the full Microchip part number cannot be marked on one line, it is carried over to the next
line, thus limiting the number of available characters for customer-specific information.
DS70283J-page 291
28-Lead QFN-S
Example
XXXXXXXX
XXXXXXXX
YYWWNNN
44-Lead QFN
33FJ32MC
202E/MM e3
0730235
Example
XXXXXXXXXX
XXXXXXXXXX
XXXXXXXXXX
YYWWNNN
44-Lead TQFP
Example
XXXXXXXXXX
XXXXXXXXXX
XXXXXXXXXX
YYWWNNN
Legend: XX...X
Y
YY
WW
NNN
e3
Note:
dsPIC33FJ32
MC204-E/ML e3
0730235
dsPIC33FJ
32MC204
-E/PT e3
0730235
Customer-specific information
Year code (last digit of calendar year)
Year code (last 2 digits of calendar year)
Week code (week of January 1 is week 01)
Alphanumeric traceability code
Pb-free JEDEC designator for Matte Tin (Sn)
This package is Pb-free. The Pb-free JEDEC designator ( e3 )
can be found on the outer packaging for this package.
If the full Microchip part number cannot be marked on one line, it is carried over to the next
line, thus limiting the number of available characters for customer-specific information.
DS70283J-page 292
Package Details
28-Lead Skinny Plastic Dual In-Line (SP) 300 mil Body [SPDIP]
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
N
NOTE 1
E1
3
D
E
A2
b1
A1
eB
Units
Dimension Limits
Number of Pins
INCHES
MIN
NOM
MAX
28
Pitch
.200
A2
.120
.135
.150
A1
.015
.290
.310
.335
E1
.240
.285
.295
Overall Length
1.345
1.365
1.400
.110
.130
.150
Lead Thickness
.008
.010
.015
b1
.040
.050
.070
.014
.018
.022
eB
.100 BSC
.430
Notes:
1. Pin 1 visual index feature may vary, but must be located within the hatched area.
2. Significant Characteristic.
3. Dimensions D and E1 do not include mold flash or protrusions. Mold flash or protrusions shall not exceed .010" per side.
4. Dimensioning and tolerancing per ASME Y14.5M.
BSC: Basic Dimension. Theoretically exact value shown without tolerances.
Microchip Technology Drawing C04-070B
DS70283J-page 293
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS70283J-page 294
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS70283J-page 295
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS70283J-page 296
)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
D
N
E
E1
1 2
NOTE 1
b
e
c
A2
A1
L1
8QLWV
'LPHQVLRQ/LPLWV
1XPEHURI3LQV
0,//,0(7(56
0,1
120
0$;
3LWFK
2YHUDOO+HLJKW
%6&
0ROGHG3DFNDJH7KLFNQHVV
$
6WDQGRII
$
2YHUDOO:LGWK
0ROGHG3DFNDJH:LGWK
(
2YHUDOO/HQJWK
'
)RRW/HQJWK
)RRWSULQW
/
5()
/HDG7KLFNQHVV
)RRW$QJOH
/HDG:LGWK
1RWHV
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGPPSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
0LFURFKLS 7HFKQRORJ\ 'UDZLQJ &%
DS70283J-page 297
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS70283J-page 298
)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
D
D2
EXPOSED
PAD
e
E2
E
b
2
K
N
L
NOTE 1
TOP VIEW
BOTTOM VIEW
A3
A1
8QLWV
'LPHQVLRQ/LPLWV
1XPEHURI3LQV
0,//,0(7(56
0,1
120
0$;
3LWFK
2YHUDOO+HLJKW
6WDQGRII
$
&RQWDFW7KLFNQHVV
$
2YHUDOO:LGWK
([SRVHG3DG:LGWK
(
2YHUDOO/HQJWK
'
([SRVHG3DG/HQJWK
%6&
5()
%6&
%6&
'
&RQWDFW:LGWK
&RQWDFW/HQJWK
&RQWDFWWR([SRVHG3DG
.
1RWHV
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
3DFNDJHLVVDZVLQJXODWHG
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
DS70283J-page 299
)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
DS70283J-page 300
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
D2
EXPOSED
PAD
e
E
E2
b
2
2
1
N
1
N
NOTE 1
TOP VIEW
L
BOTTOM VIEW
A
A3
A1
Units
Dimension Limits
Number of Pins
MILLIMETERS
MIN
NOM
MAX
44
Pitch
Overall Height
0.80
0.65 BSC
0.90
1.00
Standoff
A1
0.00
0.02
0.05
Contact Thickness
A3
0.20 REF
Overall Width
E2
Overall Length
D2
6.30
6.45
6.80
0.25
0.30
0.38
Contact Length
0.30
0.40
0.50
Contact-to-Exposed Pad
0.20
Contact Width
8.00 BSC
6.30
6.45
6.80
8.00 BSC
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.
Microchip Technology Drawing C04-103B
DS70283J-page 301
)RUWKHPRVWFXUUHQWSDFNDJHGUDZLQJVSOHDVHVHHWKH0LFURFKLS3DFNDJLQJ6SHFLILFDWLRQORFDWHGDW
KWWSZZZPLFURFKLSFRPSDFNDJLQJ
DS70283J-page 302
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
D
D1
E
e
E1
N
b
NOTE 1
1 2 3
NOTE 2
A2
A1
L
L1
Units
Dimension Limits
Number of Leads
MILLIMETERS
MIN
NOM
MAX
44
Lead Pitch
Overall Height
0.80 BSC
A2
0.95
1.00
1.05
Standoff
A1
0.05
0.15
Foot Length
0.45
0.60
0.75
Footprint
L1
1.20
1.00 REF
Foot Angle
Overall Width
12.00 BSC
Overall Length
12.00 BSC
E1
10.00 BSC
D1
10.00 BSC
3.5
Lead Thickness
0.09
0.20
Lead Width
0.30
0.37
0.45
11
12
13
11
12
13
Notes:
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.25 mm 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-076B
DS70283J-page 303
Note:
For the most current package drawings, please see the Microchip Packaging Specification located at
http://www.microchip.com/packaging
DS70283J-page 304
REVISION HISTORY
DS70283J-page 305
TABLE A-1:
Section Name
High-Performance, 16-bit Digital
Signal Controllers
Update Description
Added Extended Interrupts column to Remappable Peripherals in the
Controller Families table and Note 3 (see Table 1).
Added Note 1 to all pin diagrams, which references RPn pin usage by
remappable peripherals (see Pin Diagrams).
Changed PORTA pin name from RA15 to RA10 (see Table 1-1).
Removed the first sentence of the third clock source item (External Clock) in
Section 8.1.1.2 Primary.
Updated the default bit values for DOZE and FRCDIV in the Clock Divisor
Register (see Register 8-2).
Added the center frequency in the OSCTUN register for the FRC Tuning bits
(TUN<5:0>) value 011111 and updated the center frequency for bits value
011110 (see Register 8-4).
Removed the following sections, which are now available in the related
section of the dsPIC33F/PIC24H Family Reference Manual:
9.4.2 Available Peripherals
9.4.3.3 Mapping
9.4.5 Considerations for Peripheral Pin Selection
Section 14.0 Output Compare
DS70283J-page 306
Replaced sections 13.1, 13.2, and 13.3 and related figures and tables with
entirely new content.
Section Name
Section 15.0 Motor Control PWM
Module
Update Description
Removed the following sections, which are now available in the related
section of the dsPIC33F/PIC24H Family Reference Manual:
Removed the following sections, which are now available in the related
section of the dsPIC33F/PIC24H Family Reference Manual:
Removed the following sections, which are now available in the related
section of the dsPIC33F/PIC24H Family Reference Manual:
16.1 Interrupts
16.2 Receive Operations
16.3 Transmit Operations
16.4 SPI Setup (retained Figure 17-1: SPI Module Block Diagram)
DS70283J-page 307
Section Name
Section 18.0 Inter-Integrated
Circuit (I2C)
Update Description
Removed the following sections, which are now available in the related
section of the dsPIC33F/PIC24H Family Reference Manual:
Removed Equation 19-1: ADC Conversion Clock Period and Figure 19-2:
ADC Transfer Function (10-Bit Example).
Added ADC1 Module Block Diagram for dsPIC33FJ16MC304 and
dsPIC33FJ32MC204 Devices (Figure 20-1) and ADC1 Module Block
Diagram FOR dsPIC33FJ32MC202 Devices (Figure 20-2).
Added Note 2 to Figure 20-3: ADC Conversion Clock Period Block Diagram.
Updated ADC Conversion Clock Select bits in the AD1CON3 register from
ADCS<5:0> to ADCS<7:0>. Any references to these bits have also been
updated throughout this data sheet (Register 20-3).
Added device-specific information to Note 1 in the ADC1 Input Scan Select
Register Low (see Register 20-6), and updated the default bit value for bits
12-10 (CSS12-CSS10) from U-0 to R/W-0.
Added device-specific information to Note 1 in the ADC1 Port Configuration
Register Low (see Register 20-7), and updated the default bit value for bits
12-10 (PCFG12-PCFG10) from U-0 to R/W-0.
DS70283J-page 308
Section Name
Section 21.0 Special Features
Update Description
Added FICD register information for address 0xF8000E in the Device
Configuration Register Map (see Table 21-1).
Added FICD register content (BKBUG, COE, JTAGEN, and ICS<1:0> to the
dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304 Configuration Bits
Description (see Table 21-2).
Added a note regarding the placement of low-ESR capacitors, after the
second paragraph of Section 21.2 On-Chip Voltage Regulator and to
Figure 19-1.
Removed the words if enabled from the second sentence in the fifth
paragraph of Section 21.3 BOR: Brown-out Reset.
DS70283J-page 309
TABLE A-2:
Section Name
Update Description
Updated all pin diagrams to denote the pin voltage tolerance (see Pin
Diagrams).
Added new section to the data sheet that provides guidelines on getting
started with 16-bit Digital Signal Controllers.
Updated 5V tolerant status for I/O pin RB4 from Yes to No (see Table 10-1).
Removed the maximum value for parameter DC12 (RAM Data Retention
Voltage) in Table 24-4.
Updated typical values for Operating Current (IDD) and added Note 3 in
Table 24-5.
Updated typical and maximum values for Idle Current (IIDLE): Core OFF
Clock ON Base Current and added Note 3 in Table 24-6.
Updated typical and maximum values for Power Down Current (IPD) and
added Note 5 in Table 24-7.
Updated typical and maximum values for Doze Current (IDOZE) and added
Note 2 in Table 24-8.
Added Note 3 to Table 24-12.
Updated minimum value for Internal Voltage Regulator Specifications in
Table 24-13.
Added parameter OS42 (GM) and Notes 4, 5 and 6 to Table 24-16.
Added Notes 2 and 3 to Table 24-17.
Added Note 2 to Table 24-20.
Added Note 2 to Table 24-21.
Added Note 2 to Table 24-22.
Added Note 1 to Table 24-23.
Added Note 1 to Table 24-24.
Added Note 3 to Table 24-36.
Added Note 2 to Table 24-37.
Updated typical value for parameter AD08 (ADC in operation) and added
Notes 2 and 3 in Table 24-38.
Updated minimum, typical, and maximum values for parameters AD23a,
AD24a, AD30a, AD32a, AD32a and AD34a, and added Notes 2 and 3 in
Table 24-39.
Updated minimum, typical, and maximum values for parameters AD23b,
AD24b, AD30b, AD32b, AD32b and AD34b, and added Notes 2 and 3 in
Table 24-40.
DS70283J-page 310
TABLE A-3:
Update Description
Removed Table 10-1 and added reference to pin diagrams for I/O
pin availability and functionality.
Section 17.0 Serial Peripheral Interface (SPI) Added Note 2 to the SPIx Control Register 1 (see Register 17-2).
Section 19.0 Universal Asynchronous
Receiver Transmitter (UART)
DS70283J-page 311
TABLE A-4:
Update Description
Updated the two baud rate range features to: 10 Mbps to 38 bps
at 40 MIPS.
TABLE A-5:
DS70283J-page 312
Update Description
Updated MIPS rating from 16 to 20 for high temperature devices
in Operating Range: and in Table 25-1: Operating MIPS vs.
Voltage.
TABLE A-6:
Update Description
Section 20.0 10-bit/12-bit Analog-to-Digital Updated the VREFL references in the ADC1 module block diagrams
Converter (ADC)
(see Figure 20-1 and Figure 20-2).
Section 21.0 Special Features
DS70283J-page 313
Update Description
Added the 28-pin SSOP Thermal Packaging Characteristics (see
Table 24-3).
Removed Note 4 from the DC Temperature and Voltage
Specifications (see Table 24-4).
Updated the maximum value for parameter DI19 and added
parameters DI28, DI29, DI60a, DI60b, and DI60c to the I/O Pin Input
Specifications (see Table 24-9).
Updated Note 3 of the PLL Clock Timing Specifications (see
Table 24-17).
Removed Note 2 from the AC Characteristics: Internal RC Accuracy
(see Table 24-18).
Updated the characteristic description for parameter DI35 in the I/O
Timing Requirements (see Table 24-20).
Updated all SPI specifications (see Table 24-32 through Table 24-39
and Figure 24-14 through Figure 24-21).
Added Note 4 to the 12-bit mode ADC Module Specifications (see
Table 24-43).
Added Note 4 to the 10-bit mode ADC Module Specifications (see
Table 24-44).
DS70283J-page 314
TABLE A-7:
Update Description
DS70283J-page 315
DS70283J-page 316
B
Barrel Shifter ....................................................................... 31
Bit-Reversed Addressing .................................................... 53
Example ...................................................................... 54
Implementation ........................................................... 53
Sequence Table (16-Entry)......................................... 54
Block Diagrams
16-bit Timer1 Module ................................................ 147
A/D Module ....................................................... 202, 203
Connections for On-Chip Voltage Regulator............. 217
Device Clock ............................................................. 105
DSP Engine ................................................................ 28
dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304 .. 12
dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304
CPU Core ........................................................... 22
dsPIC33FJ32MC202/204 and dsPIC33FJ16MC304 PLL
107
Input Capture ............................................................ 155
Output Compare ....................................................... 157
PLL............................................................................ 107
PWM Module .................................................... 162, 163
Quadrature Encoder Interface .................................. 175
Reset System.............................................................. 65
Shared Port Structure ............................................... 121
SPI ............................................................................ 181
Timer2 (16-bit) .......................................................... 151
Timer2/3 (32-bit) ....................................................... 150
UART ........................................................................ 195
Watchdog Timer (WDT) ............................................ 218
C
C Compilers
MPLAB C18 .............................................................. 230
Clock Switching................................................................. 113
Enabling .................................................................... 113
Sequence.................................................................. 113
Code Examples
Erasing a Program Memory Page............................... 63
Initiating a Programming Sequence............................ 64
Loading Write Buffers ................................................. 64
Port Write/Read ........................................................ 122
PWRSAV Instruction Syntax..................................... 115
Code Protection ........................................................ 213, 220
Configuration Bits.............................................................. 213
D
Data Accumulators and Adder/Subtracter .......................... 29
Data Space Write Saturation ...................................... 31
Overflow and Saturation ............................................. 29
Round Logic ............................................................... 30
Write Back .................................................................. 30
Data Address Space........................................................... 35
Alignment.................................................................... 35
Memory Map for dsPIC33FJ32MC202/204 and
dsPIC33FJ16MC304 Devices with 2 KBs RAM . 36
Near Data Space ........................................................ 35
Software Stack ........................................................... 50
Width .......................................................................... 35
DC Characteristics............................................................ 234
Doze Current (IDOZE)................................................ 283
High Temperature..................................................... 282
I/O Pin Input Specifications ...................................... 239
I/O Pin Output........................................................... 283
I/O Pin Output Specifications.................................... 242
Idle Current (IDOZE) .................................................. 238
Idle Current (IIDLE) .................................................... 237
Operating Current (IDD) ............................................ 236
Operating MIPS vs. Voltage ..................................... 282
Power-Down Current (IPD)........................................ 238
Power-down Current (IPD) ........................................ 282
Program Memory.............................................. 243, 284
Temperature and Voltage......................................... 282
Temperature and Voltage Specifications.................. 235
Thermal Operating Conditions.................................. 282
Development Support ....................................................... 229
Doze Mode ....................................................................... 116
DSP Engine ........................................................................ 27
Multiplier ..................................................................... 29
E
Electrical Characteristics .................................................. 233
AC..................................................................... 244, 285
Equations
Device Operating Frequency.................................... 106
Errata .................................................................................. 10
F
Fail-Safe Clock Monitor .................................................... 113
Flash Program Memory ...................................................... 59
Control Registers........................................................ 60
Operations .................................................................. 60
Programming Algorithm.............................................. 63
RTSP Operation ......................................................... 60
Table Instructions ....................................................... 59
Flexible Configuration ....................................................... 213
DS70283J-page 317
I
I/O Ports ............................................................................ 121
Parallel I/O (PIO)....................................................... 121
Write/Read Timing .................................................... 122
I2 C
Addresses ................................................................. 188
Operating Modes ...................................................... 187
Registers ................................................................... 187
Software Controlled Clock Stretching (STREN = 1).. 188
I2C Module
I2C1 Register Map ...................................................... 43
In-Circuit Debugger ........................................................... 219
In-Circuit Emulation........................................................... 213
In-Circuit Serial Programming (ICSP) ....................... 213, 219
Input Capture .................................................................... 155
Registers ................................................................... 156
Input Change Notification.................................................. 122
Instruction Addressing Modes............................................. 50
File Register Instructions ............................................ 50
Fundamental Modes Supported.................................. 51
MAC Instructions......................................................... 51
MCU Instructions ........................................................ 50
Move and Accumulator Instructions ............................ 51
Other Instructions........................................................ 51
Instruction Set
Overview ................................................................... 224
Summary................................................................... 221
Instruction-Based Power-Saving Modes ........................... 115
Idle ............................................................................ 116
Sleep ......................................................................... 115
Interfacing Program and Data Memory Spaces .................. 55
Internal RC Oscillator
Use with WDT ........................................................... 218
Internet Address................................................................ 321
Interrupt Control and Status Registers................................ 77
IECx ............................................................................ 77
IFSx............................................................................. 77
INTCON1 .................................................................... 77
INTCON2 .................................................................... 77
IPCx ............................................................................ 77
Interrupt Setup Procedures ............................................... 103
Initialization ............................................................... 103
Interrupt Disable........................................................ 103
Interrupt Service Routine .......................................... 103
Trap Service Routine ................................................ 103
Interrupt Vector Table (IVT) ................................................ 73
Interrupts Coincident with Power Save Instructions.......... 116
J
JTAG Boundary Scan Interface ........................................ 213
JTAG Interface .................................................................. 219
M
Memory Organization.......................................................... 33
Microchip Internet Web Site .............................................. 321
Modulo Addressing ............................................................. 52
Applicability ................................................................. 53
Operation Example ..................................................... 52
Start and End Address ................................................ 52
W Address Register Selection .................................... 52
Motor Control PWM........................................................... 161
Motor Control PWM Module
2-Output Register Map................................................ 42
DS70283J-page 318
N
NVM Module
Register Map .............................................................. 49
O
Open-Drain Configuration................................................. 122
Oscillator Configuration .................................................... 105
Output Compare ............................................................... 157
P
Packaging ......................................................................... 291
Details....................................................................... 293
Marking ............................................................. 291, 292
Peripheral Module Disable (PMD) .................................... 116
Pinout I/O Descriptions (table)............................................ 13
PMD Module
Register Map .............................................................. 49
PORTA
Register Map for dsPIC33FJ32MC202....................... 47
Register
Map
for
dsPIC33FJ32MC204
and
dsPIC33FJ16MC304 .......................................... 47
PORTB
Register Map .............................................................. 48
PORTC
Register
Map
dsPIC33FJ32MC204
and
dsPIC33FJ16MC304 .......................................... 48
Power-on Reset (POR)....................................................... 70
Power-Saving Features .................................................... 115
Clock Frequency and Switching ............................... 115
Program Address Space..................................................... 33
Construction ............................................................... 55
Data Access from Program Memory Using
Program Space Visibility..................................... 58
Data Access from Program Memory
Using Table Instructions ..................................... 57
Data Access from, Address Generation ..................... 56
Memory Map............................................................... 33
Table Read Instructions
TBLRDH ............................................................. 57
TBLRDL.............................................................. 57
Visibility Operation ...................................................... 58
Program Memory
Interrupt Vector ........................................................... 34
Organization ............................................................... 34
Reset Vector ............................................................... 34
PWM Time Base............................................................... 164
Q
Quadrature Encoder Interface (QEI)................................. 175
Quadrature Encoder Interface (QEI) Module
Register Map .............................................................. 43
R
Reader Response............................................................. 322
Registers
AD1CHS0 (ADC1 Input Channel 0 Select ................ 211
AD1CHS123 (ADC1 Input Channel 1, 2, 3 Select)... 209
AD1CON1 (ADC1 Control 1) .................................... 205
AD1CON2 (ADC1 Control 2) .................................... 207
AD1CON3 (ADC1 Control 3) .................................... 208
S
Serial Peripheral Interface (SPI) ....................................... 181
Software Reset Instruction (SWR)...................................... 71
Software Simulator (MPLAB SIM) .................................... 231
Software Stack Pointer, Frame Pointer
CALLL Stack Frame ................................................... 50
Special Features of the CPU ............................................ 213
SPI Module
SPI1 Register Map ..................................................... 43
Symbols Used in Opcode Descriptions ............................ 222
System Control
Register Map .............................................................. 48
T
Temperature and Voltage Specifications
AC..................................................................... 244, 285
Timer1 .............................................................................. 147
Timer2/3 ........................................................................... 149
Timing Characteristics
CLKO and I/O ........................................................... 247
Timing Diagrams
10-bit ADC Conversion (CHPS<1:0> = 01, SIMSAM = 0,
ASAM = 0, SSRC<2:0> = 000)......................... 278
10-bit ADC Conversion (CHPS<1:0> = 01, SIMSAM = 0,
ASAM = 1, SSRC<2:0> = 111,
SAMC<4:0> = 00001)....................................... 278
12-bit ADC Conversion (ASAM = 0,
SSRC<2:0> = 000) ........................................... 277
Brown-out Situations .................................................. 71
External Clock .......................................................... 245
I2Cx Bus Data (Master Mode) .................................. 270
I2Cx Bus Data (Slave Mode) .................................... 272
I2Cx Bus Start/Stop Bits (Master Mode)................... 270
I2Cx Bus Start/Stop Bits (Slave Mode)..................... 272
Input Capture (CAPx) ............................................... 253
Motor Control PWM .................................................. 255
Motor Control PWM Fault ......................................... 255
OC/PWM .................................................................. 254
Output Compare (OCx) ............................................ 253
QEA/QEB Input ........................................................ 256
QEI Module Index Pulse........................................... 257
Reset, Watchdog Timer, Oscillator Start-up Timer
and Power-up Timer ......................................... 248
Timer1, 2, 3 External Clock ...................................... 250
TimerQ (QEI Module) External Clock ....................... 252
Timing Requirements
ADC Conversion (10-bit mode) ................................ 290
ADC Conversion (12-bit Mode) ................................ 290
CLKO and I/O ........................................................... 247
External Clock .......................................................... 245
Input Capture............................................................ 253
SPIx Master Mode (CKE = 0) ................................... 286
SPIx Module Master Mode (CKE = 1) ...................... 286
SPIx Module Slave Mode (CKE = 0) ........................ 287
DS70283J-page 319
DS70283J-page 320
U
UART Module
UART1 Register Map.................................................. 43
Universal Asynchronous Receiver Transmitter (UART) ... 195
Using the RCON Status Bits............................................... 72
V
Voltage Regulator (On-Chip) ............................................ 217
W
Watchdog Time-out Reset (WDTR).................................... 71
Watchdog Timer (WDT)............................................ 213, 218
Programming Considerations ................................... 218
WWW Address ................................................................. 321
WWW, On-Line Support ..................................................... 10
CUSTOMER SUPPORT
Distributor or Representative
Local Sales Office
Field Application Engineer (FAE)
Technical Support
Development Systems Information Line
Customers
should
contact
their
distributor,
representative or field application engineer (FAE) for
support. Local sales offices are also available to help
customers. A listing of sales offices and locations is
included in the back of this document.
Technical support is available through the web site
at: http://microchip.com/support
DS70283J-page 321
RE:
Reader Response
From: Name
Company
Address
City / State / ZIP / Country
Telephone: (_______) _________ - _________
Application (optional):
Would you like a reply?
Questions:
1. What are the best features of this document?
2. How does this document meet your hardware and software development needs?
3. Do you find the organization of this document easy to follow? If not, why?
4. What additions to the document do you think would enhance the structure and subject?
5. What deletions from the document could be made without affecting the overall usefulness?
DS70283J-page 322
Examples:
a)
Microchip Trademark
Architecture
dsPIC33FJ32MC202TE/SP:
Motor Control dsPIC33, 32 KB program
memory, 28-pin, Extended temp.,
SPDIP package.
Architecture:
33
Product Group:
MC2
MC3
=
=
Pin Count:
02
04
=
=
28-pin
44-pin
Temperature Range:
I
E
H
=
=
=
Package:
SP
SO
SS
ML
PT
MM
=
=
=
=
=
=
DS70283J-page 323
ASIA/PACIFIC
ASIA/PACIFIC
EUROPE
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://www.microchip.com/
support
Web Address:
www.microchip.com
India - Bangalore
Tel: 91-80-3090-4444
Fax: 91-80-3090-4123
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
Austria - Wels
Tel: 43-7242-2244-39
Fax: 43-7242-2244-393
Denmark - Copenhagen
Tel: 45-4450-2828
Fax: 45-4485-2829
India - Pune
Tel: 91-20-2566-1512
Fax: 91-20-2566-1513
France - Paris
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
Japan - Yokohama
Tel: 81-45-471- 6166
Fax: 81-45-471-6122
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Atlanta
Duluth, GA
Tel: 678-957-9614
Fax: 678-957-1455
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasca, IL
Tel: 630-285-0071
Fax: 630-285-0075
Cleveland
Independence, OH
Tel: 216-447-0464
Fax: 216-447-0643
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Indianapolis
Noblesville, IN
Tel: 317-773-8323
Fax: 317-773-5453
Los Angeles
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
Santa Clara
Santa Clara, CA
Tel: 408-961-6444
Fax: 408-961-6445
Toronto
Mississauga, Ontario,
Canada
Tel: 905-673-0699
Fax: 905-673-6509
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8569-7000
Fax: 86-10-8528-2104
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
China - Chongqing
Tel: 86-23-8980-9588
Fax: 86-23-8980-9500
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
China - Hangzhou
Tel: 86-571-2819-3180
Fax: 86-571-2819-3189
Malaysia - Penang
Tel: 60-4-227-8870
Fax: 60-4-227-4068
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
Taiwan - Kaohsiung
Tel: 886-7-213-7830
Fax: 886-7-330-9305
China - Shenzhen
Tel: 86-755-8203-2660
Fax: 86-755-8203-1760
Taiwan - Taipei
Tel: 886-2-2500-6610
Fax: 886-2-2508-0102
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
Thailand - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
Spain - Madrid
Tel: 34-91-708-08-90
Fax: 34-91-708-08-91
UK - Wokingham
Tel: 44-118-921-5869
Fax: 44-118-921-5820
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
China - Xiamen
Tel: 86-592-2388138
Fax: 86-592-2388130
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
DS70283J-page 324
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
05/02/11