Dspic30F6011A/6012A/6013A/6014A Data Sheet: High-Performance, 16-Bit Digital Signal Controllers
Dspic30F6011A/6012A/6013A/6014A Data Sheet: High-Performance, 16-Bit Digital Signal Controllers
Dspic30F6011A/6012A/6013A/6014A Data Sheet: High-Performance, 16-Bit Digital Signal Controllers
Data Sheet
High-Performance,
16-bit Digital Signal Controllers
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
ISBN: 978-1-60932-883-2
Microchip received ISO/TS-16949:2002 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 Company’s 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, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
UART
2C™
SRAM EEPROM Timer Input Codec
CAN
SPI
Device Pins Comp/Std 12-bit
Bytes Instructions Bytes Bytes 16-bit Cap Interface
PWM 100 Ksps
I
dsPIC30F6011A 64 132K 44K 6144 2048 5 8 8 — 16 ch 2 2 1 2
2
dsPIC30F6012A 64 144K 48K 8192 4096 5 8 8 AC’97, I S 16 ch 2 2 1 2
dsPIC30F6013A 80 132K 44K 6144 2048 5 8 8 — 16 ch 2 2 1 2
dsPIC30F6014A 80 144K 48K 8192 4096 5 8 8 AC’97, I2S 16 ch 2 2 1 2
64-Pin TQFP
OC6/IC6/CN14/RD5
OC5/IC5/CN13/RD4
EMUD2/OC2/RD1
OC8/CN16/RD7
OC7/CN15/RD6
C2RX/RG0
C2TX/RG1
C1RX/RF0
C1TX/RF1
OC4/RD3
OC3/RD2
RG13
RG12
RG14
VDD
VSS
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
RG15 1 48 EMUC1/SOSCO/T1CK/CN0/RC14
T2CK/RC1 2 47 EMUD1/SOSCI/T4CK/CN1/RC13
T3CK/RC2 3 46 EMUC2/OC1/RD0
SCK2/CN8/RG6 4 45 IC4/INT4/RD11
SDI2/CN9/RG7 5 44 IC3/INT3/RD10
SDO2/CN10/RG8 6 43 IC2/INT2/RD9
MCLR 7 42 IC1/INT1/RD8
SS2/CN11/RG9 8 41 VSS
VSS 9
dsPIC30F6011A 40 OSC2/CLKO/RC15
VDD 10 39 OSC1/CLKI
AN5/IC8/CN7/RB5 11 38 VDD
AN4/IC7/CN6/RB4 12 37 SCL/RG2
AN3/CN5/RB3 13 36 SDA/RG3
AN2/SS1/LVDIN/CN4/RB2 14 35 EMUC3/SCK1/INT0/RF6
AN1/VREF-/CN3/RB1 15 34 U1RX/SDI1/RF2
AN0/VREF+/CN2/RB0 16 33 EMUD3/U1TX/SDO1/RF3
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
AVDD
AVSS
VSS
VDD
AN8/RB8
AN9/RB9
AN10/RB10
PGC/EMUC/AN6/OCFA/RB6
PGD/EMUD/AN7/RB7
AN11/RB11
AN12/RB12
AN13/RB13
AN14/RB14
AN15/OCFB/CN12/RB15
U2RX/CN17/RF4
U2TX/CN18/RF5
64-Pin TQFP
OC6/IC6/CN14/RD5
OC5/IC5/CN13/RD4
EMUD2/OC2/RD1
OC8/CN16/RD7
OC7/CN15/RD6
CSDO/RG13
CSCK/RG14
CSDI/RG12
C2RX/RG0
C2TX/RG1
C1RX/RF0
C1TX/RF1
OC4/RD3
OC3/RD2
VDD
VSS
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
COFS/RG15 1 48 EMUC1/SOSCO/T1CK/CN0/RC14
T2CK/RC1 2 47 EMUD1/SOSCI/T4CK/CN1/RC13
T3CK/RC2 3 46 EMUC2/OC1/RD0
SCK2/CN8/RG6 4 45 IC4/INT4/RD11
SDI2/CN9/RG7 5 44 IC3/INT3/RD10
SDO2/CN10/RG8 6 43 IC2/INT2/RD9
MCLR 7 42 IC1/INT1/RD8
SS2/CN11/RG9 8 41 VSS
VSS 9 dsPIC30F6012A 40 OSC2/CLKO/RC15
VDD 10 39 OSC1/CLKI
AN5/IC8/CN7/RB5 11 38 VDD
AN4/IC7/CN6/RB4 12 37 SCL/RG2
AN3/CN5/RB3 13 36 SDA/RG3
AN2/SS1/LVDIN/CN4/RB2 14 35 EMUC3/SCK1/INT0/RF6
AN1/VREF-/CN3/RB1 15 34 U1RX/SDI1/RF2
AN0/VREF+/CN2/RB0 16 33 EMUD3/U1TX/SDO1/RF3
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PGC/EMUC/AN6/OCFA/RB6
PGD/EMUD/AN7/RB7
AN8/RB8
AN9/RB9
AN10/RB10
AN11/RB11
AN12/RB12
AN13/RB13
AN14/RB14
AN15/OCFB/CN12/RB15
U2RX/CN17/RF4
U2TX/CN18/RF5
AVDD
AVSS
VSS
VDD
80-Pin TQFP
EMUD2/OC2/RD1
IC6/CN19/RD13
OC8/CN16/RD7
OC7/CN15/RD6
OC6/CN14/RD5
OC5/CN13/RD4
C2RX/RG0
C2TX/RG1
C1RX/RF0
CN23/RA7
CN22/RA6
C1TX/RF1
IC5/RD12
OC4/RD3
OC3/RD2
RG13
RG12
RG14
VDD
VSS
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60 EMUC1/SOSCO/T1CK/CN0/RC14
RG15 1
59 EMUD1/SOSCI/CN1/RC13
T2CK/RC1 2
58 EMUC2/OC1/RD0
T3CK/RC2 3
57 IC4/RD11
T4CK/RC3 4
56 IC3/RD10
T5CK/RC4 5
55 IC2/RD9
SCK2/CN8/RG6 6
54 IC1/RD8
SDI2/CN9/RG7 7
SDO2/CN10/RG8 53 INT4/RA15
8
MCLR 9 52 INT3/RA14
51 VSS
SS2/CN11/RG9 10
VSS
dsPIC30F6013A 50 OSC2/CLKO/RC15
11
VDD 49 OSC1/CLKI
12
INT1/RA12 48 VDD
13
INT2/RA13 47 SCL/RG2
14
AN5/CN7/RB5 46 SDA/RG3
15
AN4/CN6/RB4 16 45 EMUC3/SCK1/INT0/RF6
AN3/CN5/RB3 17 44 SDI1/RF7
AN2/SS1/LVDIN/CN4/RB2 18 43 EMUD3/SDO1/RF8
PGC/EMUC/AN1/CN3/RB1 19 42 U1RX/RF2
PGD/EMUD/AN0/CN2/RB0 20 41 U1TX/RF3
21
22
34
35
36
37
38
39
40
23
24
25
26
27
28
29
30
31
32
33
AVDD
AVSS
VSS
VDD
AN15/OCFB/CN12/RB15
AN6/OCFA/RB6
AN7/RB7
VREF-/RA9
VREF+/RA10
AN8/RB8
AN9/RB9
AN10/RB10
AN11/RB11
AN12/RB12
AN13/RB13
AN14/RB14
IC7/CN20/RD14
IC8/CN21/RD15
U2RX/CN17/RF4
U2TX/CN18/RF5
80-Pin TQFP
EMUD2/OC2/RD1
IC6/CN19/RD13
OC8/CN16/RD7
OC7/CN15/RD6
OC6/CN14/RD5
OC5/CN13/RD4
CSDO/RG13
CSCK/RG14
CSDI/RG12
C2RX/RG0
C2TX/RG1
C1RX/RF0
CN23/RA7
CN22/RA6
C1TX/RF1
IC5/RD12
OC4/RD3
OC3/RD2
VDD
VSS
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60 EMUC1/SOSCO/T1CK/CN0/RC14
COFS/RG15 1
59 EMUD1/SOSCI/CN1/RC13
T2CK/RC1 2
58 EMUC2/OC1/RD0
T3CK/RC2 3
57 IC4/RD11
T4CK/RC3 4
56 IC3/RD10
T5CK/RC4 5
55 IC2/RD9
SCK2/CN8/RG6 6
54 IC1/RD8
SDI2/CN9/RG7 7
SDO2/CN10/RG8 53 INT4/RA15
8
MCLR 9 52 INT3/RA14
51 VSS
SS2/CN11/RG9 10 dsPIC30F6014A
VSS 11 50 OSC2/CLKO/RC15
49 OSC1/CLKI
VDD 12
INT1/RA12 48 VDD
13
INT2/RA13 47 SCL/RG2
14
AN5/CN7/RB5 46 SDA/RG3
15
AN4/CN6/RB4 16 45 EMUC3/SCK1/INT0/RF6
AN3/CN5/RB3 17 44 SDI1/RF7
AN2/SS1/LVDIN/CN4/RB2 18 43 EMUD3/SDO1/RF8
PGC/EMUC/AN1/CN3/RB1 19 42 U1RX/RF2
PGD/EMUD/AN0/CN2/RB0 20 41 U1TX/RF3
21
22
34
35
36
37
38
39
40
23
24
25
26
27
28
29
30
31
32
33
AN6/OCFA/RB6
AN7/RB7
VREF+/RA10
VREF-/RA9
AN8/RB8
AN9/RB9
AN10/RB10
AN11/RB11
AN12/RB12
AN13/RB13
AN14/RB14
AN15/OCFB/CN12/RB15
U2RX/CN17/RF4
U2TX/CN18/RF5
AVDD
AVSS
VSS
VDD
IC7/CN20/RD14
IC8/CN21/RD15
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
IR T2CK/RC1
T3CK/RC2
16 16 EMUD1/SOSCI/T4CK/CN1/RC13
EMUC1/SOSCO/T1CK/CN0/RC14
16 x 16
OSC2/CLKO/RC15
W Reg Array PORTC
Decode
Instruction
Decode & 16 16
Control
EMUC2/OC1/RD0
Control Signals DSP EMUD2/OC2/RD1
to Various Blocks Divide
Power-up Engine Unit OC3/RD2
Timer OC4/RD3
Timing OC5/IC5/CN13/RD4
OSC1/CLKI Oscillator
Generation Start-up Timer OC6/IC6/CN14/RD5
OC7/CN15/RD6
ALU<16> OC8/CN16/RD7
POR/BOR IC1/INT1/RD8
Watchdog 16 16 IC2/INT2/RD9
MCLR IC3/INT3/RD10
Timer
IC4/INT4/RD11
Low-Voltage PORTD
VDD, VSS Detect
AVDD, AVSS
CN22/RA6
Y Data Bus CN23/RA7
X Data Bus
VREF-/RA9
16 16 16 VREF+/RA10
16 INT1/RA12
Interrupt Data Latch Data Latch INT2/RA13
Controller PSV & Table
Data Access Y Data X Data INT3/RA14
24 Control Block 8 16 RAM RAM INT4/RA15
16 PORTA
Address Address
24 Latch Latch PGD/EMUD/AN0/CN2/RB0
16 16 16 PGC/EMUC/AN1/CN3/RB1
AN2/SS1/LVDIN/CN4/RB2
24 X RAGU
Y AGU AN3/CN5/RB3
PCU PCH PCL X WAGU
AN4/CN6/RB4
Program Counter
AN5/CN7/RB5
Address Latch Stack Loop
Control Control AN6/OCFA/RB6
Program Memory Logic Logic AN7/RB7
(Up to 144 Kbytes) AN8/RB8
AN9/RB9
Data EEPROM
(Up to 4 Kbytes) AN10/RB10
Effective Address AN11/RB11
Data Latch 16 AN12/RB12
AN13/RB13
AN14/RB14
ROM Latch 16 AN15/OCFB/CN12/RB15
24 PORTB
T2CK/RC1
IR T3CK/RC2
16 T4CK/RC3
16 T5CK/RC4
16 x 16 EMUD1/SOSCI/CN1/RC13
W Reg Array EMUC1/SOSCO/T1CK/CN0/RC14
Decode
OSC2/CLKO/RC15
Instruction PORTC
Decode & 16 16
Control EMUC2/OC1/RD0
EMUD2/OC2/RD1
OC3/RD2
Control Signals DSP Divide OC4/RD3
to Various Blocks Power-up Engine OC5/CN13/RD4
Unit
Timer OC6/CN14/RD5
Timing Oscillator OC7/CN15/RD6
OSC1/CLKI OC8/CN16/RD7
Generation Start-up Timer
IC1/RD8
ALU<16> IC2/RD9
POR/BOR
IC3/RD10
Watchdog 16 16 IC4/RD11
MCLR IC5/RD12
Timer
Low-Voltage IC6/CN19/RD13
IC7/CN20/RD14
VDD, VSS Detect IC8/CN21/RD15
AVDD, AVSS PORTD
This section contains a brief overview of the CPU Overhead-free circular buffers (Modulo Addressing)
architecture of the dsPIC30F. For additional hard- are supported in both X and Y address spaces. This is
ware and programming information, please refer to primarily intended to remove the loop overhead for
the “dsPIC30F Family Reference Manual” (DS70046) DSP algorithms.
and the “16-bit MCU and DSC Programmer’s The X AGU also supports Bit-Reversed Addressing on
Reference Manual” (DS70157), respectively. destination effective addresses to greatly simplify input
The core has a 24-bit instruction word. The Program or output data reordering for radix-2 FFT algorithms.
Counter (PC) is 23-bits wide with the Least Significant Refer to Section 4.0 “Address Generator Units” for
bit (LSb) always clear (refer to Section 3.1 “Program details on modulo and Bit-Reversed Addressing.
Address Space”), and the Most Significant bit (MSb) The core supports Inherent (no operand), Relative,
is ignored during normal program execution, except for Literal, Memory Direct, Register Direct, Register
certain specialized instructions. Thus, the PC can Indirect, Register Offset and Literal Offset Addressing
address up to 4M instruction words of user program modes. Instructions are associated with predefined
space. An instruction prefetch mechanism is used to addressing modes, depending upon their functional
help maintain throughput. Program loop constructs, requirements.
free from loop count management overhead, are sup- For most instructions, the core is capable of executing
ported using the DO and REPEAT instructions, both of a data (or program data) memory read, a working reg-
which are interruptible at any point. ister (data) read, a data memory write and a program
The working register array consists of 16 x 16-bit regis- (instruction) memory read per instruction cycle. As a
ters, each of which can act as data, address or offset result, 3-operand instructions are supported, allowing
registers. One working register (W15) operates as a C = A + B operations to be executed in a single cycle.
software Stack Pointer for interrupts and calls. A DSP engine has been included to significantly
The data space is 64 Kbytes (32K words) and is split enhance the core arithmetic capability and throughput.
into two blocks, referred to as X and Y data memory. It features a high-speed 17-bit by 17-bit multiplier, a
Each block has its own independent Address Genera- 40-bit ALU, two 40-bit saturating accumulators and a
tion Unit (AGU). Most instructions operate solely 40-bit bidirectional barrel shifter. Data in the accumula-
through the X memory, AGU, which provides the tor or any working register can be shifted up to 16 bits
appearance of a single unified data space. The right, or 16 bits left in a single cycle. The DSP instruc-
Multiply-Accumulate (MAC) class of dual source DSP tions operate seamlessly with all other instructions and
instructions operate through both the X and Y AGUs, have been designed for optimal real-time performance.
splitting the data address space into two parts (see The MAC class of instructions can concurrently fetch
Section 3.2 “Data Address Space”). The X and Y two data operands from memory while multiplying two
data space boundary is device specific and cannot be W registers. To enable this concurrent fetching of data
altered by the user. Each data word consists of 2 bytes, operands, the data space has been split for these
and most instructions can address data either as words instructions and linear for all others. This has been
or bytes. achieved in a transparent and flexible manner, by ded-
icating certain working registers to each address space
for the MAC class of instructions.
D15 D0
W0/WREG
PUSH.S Shadow
W1
DO Shadow
W2
W3 Legend
W4
DSP Operand W5
Registers
W6
W7
Working Registers
W8
W9
DSP Address
Registers W10
W11
W12/DSP Offset
W13/DSP Write Back
W14/Frame Pointer
W15/Stack Pointer
PC22 PC0
0 Program Counter
7 0
TABPAG
TBLPAG Data Table Page Address
7 0
PSVPAG Program Space Visibility Page Address
15 0
RCOUNT REPEAT Loop Counter
15 0
DCOUNT DO Loop Counter
22 0
DOSTART DO Loop Start Address
22
DOEND DO Loop End Address
15 0
CORCON Core Configuration Register
SRH SRL
S
a
40 40-bit Accumulator A 40 Round t 16
40-bit Accumulator B u
Logic r
a
Carry/Borrow Out t
Saturate e
Carry/Borrow In Adder
Negate
40 40 40
Barrel
16
Shifter
40
X Data Bus
Sign-Extend
Y Data Bus
32 16
Zero Backfill
32
33
17-bit
Multiplier/Scaler
16 16
To/From W Array
00007E 00007E
Reserved 000080 Reserved 000080
User Memory
User Memory
Alternate Vector Table 000084 Alternate Vector Table 000084
0000FE
Space
0000FE
Space
User Flash 000100 User Flash 000100
Program Memory Program Memory
(44K instructions) (48K instructions)
015FFE 017FFE
016000 018000
Reserved Reserved
(Read ‘0’s) (Read ‘0’s)
7FF7FE 7FEFFE
7FF800 7FF000
Data EEPROM Data EEPROM
(2 Kbytes) (4 Kbytes)
7FFFFE 7FFFFE
800000 800000
Reserved Reserved
Configuration Memory
Configuration Memory
8005BE 8005BE
Space
Space
8005C0 8005C0
UNITID (32 instr.) UNITID (32 instr.)
8005FE 8005FE
800600 800600
Reserved Reserved
F7FFFE F7FFFE
Device Configuration F80000 Device Configuration F80000
Registers F8000E Registers F8000E
F80010 F80010
Reserved Reserved
FEFFFE FEFFFE
DEVID (2) FF0000 FF0000
DEVID (2)
FFFFFE FFFFFE
23 bits
Using
Program 0 Program Counter 0
Counter
Select
1 EA
Using
Program 0 PSVPAG Reg
Space
Visibility 8 bits 15 bits
EA
User/
Configuration Byte
Space 24-bit EA
Select
Select
Note: Program space visibility cannot be used to access bits <23:16> of a word in program memory.
PC Address 23 16 8 0
0x000000 00000000
0x000002 00000000
0x000004 00000000
0x000006 00000000
TBLRDL.B (Wn<0> = 0)
TBLRDL.W
Program Memory
‘Phantom’ Byte
TBLRDL.B (Wn<0> = 1)
(read as ‘0’)
TBLRDH.W
PC Address 23 16 8 0
0x000000 00000000
0x000002 00000000
0x000004 00000000
0x000006 00000000
TBLRDH.B (Wn<0> = 0)
Program Memory
‘Phantom’ Byte
(read as ‘0’) TBLRDH.B (Wn<0> = 1)
3.1.2 DATA ACCESS FROM PROGRAM Note that by incrementing the PC by 2 for each
MEMORY USING PROGRAM SPACE program memory word, the Least Significant 15 bits of
VISIBILITY data space addresses directly map to the Least Signif-
icant 15 bits in the corresponding program space
The upper 32 Kbytes of data space may optionally be addresses. The remaining bits are provided by the Pro-
mapped into any 16K word program space page. This gram Space Visibility Page register, PSVPAG<7:0>, as
provides transparent access of stored constant data shown in Figure 3-6.
from X data space without the need to use special
instructions (i.e., TBLRDL/H, TBLWTL/H instructions). Note: PSV access is temporarily disabled during
table reads/writes.
Program space access through the data space occurs
if the MSb of the data space EA is set and program For instructions that use PSV which are executed
space visibility is enabled by setting the PSV bit in the outside a REPEAT loop:
Core Control register (CORCON). The functions of
• The following instructions will require one
CORCON are discussed in Section 2.4 “DSP
instruction cycle in addition to the specified
Engine”.
execution time:
Data accesses to this area add an additional cycle to - MAC class of instructions with data operand
the instruction being executed, since two program prefetch
memory fetches are required.
- MOV instructions
Note that the upper half of addressable data space is - MOV.D instructions
always part of the X data space. Therefore, when a
• All other instructions will require two instruction
DSP operation uses program space mapping to access
cycles in addition to the specified execution time
this memory region, Y data space should typically con-
of the instruction.
tain state (variable) data for DSP operations, whereas
X data space should typically contain coefficient For instructions that use PSV which are executed
(constant) data. inside a REPEAT loop:
Although each data space address, 0x8000 and higher, • The following instances will require two instruction
maps directly into a corresponding program memory cycles in addition to the specified execution time
address (see Figure 3-6), only the lower 16 bits of the of the instruction:
24-bit program word are used to contain the data. The - Execution in the first iteration
upper 8 bits should be programmed to force an illegal - Execution in the last iteration
instruction to maintain machine robustness. Refer to - Execution prior to exiting the loop due to an
the “16-bit MCU and DSC Programmer’s Reference interrupt
Manual” (DS70157) for details on instruction encoding.
- Execution upon re-entering the loop after an
interrupt is serviced
• Any other iteration of the REPEAT loop will allow
the instruction accessing data, using PSV, to
execute in a single cycle.
Program Space
0x000100
Data Space
0x0000
15 PSVPAG(1)
EA<15> = 0 0x02
8
Data 16
Space 0x8000
15 23 15 0
EA Address
EA<15> = 1 Concatenation 23 0x010000
15
Note 1: PSVPAG is an 8-bit register, containing bits <22:15> of the program space address (i.e., it defines
the page in program space to which the upper half of data space is being mapped).
MSB LSB
Address 16 bits Address
MSB LSB
0x0001 0x0000
2 Kbyte
SFR Space
SFR Space 0x07FE
0x07FF
0x0801 0x0800
8 Kbyte
Near
X Data RAM (X) Data
Space
0x1FFF 0x1FFE
0x2001 0x2000
0x8001 0x8000
X Data
Unimplemented (X)
Optionally
Mapped
into Program
Memory
0xFFFF 0xFFFE
MSB LSB
Address 16 bits Address
MSB LSB
0x0001 0x0000
2 Kbyte
SFR Space
SFR Space 0x07FE
0x07FF
0x0801 0x0800
8 Kbyte
Near
X Data RAM (X) Data
Space
0x27FF 0x27FE
0x2801 0x2800
0x8001 0x8000
X Data
Unimplemented (X)
Optionally
Mapped
into Program
Memory
0xFFFF 0xFFFE
X SPACE
UNUSED
X SPACE
X SPACE
UNUSED
Indirect EA from any W Indirect EA from W10, W11 Indirect EA from W8, W9
POP : [--W15]
PUSH : [W15++]
DS70143E-page 37
dsPIC30F6011A/6012A/6013A/6014A
TABLE 3-3: CORE REGISTER MAP(1) (CONTINUED)
Address
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 Reset State
(Home)
SR 0042 OA OB SA SB OAB SAB DA DC IPL2 IPL1 IPL0 RA N OV Z C 0000 0000 0000 0000
CORCON 0044 — — — US EDT DL2 DL1 DL0 SATA SATB SATDW ACCSAT IPL3 PSV RND IF 0000 0000 0010 0000
MODCON 0046 XMODEN YMODEN — — BWM<3:0> YWM<3:0> XWM<3:0> 0000 0000 0000 0000
DS70143E-page 38
XMODSRT 0048 XS<15:1> 0 uuuu uuuu uuuu uuu0
XMODEND 004A XE<15:1> 1 uuuu uuuu uuuu uuu1
YMODSRT 004C YS<15:1> 0 uuuu uuuu uuuu uuu0
YMODEND 004E YE<15:1> 1 uuuu uuuu uuuu uuu1
XBREV 0050 BREN XB<14:0> uuuu uuuu uuuu uuuu
DISICNT 0052 — — DISICNT<13:0> 0000 0000 0000 0000
BSRAM 0750 — — — — — — — — — — — — — IW_BSR IR_BSR RL_BSR 0000 0000 0000 0000
SSRAM 0752 — — — — — — — — — — — — — IW_SSR IR_SSR RL_SSR 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
dsPIC30F6011A/6012A/6013A/6014A
• Register Direct
4.2 Modulo Addressing
• Register Indirect
• Register Indirect Post-modified Modulo Addressing is a method of providing an auto-
• Register Indirect Pre-modified mated means to support circular data buffers using
hardware. The objective is to remove the need for soft-
• Register Indirect with Register Offset (Indexed)
ware to perform data address boundary checks when
• Register Indirect with Literal Offset executing tightly looped code, as is typical in many
• 8-bit Literal DSP algorithms.
• 16-bit Literal Modulo Addressing can operate in either data or pro-
Note: Not all instructions support all the gram space (since the data pointer mechanism is
Addressing modes given above. essentially the same for both). One circular buffer can
Individual instructions may support be supported in each of the X (which also provides the
different subsets of these Addressing pointers into program space) and Y data spaces. Mod-
modes. ulo Addressing can operate on any W register pointer.
However, it is not advisable to use W14 or W15 for Mod-
4.1.4 MAC INSTRUCTIONS ulo Addressing since these two registers are used as
the Stack Frame Pointer and Stack Pointer,
The dual source operand DSP instructions (CLR, ED,
respectively.
EDAC, MAC, MPY, MPY.N, MOVSAC and MSC), also
referred to as MAC instructions, utilize a simplified set of In general, any particular circular buffer can only be
Addressing modes to allow the user to effectively configured to operate in one direction, as there are cer-
manipulate the data pointers through register indirect tain restrictions on the buffer start address (for incre-
tables. menting buffers), or end address (for decrementing
buffers) based upon the direction of the buffer.
The two source operand prefetch registers must be a
member of the set {W8, W9, W10, W11}. For data The only exception to the usage restrictions is for buf-
reads, W8 and W9 will always be directed to the X fers which have a power-of-2 length. As these buffers
RAGU and W10 and W11 will always be directed to the satisfy the start and end address criteria, they may
Y AGU. The effective addresses generated (before and operate in a Bidirectional mode (i.e., address boundary
after modification) must, therefore, be valid addresses checks will be performed on both the lower and upper
within X data space for W8 and W9 and Y data space address boundaries).
for W10 and W11.
Note: Register indirect with register offset
addressing is only available for W9 (in X
space) and W11 (in Y space).
Byte
Address MOV #0x1100,W0
MOV W0,XMODSRT ;set modulo start address
MOV #0x1163,W0
MOV W0,MODEND ;set modulo end address
0x1100 MOV #0x8001,W0
MOV W0,MODCON ;enable W1, X AGU for modulo
Pivot Point
XB = 0x0008 for a 16-word Bit-Reversed Buffer
The dsPIC30F Sensor and General Purpose Family has All interrupt sources can be user assigned to one of 7
up to 41 interrupt sources and 4 processor exceptions priority levels, 1 through 7, via the IPCx registers. Each
(traps) which must be arbitrated based on a priority interrupt source is associated with an interrupt vector,
scheme. as shown in Table 5-1. Levels 7 and 1 represent the
highest and lowest maskable priorities, respectively.
The CPU is responsible for reading the Interrupt Vector
Table (IVT) and transferring the address contained in the Note: Assigning a priority level of ‘0’ to an inter-
interrupt vector to the Program Counter. The interrupt rupt source is equivalent to disabling that
vector is transferred from the program data bus into the interrupt.
Program Counter via a 24-bit wide multiplexer on the
input of the Program Counter. If the NSTDIS bit (INTCON1<15>) is set, nesting of
interrupts is prevented. Thus, if an interrupt is currently
The Interrupt Vector Table (IVT) and Alternate Interrupt being serviced, processing of a new interrupt is pre-
Vector Table (AIVT) are placed near the beginning of vented even if the new interrupt is of higher priority than
program memory (0x000004). The IVT and AIVT are the one currently being serviced.
shown in Table 5-1.
Note: The IPL bits become read only whenever
The interrupt controller is responsible for pre-processing
the NSTDIS bit has been set to ‘1’.
the interrupts and processor exceptions prior to them
being presented to the processor core. The peripheral Certain interrupts have specialized control bits for fea-
interrupts and traps are enabled, prioritized and con- tures like edge or level triggered interrupts, interrupt-
trolled using centralized Special Function Registers: on-change, etc. Control of these features remains
• IFS0<15:0>, IFS1<15:0>, IFS2<15:0> within the peripheral module which generates the
All interrupt request flags are maintained in these interrupt.
three registers. The flags are set by their respective The DISI instruction can be used to disable the pro-
peripherals or external signals, and they are cessing of interrupts of priorities 6 and lower for a cer-
cleared via software. tain number of instructions, during which the DISI bit
• IEC0<15:0>, IEC1<15:0>, IEC2<15:0> (INTCON2<14>) remains set.
All interrupt enable control bits are maintained in
these three registers. These control bits are used to When an interrupt is serviced, the PC is loaded with the
individually enable interrupts from the peripherals address stored in the vector location in program mem-
or external signals. ory that corresponds to the interrupt. There are 63 dif-
• IPC0<15:0>... IPC10<7:0> ferent vectors within the IVT (refer to Table 5-1). These
The user assignable priority level associated with vectors are contained in locations 0x000004 through
each of these 41 interrupts is held centrally in these 0x0000FE of program memory (refer to Table 5-1).
twelve registers. These locations contain 24-bit addresses and in order
• IPL<3:0> to preserve robustness, an address error trap will take
The current CPU priority level is explicitly stored in place should the PC attempt to fetch any of these
the IPL bits. IPL<3> is present in the CORCON words during normal execution. This prevents execu-
register, whereas IPL<2:0> are present in the tion of random data as a result of accidentally decre-
STATUS register (SR) in the processor core. menting a PC into vector space, accidentally mapping
• INTTREG<15:0> a data space address into vector space, or the PC roll-
The associated interrupt vector number and the ing over to 0x000000 after reaching the end of imple-
new CPU interrupt priority level are latched into mented program memory space. Execution of a GOTO
vector number (VECNUM<5:0>) and Interrupt level instruction to this vector space will also generate an
(ILR<3:0>) bit fields in the INTTREG register. The address error trap.
new interrupt priority level is the priority of the
pending interrupt.
Decreasing
Math Error Trap Vector
value into the stack and executing a RETURN
Priority
IVT Reserved Vector
instruction Reserved Vector
Reserved Vector
Interrupt 0 Vector 0x000014
Stack Error Trap: Interrupt 1 Vector
~
This trap is initiated under the following conditions: ~
~
• The Stack Pointer is loaded with a value which is Interrupt 52 Vector
Interrupt 53 Vector 0x00007E
greater than the (user programmable) limit value Reserved 0x000080
written into the SPLIM register (stack overflow) Reserved 0x000082
Reserved 0x000084
• The Stack Pointer is loaded with a value which is Oscillator Fail Trap Vector
Address Error Trap Vector
less than 0x0800 (simple stack underflow) Stack Error Trap Vector
Math Error Trap Vector
Oscillator Fail Trap: AIVT Reserved Vector
Reserved Vector
This trap is initiated if the external oscillator fails and Reserved Vector
Interrupt 0 Vector 0x000094
operation becomes reliant on an internal RC backup. Interrupt 1 Vector
~
~
5.3.2 HARD AND SOFT TRAPS ~
Interrupt 52 Vector
It is possible that multiple traps can become active Interrupt 53 Vector 0x0000FE
within the same cycle (e.g., a misaligned word stack
write to an overflowed address). In such a case, the
fixed priority shown in Figure 5-1 is implemented, 5.4 Interrupt Sequence
which may require the user to check if other traps are
pending in order to completely correct the fault. All interrupt event flags are sampled in the beginning of
each instruction cycle by the IFSx registers. A pending
‘Soft’ traps include exceptions of priority level 8 through Interrupt Request (IRQ) is indicated by the flag bit
level 11, inclusive. The arithmetic error trap (level 11) being equal to a ‘1’ in an IFSx register. The IRQ will
falls into this category of traps. cause an interrupt to occur if the corresponding bit in
‘Hard’ traps include exceptions of priority level 12 the Interrupt Enable (IECx) register is set. For the
through level 15, inclusive. The address error (level remainder of the instruction cycle, the priorities of all
12), stack error (level 13) and oscillator error (level 14) pending interrupt requests are evaluated.
traps fall into this category. If there is a pending IRQ with a priority level greater
Each hard trap that occurs must be acknowledged than the current processor priority level in the IPL bits,
before code execution of any type may continue. If a the processor will be interrupted.
lower priority hard trap occurs while a higher priority The processor then stacks the current Program Coun-
trap is pending, acknowledged, or is being processed, ter and the low byte of the processor STATUS register
a hard trap conflict will occur. (SRL), as shown in Figure 5-2. The low byte of the
The device is automatically reset in a hard trap conflict STATUS register contains the processor priority level at
condition. The TRAPR status bit (RCON<15>) is set the time prior to the beginning of the interrupt cycle.
when the Reset occurs so that the condition may be The processor then loads the priority level for this inter-
detected in software. rupt into the STATUS register. This action will disable
all lower priority interrupts until the completion of the
Interrupt Service Routine.
instructions only.
Higher Address
INTCON1 0080 NSTDIS — — — — OVATE OVBTE COVTE — — — MATHERR ADDRERR STKERR OSCFAIL — 0000 0000 0000 0000
INTCON2 0082 ALTIVT DISI — — — — — — — — — INT4EP INT3EP INT2EP INT1EP INT0EP 0000 0000 0000 0000
DS70143E-page 50
IFS0 0084 CNIF MI2CIF SI2CIF NVMIF ADIF U1TXIF U1RXIF SPI1IF T3IF T2IF OC2IF IC2IF T1IF OC1IF IC1IF INT0IF 0000 0000 0000 0000
IFS1 0086 IC6IF IC5IF IC4IF IC3IF C1IF SPI2IF U2TXIF U2RXIF INT2IF T5IF T4IF OC4IF OC3IF IC8IF IC7IF INT1IF 0000 0000 0000 0000
IFS2 0088 — — — — — LVDIF 2 — — C2IF INT4IF INT3IF OC8IF OC7IF OC6IF OC5IF 0000 0000 0000 0000
DCIIF
IEC0 008C CNIE MI2CIE SI2CIE NVMIE ADIE U1TXIE U1RXIE SPI1IE T3IE T2IE OC2IE IC2IE T1IE OC1IE IC1IE INT0IE 0000 0000 0000 0000
IEC1 008E IC6IE IC5IE IC4IE IC3IE C1IE SPI2IE U2TXIE U2RXIE INT2IE T5IE T4IE OC4IE OC3IE IC8IE IC7IE INT1IE 0000 0000 0000 0000
IEC2 0090 — — — — — LVDIE 2 — — C2IE INT4IE INT3IE OC8IE OC7IE OC6IE OC5IE 0000 0000 0000 0000
DCIIE
IPC0 0094 — T1IP<2:0> — OC1IP<2:0> — IC1IP<2:0> — INT0IP<2:0> 0100 0100 0100 0100
IPC1 0096 — T31P<2:0> — T2IP<2:0> — OC2IP<2:0> — IC2IP<2:0> 0100 0100 0100 0100
IPC2 0098 — ADIP<2:0> — U1TXIP<2:0> — U1RXIP<2:0> — SPI1IP<2:0> 0100 0100 0100 0100
IPC3 009A — CNIP<2:0> — MI2CIP<2:0> — SI2CIP<2:0> — NVMIP<2:0> 0100 0100 0100 0100
IPC4 009C — OC3IP<2:0> — IC8IP<2:0> — IC7IP<2:0> — INT1IP<2:0> 0100 0100 0100 0100
IPC5 009E — INT2IP<2:0> — T5IP<2:0> — T4IP<2:0> — OC4IP<2:0> 0100 0100 0100 0100
IPC6 00A0 — C1IP<2:0> — SPI2IP<2:0> — U2TXIP<2:0> — U2RXIP<2:0> 0100 0100 0100 0100
IPC7 00A2 — IC6IP<2:0> — IC5IP<2:0> — IC4IP<2:0> — IC3IP<2:0> 0100 0100 0100 0100
IPC8 00A4 — OC8IP<2:0> — OC7IP<2:0> — OC6IP<2:0> — OC5IP<2:0> 0100 0100 0100 0100
IPC9 00A6 — — — — — C2IP<2:0> — INT41IP<2:0> — INT3IP<2:0> 0000 0100 0100 0100
IPC10 00A8 — — — — — LVDIP<2:0> — (2) — — — — 0000 0100 0100 0000
DCIIP<2:0>
INTTREG 00B0 — — — — — ILR<3:0> — — VECNUM<5:0> 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
2: These bits are not available in the dsPIC30F6011A and dsPIC30F6013A devices.
dsPIC30F6011A/6012A/6013A/6014A
NVMADR Reg EA
Using
NVMADR 1/0 NVMADRU Reg
Addressing
8 bits 16 bits
Working Reg EA
Byte
User/Configuration Select
Space Select 24-bit EA
Note: In Example 6-2, the contents of the upper byte of W3 has no effect.
6.6.4 INITIATING THE PROGRAMMING executed, the user must wait for the programming time
SEQUENCE until programming is complete. The two instructions
following the start of the programming sequence
For protection, the write initiate sequence for NVMKEY
should be NOPs.
must be used to allow any erase or program operation
to proceed. After the programming command has been
NVMCON 0760 WR WREN WRERR — — — — TWRI — PROGOP<6:0> 0000 0000 0000 0000
NVMADR 0762 NVMADR<15:0> uuuu uuuu uuuu uuuu
NVMADRU 0764 — — — — — — — — NVMADR<23:16> 0000 0000 uuuu uuuu
NVMKEY 0766 — — — — — — — — KEY<7:0> 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
Read TRIS
I/O Cell
TRIS Latch
Data Bus D Q
WR TRIS CK
Data Latch
D Q I/O Pad
WR LAT +
WR Port CK
Read LAT
Read Port
PIO Module 1
Output Data
0
Read TRIS
I/O Pad
Data Bus D Q
WR TRIS CK
TRIS Latch
D Q
WR LAT +
WR Port CK
Data Latch
Read LAT
Input Data
Read Port
PORTA(2) 02C2 RA15 RA14 RA13 RA12 — RA10 RA9 — RA7 RA6 — — — — — — 0000 0000 0000 0000
LATA 02C4 LATA15 LATA14 LATA13 LATA12 — LATA10 LATA9 — LATA7 LATA6 — — — — — — 0000 0000 0000 0000
Legend: — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
2: PORTA is not implemented in the dsPIC30F6011A/6012A devices.
TRISB 02C6 TRISB15 TRISB14 TRISB13 TRISB12 TRISB11 TRISB10 TRISB9 TRISB8 TRISB7 TRISB6 TRISB5 TRISB4 TRISB3 TRISB2 TRISB1 TRISB0 1111 1111 1111 1111
PORTB 02C8 RB15 RB14 RB13 RB12 RB11 RB10 RB9 RB8 RB7 RB6 RB5 RB4 RB3 RB2 RB1 RB0 0000 0000 0000 0000
LATB 02CB LATB15 LATB14 LATB13 LATB12 LATB11 LATB10 LATB9 LATB8 LATB7 LATB6 LATB5 LATB4 LATB3 LATB2 LATB1 LATB0 0000 0000 0000 0000
Legend: — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
TRISC 02CC TRISC15 TRISC14 TRISC13 — — — — — — — — — — TRISC2 TRISC1 — 1110 0000 0000 0110
PORTC 02CE RC15 RC14 RC13 — — — — — — — — — — RC2 RC1 — 0000 0000 0000 0000
LATC 02D0 LATC15 LATC14 LATC13 — — — — — — — — — — LATC2 LATC1 — 0000 0000 0000 0000
Legend: — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
TRISC 02CC TRISC15 TRISC14 TRISC13 — — — — — — — — TRISC4 TRISC3 TRISC2 TRISC1 — 1110 0000 0001 1110
PORTC 02CE RC15 RC14 RC13 — — — — — — — — RC4 RC3 RC2 RC1 — 0000 0000 0000 0000
LATC 02D0 LATC15 LATC14 LATC13 — — — — — — — — LATC4 LATC3 LATC2 LATC1 — 0000 0000 0000 0000
Legend: — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
DS70143E-page 63
dsPIC30F6011A/6012A/6013A/6014A
TABLE 8-5: PORTD REGISTER MAP FOR dsPIC30F6011A/6012A(1)
SFR
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 Reset State
TRISD 02D2 — — — — TRISD11 TRISD10 TRISD9 TRISD8 TRISD7 TRISD6 TRISD5 TRISD4 TRISD3 TRISD2 TRISD1 TRISD0 0000 1111 1111 1111
PORTD 02D4 — — — — RD11 RD10 RD9 RD8 RD7 RD6 RD5 RD4 RD3 RD2 RD1 RD0 0000 0000 0000 0000
LATD 02D6 — — — — LATD11 LATD10 LATD9 LATD8 LATD7 LATD6 LATD5 LATD4 LATD3 LATD2 LATD1 LATD0 0000 0000 0000 0000
DS70143E-page 64
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
TRISD 02D2 TRISD15 TRISD14 TRISD13 TRISD12 TRISD11 TRISD10 TRISD9 TRISD8 TRISD7 TRISD6 TRISD5 TRISD4 TRISD3 TRISD2 TRISD1 TRISD0 1111 1111 1111 1111
PORTD 02D4 RD15 RD14 RD13 RD12 RD11 RD10 RD9 RD8 RD7 RD6 RD5 RD4 RD3 RD2 RD1 RD0 0000 0000 0000 0000
LATD 02D6 LATD15 LATD14 LATD13 LATD12 LATD11 LATD10 LATD9 LATD8 LATD7 LATD6 LATD5 LATD4 LATD3 LATD2 LATD1 LATD0 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
TRISF 02DE — — — — — — — — — TRISF6 TRISF5 TRISF4 TRISF3 TRISF2 TRISF1 TRISF0 0000 0000 0111 1111
PORTF 02E0 — — — — — — — — — RF6 RF5 RF4 RF3 RF2 RF1 RF0 0000 0000 0000 0000
LATF 02E2 — — — — — — — — — LATF6 LATF5 LATF4 LATF3 LATF2 LATF1 LATF0 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
TRISF 02DE — — — — — — — TRISF8 TRISF7 TRISF6 TRISF5 TRISF4 TRISF3 TRISF2 TRISF1 TRISF0 0000 0001 1111 1111
PORTF 02E0 — — — — — — — RF8 RF7 RF6 RF5 RF4 RF3 RF2 RF1 RF0 0000 0000 0000 0000
LATF 02E2 — — — — — — — LATF8 LATF7 LATF6 LATF5 LATF4 LATF3 LATF2 LATF1 LATF0 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
dsPIC30F6011A/6012A/6013A/6014A
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
TRISG 02E4 TRISG15 TRISG14 TRISG13 TRISG12 — — TRISG9 TRISG8 TRISG7 TRISG6 — — TRISG3 TRISG2 TRISG1 TRISG0 1111 0011 1100 1111
PORTG 02E6 RG15 RG14 RG13 RG12 — — RG9 RG8 RG7 RG6 — — RG3 RG2 RG1 RG0 0000 0000 0000 0000
LATG 02E8 LATG15 LATG14 LATG13 LATG12 — — LATG9 LATG8 LATG7 LATG6 — — LATG3 LATG2 LATG1 LATG0 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
CNEN1 00C0 CN15IE CN14IE CN13IE CN12IE CN11IE CN10IE CN9IE CN8IE 0000 0000 0000 0000
CNEN2 00C2 — — — — — — — — 0000 0000 0000 0000
CNPU1 00C4 CN15PUE CN14PUE CN13PUE CN12PUE CN11PUE CN10PUE CN9PUE CN8PUE 0000 0000 0000 0000
CNPU2 00C6 — — — — — — — — 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
CNEN1 00C0 CN7IE CN6IE CN5IE CN4IE CN3IE CN2IE CN1IE CN0IE 0000 0000 0000 0000
CNEN2 00C2 — — — — — CN18IE CN17IE CN16IE 0000 0000 0000 0000
CNPU1 00C4 CN7PUE CN6PUE CN5PUE CN4PUE CN3PUE CN2PUE CN1PUE CN0PUE 0000 0000 0000 0000
CNPU2 00C6 — — — — — CN18PUE CN17PUE CN16PUE 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
CNEN1 00C0 CN15IE CN14IE CN13IE CN12IE CN11IE CN10IE CN9IE CN8IE 0000 0000 0000 0000
CNEN2 00C2 — — — — — — — — 0000 0000 0000 0000
CNPU1 00C4 CN15PUE CN14PUE CN13PUE CN12PUE CN11PUE CN10PUE CN9PUE CN8PUE 0000 0000 0000 0000
CNPU2 00C6 — — — — — — — — 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
CNEN1 00C0 CN7IE CN6IE CN5IE CN4IE CN3IE CN2IE CN1IE CN0IE 0000 0000 0000 0000
CNEN2 00C2 CN23IE CN22IE CN21IE CN20IE CN19IE CN18IE CN17IE CN16IE 0000 0000 0000 0000
CNPU1 00C4 CN7PUE CN6PUE CN5PUE CN4PUE CN3PUE CN2PUE CN1PUE CN0PUE 0000 0000 0000 0000
CNPU2 00C6 CN23PUE CN22PUE CN21PUE CN20PUE CN19PUE CN18PUE CN17PUE CN16PUE 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
PR1
Equal
Comparator x 16 TSYNC
1 Sync
TMR1
Reset
0 0
T1IF
Event Flag 1
Q D TGATE
TGATE
Q CK
TCS
TGATE
TCKPS<1:0>
SOSCO/ TON 2
T1CK 1x
Gate Prescaler
LPOSCEN 1, 8, 64, 256
Sync 01
SOSCI
TCY 00
DS70143E-page 70
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
dsPIC30F6011A/6012A/6013A/6014A
Data Bus<15:0>
TMR3HLD
16
16
Write TMR2
Read TMR2
16
Reset
TMR3 TMR2 Sync
MSB LSB
ADC Event Trigger
Comparator x 32
Equal
PR3 PR2
0
T3IF
Event Flag
1 Q D TGATE (T2CON<6>)
Q CK
TGATE
(T2CON<6>)
TGATE
TCS
TCKPS<1:0>
TON 2
T2CK 1x
Gate Prescaler
Sync 01 1, 8, 64, 256
TCY 00
Note: Timer configuration bit T32 (T2CON<3>) must be set to ‘1’ for a 32-bit timer/counter operation. All control
bits are respective to the T2CON register.
PR2
Equal
Comparator x 16
TMR2 Sync
Reset
0
T2IF
Event Flag 1 Q D TGATE
Q CK
TGATE
TGATE
TCS
TCKPS<1:0>
TON 2
T2CK 1x
Gate Prescaler
Sync 01 1, 8, 64, 256
TCY 00
PR3
TMR3
Reset
0
T3IF
Event Flag 1 Q D TGATE
Q CK
TGATE
TGATE
TCS
TCKPS<1:0>
TON 2
T3CK Sync 1x
Prescaler
01 1, 8, 64, 256
TCY 00
DS70143E-page 75
dsPIC30F6011A/6012A/6013A/6014A
dsPIC30F6011A/6012A/6013A/6014A
NOTES:
TMR5HLD
16
16
Write TMR4
Read TMR4
16
Reset
TMR5 TMR4 Sync
MSB LSB
Comparator x 32
Equal
PR5 PR4
0
T5IF
Event Flag 1 Q D TGATE (T4CON<6>)
Q CK
TGATE
(T4CON<6>)
TGATE
TCS
TCKPS<1:0>
TON 2
T4CK 1x
Prescaler
Gate
01 1, 8, 64, 256
Sync
TCY 00
Note: Timer configuration bit T32 (T4CON<3>) must be set to ‘1’ for a 32-bit timer/counter operation. All control
bits are respective to the T4CON register.
PR4
Equal
Comparator x 16
TMR4 Sync
Reset
0
T4IF
Event Flag 1 Q D TGATE
Q CK
TGATE
TGATE
TCS
TCKPS<1:0>
TON 2
T4CK 1x
Gate Prescaler
Sync 01 1, 8, 64, 256
TCY 00
PR5
TMR5
Reset
0
T5IF
Event Flag 1 Q D TGATE
Q CK
TGATE
TGATE
TCS
TCKPS<1:0>
TON 2
T5CK Sync 1x
Prescaler
01 1, 8, 64, 256
TCY 00
Note: In the dsPIC30F6011A and dsPIC30F6012A devices, there is no T5CK pin. Therefore, in this device the
following modes should not be used for Timer5:
TCS = 1 (16-bit Counter)
TCS = 0, TGATE = 1 (Gated Time Accumulation)
DS70143E-page 79
dsPIC30F6011A/6012A/6013A/6014A
dsPIC30F6011A/6012A/6013A/6014A
NOTES:
16 16
ICTMR
ICx pin 1 0
Prescaler Clock Edge FIFO
1, 4, 16 Synchronizer Detection R/W
Logic Logic
3 ICM<2:0>
Mode Select ICxBUF
ICBNE, ICOV
ICI<1:0>
Interrupt
ICxCON Logic
Note: Where ‘x’ is shown, reference is made to the registers or bits associated to the respective input capture
channels 1 through N.
DS70143E-page 83
dsPIC30F6011A/6012A/6013A/6014A
dsPIC30F6011A/6012A/6013A/6014A
NOTES:
OCxRS
OCxR Output S Q
Logic R
OCx
Output
3
Enable
OCM<2:0>
Comparator Mode Select
OCTSEL OCFA
0 1 0 1 (for x = 1, 2, 3 or 4)
or OCFB
From General Purpose (for x = 5, 6, 7 or 8)
Timer Module
Note: Where ‘x’ is shown, reference is made to the registers associated with the respective output compare
channels 1 through N.
13.3 Dual Output Compare Match Mode The user must perform the following steps in order to
configure the output compare module for PWM
When control bits OCM<2:0> (OCxCON<2:0>) = 100 operation:
or 101, the selected output compare channel is config-
1. Set the PWM period by writing to the appropriate
ured for one of two Dual Output Compare modes,
period register.
which are:
2. Set the PWM duty cycle by writing to the OCxRS
• Single Output Pulse mode register.
• Continuous Output Pulse mode 3. Configure the output compare module for PWM
operation.
13.3.1 SINGLE PULSE MODE
4. Set the TMRx prescale value and enable the
For the user to configure the module for the generation Timer, TON (TxCON<15>) = 1.
of a single output pulse, the following steps are
required (assuming timer is off): 13.4.1 INPUT PIN FAULT PROTECTION
1. Determine instruction cycle time TCY. FOR PWM
2. Calculate desired pulse width value based on When control bits OCM<2:0> (OCxCON<2:0>) = 111,
TCY. the selected output compare channel is again config-
3. Calculate time to start pulse from timer start ured for the PWM mode of operation with the additional
value of 0x0000. feature of input Fault protection. While in this mode, if
4. Write pulse width start and stop times into OCxR a logic ‘0’ is detected on the OCFA/B pin, the respective
and OCxRS Compare registers (x denotes PWM output pin is placed in the high-impedance input
channel 1, 2, ...,N). state. The OCFLT bit (OCxCON<4>) indicates whether
a Fault condition has occurred. This state will be main-
5. Set Timer Period register to value equal to, or
tained until both of the following events have occurred:
greater than value in OCxRS Compare register.
6. Set OCM<2:0> = 100. • The external Fault condition has been removed.
7. Enable timer, TON (TxCON<15>) = 1. • The PWM mode has been re-enabled by writing
to the appropriate control bits.
To initiate another single pulse, issue another write to
set OCM<2:0> = 100.
Duty Cycle
TMR3 = PR3
TMR3 = PR3 T3IF = 1
T3IF = 1 (Interrupt Flag)
(Interrupt Flag) OCxR = OCxRS
OCxR = OCxRS
TMR3 = Duty Cycle TMR3 = Duty Cycle
(OCxR) (OCxR)
OC1RS 0180 Output Compare 1 Secondary Register 0000 0000 0000 0000
OC1R 0182 Output Compare 1 Main Register 0000 0000 0000 0000
OC1CON 0184 — — OCSIDL — — — — — — — — OCFLT OCTSEL OCM<2:0> 0000 0000 0000 0000
OC2RS 0186 Output Compare 2 Secondary Register 0000 0000 0000 0000
OC2R 0188 Output Compare 2 Main Register 0000 0000 0000 0000
OC2CON 018A — — OCSIDL — — — — — — — — OCFLT OCTSE OCM<2:0> 0000 0000 0000 0000
OC3RS 018C Output Compare 3 Secondary Register 0000 0000 0000 0000
DS70143E-page 89
dsPIC30F6011A/6012A/6013A/6014A
dsPIC30F6011A/6012A/6013A/6014A
NOTES:
Internal
Data Bus
Read Write
SPIxBUF SPIxBUF
Receive Transmit
SPIxSR
SDIx bit 0
SDOx Shift
Clock
SS and FSYNC Clock Edge
Control Select
Control
SSx
Secondary Primary
Prescaler Prescaler FCY
1:1 – 1:8 1, 4, 16, 64
SCKx
Note: x = 1 or 2.
Note: x = 1 or 2, y = 1 or 2.
SPI1STAT 0220 SPIEN — SPISIDL — — — — — — SPIROV — — — — SPITBF SPIRBF 0000 0000 0000 0000
SPI1CON 0222 — FRMEN SPIFSD — DISSDO MODE16 SMP CKE SSEN CKP MSTEN SPRE2 SPRE1 SPRE0 PPRE1 PPRE0 0000 0000 0000 0000
SPI1BUF 0224 Transmit and Receive Buffer 0000 0000 0000 0000
DS70143E-page 94
Legend: — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
SPI2STAT 0226 SPIEN — SPISIDL — — — — — — SPIROV — — — — SPITBF SPIRBF 0000 0000 0000 0000
SPI2CON 0228 — FRMEN SPIFSD — DISSDO MODE16 SMP CKE SSEN CKP MSTEN SPRE2 SPRE1 SPRE0 PPRE1 PPRE0 0000 0000 0000 0000
SPI2BUF 022A Transmit and Receive Buffer 0000 0000 0000 0000
Legend: — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
dsPIC30F6011A/6012A/6013A/6014A
I2CRCV (8 bits)
Bit 7 Bit 0
I2CTRN (8 bits)
Bit 7 Bit 0
I2CBRG (9 bits)
Bit 8 Bit 0
I2CCON (16 bits)
Bit 15 Bit 0
I2CSTAT (16 bits)
Bit 15 Bit 0
I2CADD (10 bits)
Bit 9 Bit 0
Internal
Data Bus
I2CRCV
Read
Shift
SCL Clock
I2CRSR
LSB
SDA Addr_Match
Match Detect
Write
I2CADD
Read
Start and
Stop bit Detect
Write
I2CSTAT
Start, Restart,
Stop bit Generate
Read
Control Logic
Collision
Detect
Write
I2CCON
Acknowledge
Read
Generation
Clock
Stretching Write
I2CTRN
LSB
Shift Read
Clock
Reload
Control Write
In Slave Transmit modes, clock stretching is always 15.5.4 CLOCK STRETCHING DURING
performed irrespective of the STREN bit. 10-BIT ADDRESSING (STREN = 1)
Clock synchronization takes place following the ninth Clock stretching takes place automatically during the
clock of the transmit sequence. If the device samples addressing sequence. Because this module has a
an ACK on the falling edge of the ninth clock and if the register for the entire address, it is not necessary for
TBF bit is still clear, then the SCLREL bit is automati- the protocol to wait for the address to be updated.
cally cleared. The SCLREL being cleared to ‘0’ will
assert the SCL line low. The user’s ISR must set the After the address phase is complete, clock stretching
SCLREL bit before transmission is allowed to continue. will occur on each data receive or transmit sequence as
By holding the SCL line low, the user has time to ser- was described earlier.
vice the ISR and load the contents of the I2CTRN
before the master device can initiate another transmit 15.6 Software Controlled Clock
sequence. Stretching (STREN = 1)
Note 1: If the user loads the contents of I2CTRN, When the STREN bit is ‘1’, the SCLREL bit may be
setting the TBF bit before the falling edge cleared by software to allow software to control the
of the ninth clock, the SCLREL bit will not clock stretching. The logic will synchronize writes to the
be cleared and clock stretching will not SCLREL bit with the SCL clock. Clearing the SCLREL
occur. bit will not assert the SCL output until the module
2: The SCLREL bit can be set in software, detects a falling edge on the SCL output and SCL is
regardless of the state of the TBF bit. sampled low. If the SCLREL bit is cleared by the user
while the SCL line has been sampled low, the SCL out-
15.5.2 RECEIVE CLOCK STRETCHING put will be asserted (held low). The SCL output will
remain low until the SCLREL bit is set, and all other
The STREN bit in the I2CCON register can be used to devices on the I2C bus have deasserted SCL. This
enable clock stretching in Slave Receive mode. When ensures that a write to the SCLREL bit will not violate
the STREN bit is set, the SCL pin will be held low at the the minimum high time requirement for SCL.
end of each data receive sequence.
If the STREN bit is ‘0’, a software write to the SCLREL
15.5.3 CLOCK STRETCHING DURING bit will be disregarded and have no effect on the
7-BIT ADDRESSING (STREN = 1) SCLREL bit.
Write Write
Load TSR
UxTXIF
UTXBRK
Data
Transmit Shift Register (UxTSR)
‘0’ (Start)
UxTX
‘1’ (Stop)
Control
Signals
Note: x = 1 or 2.
UxMODE UxSTA
LPBACK 8-9
From UxTX
1 Load RSR
to Buffer Control
FERR
PERR
Receive Shift Register Signals
UxRX 0 (UxRSR)
U1MODE 020C UARTEN — USIDL — — — — — WAKE LPBACK ABAUD — — PDSEL1 PDSEL0 STSEL 0000 0000 0000 0000
U1STA 020E UTXISEL — — — UTXBRK UTXEN UTXBF TRMT URXISEL1 URXISEL0 ADDEN RIDLE PERR FERR OERR URXDA 0000 0001 0001 0000
U1TXREG 0210 — — — — — — — UTX8 Transmit Register 0000 000u uuuu uuuu
U1RXREG 0212 — — — — — — — URX8 Receive Register 0000 0000 0000 0000
U1BRG 0214 Baud Rate Generator Prescaler 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
U2MODE 0216 UARTEN — USIDL — — — — — WAKE LPBACK ABAUD — — PDSEL1 PDSEL0 STSEL 0000 0000 0000 0000
U2STA 0218 UTXISEL — — — UTXBRK UTXEN UTXBF TRMT URXISEL1 URXISEL0 ADDEN RIDLE PERR FERR OERR URXDA 0000 0001 0001 0000
U2TXREG 021A — — — — — — — UTX8 Transmit Register 0000 000u uuuu uuuu
U2RXREG 021C — — — — — — — URX8 Receive Register 0000 0000 0000 0000
U2BRG 021E Baud Rate Generator Prescaler 0000 0000 0000 0000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
DS70143E-page 109
dsPIC30F6011A/6012A/6013A/6014A
dsPIC30F6011A/6012A/6013A/6014A
NOTES:
Acceptance Mask
BUFFERS RXM1
Acceptance Filter
RXF2
MESSAGE
MESSAGE
MTXBUFF
MTXBUFF
MTXBUFF
MSGREQ
MSGREQ
MSGREQ
RXF0 RXF4
TXLARB
TXLARB
TXLARB
c p
TXERR
TXERR
TXERR
TXABT
TXABT
TXABT
e t
Acceptance Filter Acceptance Filter
p
RXF1 RXF5
t
R R
X Identifier M Identifier X
Message B A B
Queue 0 B 1
Control
Transmit Byte Sequencer Data Field Data Field
Receive RERRCNT
Error
Counter
PROTOCOL TERRCNT
Protocol
Finite
CRC Generator CRC Check
State
Machine
Bit
Transmit
Timing Bit Timing
Logic
Logic Generator
CiTX(1) CiRX(1)
Input Signal
Sample Point
TQ
DS70143E-page 118
C1RXF1EIDH 030A — — — — Receive Acceptance Filter 1 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C1RXF1EIDL 030C Receive Acceptance Filter 1 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C1RXF2SID 0310 — — — Receive Acceptance Filter 2 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C1RXF2EIDH 0312 — — — — Receive Acceptance Filter 2 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C1RXF2EIDL 0314 Receive Acceptance Filter 2 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C1RXF3SID 0318 — — — Receive Acceptance Filter 3 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C1RXF3EIDH 031A — — — — Receive Acceptance Filter 3 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C1RXF3EIDL 031C Receive Acceptance Filter 3 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C1RXF4SID 0320 — — — Receive Acceptance Filter 4 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C1RXF4EIDH 0322 — — — — Receive Acceptance Filter 4 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C1RXF4EIDL 0324 Receive Acceptance Filter 4 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C1RXF5SID 0328 — — — Receive Acceptance Filter 5 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C1RXF5EIDH 032A — — — — Receive Acceptance Filter 5 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C1RXF5EIDL 032C Receive Acceptance Filter 5 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C1RXM0SID 0330 — — — Receive Acceptance Mask 0 Standard Identifier <10:0> — MIDE 000u uuuu uuuu uu0u
C1RXM0EIDH 0332 — — — — Receive Acceptance Mask 0 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C1RXM0EIDL 0334 Receive Acceptance Mask 0 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C1RXM1SID 0338 — — — Receive Acceptance Mask 1 Standard Identifier <10:0> — MIDE 000u uuuu uuuu uu0u
C1RXM1EIDH 033A — — — — Receive Acceptance Mask 1 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C1RXM1EIDL 033C Receive Acceptance Mask 1 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C1TX2SID 0340 Transmit Buffer 2 Standard Identifier <10:6> — — — Transmit Buffer 2 Standard Identifier <5:0> SRR TXIDE uuuu u000 uuuu uuuu
C1TX2EID 0342 Transmit Buffer 2 Extended Identifier <17:14> — — — — Transmit Buffer 2 Extended Identifier <13:6> uuuu 0000 uuuu uuuu
C1TX2DLC 0344 Transmit Buffer 2 Extended Identifier <5:0> TXRTR TXRB1 TXRB0 DLC<3:0> — — — uuuu uuuu uuuu u000
C1TX2B1 0346 Transmit Buffer 2 Byte 1 Transmit Buffer 2 Byte 0 uuuu uuuu uuuu uuuu
C1TX2B2 0348 Transmit Buffer 2 Byte 3 Transmit Buffer 2 Byte 2 uuuu uuuu uuuu uuuu
dsPIC30F6011A/6012A/6013A/6014A
C1TX2B3 034A Transmit Buffer 2 Byte 5 Transmit Buffer 2 Byte 4 uuuu uuuu uuuu uuuu
C1TX2B4 034C Transmit Buffer 2 Byte 7 Transmit Buffer 2 Byte 6 uuuu uuuu uuuu uuuu
C1TX2CON 034E — — — — — — — — — TXABT TXLARB TXERR TXREQ — TXPRI<1:0> 0000 0000 0000 0000
C1TX1SID 0350 Transmit Buffer 1 Standard Identifier <10:6> — — — Transmit Buffer 1 Standard Identifier <5:0> SRR TXIDE uuuu u000 uuuu uuuu
C1TX1EID 0352 Transmit Buffer 1 Extended Identifier <17:14> — — — — Transmit Buffer 1 Extended Identifier <13:6> uuuu 0000 uuuu uuuu
C1TX1DLC 0354 Transmit Buffer 1 Extended Identifier <5:0> TXRTR TXRB1 TXRB0 DLC<3:0> — — — uuuu uuuu uuuu u000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
DS70143E-page 119
dsPIC30F6011A/6012A/6013A/6014A
TABLE 17-2: CAN2 REGISTER MAP(1)
SFR 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 Reset State
C2RXF0SID 03C0 — — — Receive Acceptance Filter 0 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C2RXF0EIDH 03C2 — — — — Receive Acceptance Filter 0 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RXF0EIDL 03C4 Receive Acceptance Filter 0 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C2RXF1SID 03C8 — — — Receive Acceptance Filter 1 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
DS70143E-page 120
C2RXF1EIDH 03CA — — — — Receive Acceptance Filter 1 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RXF1EIDL 03CC Receive Acceptance Filter 1 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C2RXF2SID 03D0 — — — Receive Acceptance Filter 2 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C2RXF2EIDH 03D2 — — — — Receive Acceptance Filter 2 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RXF2EIDL 03D4 Receive Acceptance Filter 2 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C2RXF3SID 03D8 — — — Receive Acceptance Filter 3 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C2RXF3EIDH 03DA — — — — Receive Acceptance Filter 3 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RXF3EIDL 03DC Receive Acceptance Filter 3 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C2RXF4SID 03E0 — — — Receive Acceptance Filter 4 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C2RXF4EIDH 03E2 — — — — Receive Acceptance Filter 4 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RXF4EIDL 03E4 Receive Acceptance Filter 4 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C2RXF5SID 03E8 — — — Receive Acceptance Filter 5 Standard Identifier <10:0> — EXIDE 000u uuuu uuuu uu0u
C2RXF5EIDH 03EA — — — — Receive Acceptance Filter 5 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RXF5EIDL 03EC Receive Acceptance Filter 5 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C2RXM0SID 03F0 — — — Receive Acceptance Mask 0 Standard Identifier <10:0> — MIDE 000u uuuu uuuu uu0u
C2RXM0EIDH 03F2 — — — — Receive Acceptance Mask 0 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RXM0EIDL 03F4 Receive Acceptance Mask 0 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C2RXM1SID 03F8 — — — Receive Acceptance Mask 1 Standard Identifier <10:0> — MIDE 000u uuuu uuuu uu0u
C2RXM1EIDH 03FA — — — — Receive Acceptance Mask 1 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RXM1EIDL 03FC Receive Acceptance Mask 1 Extended Identifier <5:0> — — — — — — — — — — uuuu uu00 0000 0000
C2TX2SID 0400 Transmit Buffer 2 Standard Identifier <10:6> — — — Transmit Buffer 2 Standard Identifier <5:0> SRR TXIDE uuuu u000 uuuu uuuu
C2TX2EID 0402 Transmit Buffer 2 Extended Identifier <17:14> — — — — Transmit Buffer 2 Extended Identifier <13:6> uuuu 0000 uuuu uuuu
C2TX2DLC 0404 Transmit Buffer 2 Extended Identifier <5:0> TXRTR TXRB1 TXRB0 DLC<3:0> — — — uuuu uuuu uuuu u000
C2TX2B1 0406 Transmit Buffer 2 Byte 1 Transmit Buffer 2 Byte 0 uuuu uuuu uuuu uuuu
C2TX2B2 0408 Transmit Buffer 2 Byte 3 Transmit Buffer 2 Byte 2 uuuu uuuu uuuu uuuu
C2TX2B3 040A Transmit Buffer 2 Byte 5 Transmit Buffer 2 Byte 4 uuuu uuuu uuuu uuuu
C2TX2B4 040C Transmit Buffer 2 Byte 7 Transmit Buffer 2 Byte 6 uuuu uuuu uuuu uuuu
C2TX2CON 040E — — — — — — — — — TXABT TXLARB TXERR TXREQ — TXPRI<1:0> 0000 0000 0000 0000
C2TX1SID 0410 Transmit Buffer 1 Standard Identifier <10:6> — — — Transmit Buffer 1 Standard Identifier <5:0> SRR TXIDE uuuu u000 uuuu uuuu
C2TX1EID 0412 Transmit Buffer 1 Extended Identifier <17:14> — — — — Transmit Buffer 1 Extended Identifier <13:6> uuuu 0000 uuuu uuuu
dsPIC30F6011A/6012A/6013A/6014A
C2TX1DLC 0414 Transmit Buffer 1 Extended Identifier <5:0> TXRTR TXRB1 TXRB0 DLC<3:0> — — — uuuu uuuu uuuu u000
Legend: u = uninitialized bit; — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
DS70143E-page 121
C2TX0SID 0420 Transmit Buffer 0 Standard Identifier <10:6> — — — Transmit Buffer 0 Standard Identifier <5:0> SRR TXIDE uuuu u000 uuuu uuuu
C2TX0EID 0422 Transmit Buffer 0 Extended Identifier <17:14> — — — — Transmit Buffer 0 Extended Identifier <13:6> uuuu 0000 uuuu uuuu
C2TX0DLC 0424 Transmit Buffer 0 Extended Identifier <5:0> TXRTR TXRB1 TXRB0 DLC<3:0> — — — uuuu uuuu uuuu u000
C2TX0B1 0426 Transmit Buffer 0 Byte 1 Transmit Buffer 0 Byte 0 uuuu uuuu uuuu uuuu
C2TX0B2 0428 Transmit Buffer 0 Byte 3 Transmit Buffer 0 Byte 2 uuuu uuuu uuuu uuuu
C2TX0B3 042A Transmit Buffer 0 Byte 5 Transmit Buffer 0 Byte 4 uuuu uuuu uuuu uuuu
C2TX0B4 042C Transmit Buffer 0 Byte 7 Transmit Buffer 0 Byte 6 uuuu uuuu uuuu uuuu
C2TX0CON 042E — — — — — — — — — TXABT TXLARB TXERR TXREQ — TXPRI<1:0> 0000 0000 0000 0000
C2RX1SID 0430 — — — Receive Buffer 1 Standard Identifier <10:0> SRR RXIDE 000u uuuu uuuu uuuu
C2RX1EID 0432 — — — — Receive Buffer 1 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RX1DLC 0434 Receive Buffer 1 Extended Identifier <5:0> RXRTR RXRB1 — — — RXRB0 DLC<3:0> uuuu uuuu 000u uuuu
C2RX1B1 0436 Receive Buffer 1 Byte 1 Receive Buffer 1 Byte 0 uuuu uuuu uuuu uuuu
C2RX1B2 0438 Receive Buffer 1 Byte 3 Receive Buffer 1 Byte 2 uuuu uuuu uuuu uuuu
C2RX1B3 043A Receive Buffer 1 Byte 5 Receive Buffer 1 Byte 4 uuuu uuuu uuuu uuuu
C2RX1B4 043C Receive Buffer 1 Byte 7 Receive Buffer 1 Byte 6 uuuu uuuu uuuu uuuu
C2RX1CON 043E — — — — — — — — RXFUL — — — RXRTRRO FILHIT<2:0> 0000 0000 0000 0000
C2RX0SID 0440 — — — Receive Buffer 0 Standard Identifier <10:0> SRR RXIDE 000u uuuu uuuu uuuu
C2RX0EID 0442 — — — — Receive Buffer 0 Extended Identifier <17:6> 0000 uuuu uuuu uuuu
C2RX0DLC 0444 Receive Buffer 0 Extended Identifier <5:0> RXRTR RXRB1 — — — RXRB0 DLC<3:0> uuuu uuuu 000u uuuu
C2RX0B1 0446 Receive Buffer 0 Byte 1 Receive Buffer 0 Byte 0 uuuu uuuu uuuu uuuu
C2RX0B2 0448 Receive Buffer 0 Byte 3 Receive Buffer 0 Byte 2 uuuu uuuu uuuu uuuu
C2RX0B3 044A Receive Buffer 0 Byte 5 Receive Buffer 0 Byte 4 uuuu uuuu uuuu uuuu
C2RX0B4 044C Receive Buffer 0 Byte 7 Receive Buffer 0 Byte 6 uuuu uuuu uuuu uuuu
C2RX0CON 044E — — — — — — — — RXFUL — — — RXRTRRO DBEN JTOFF FILHIT0 0000 0000 0000 0000
C2CTRL 0450 CANCAP — CSIDLE ABAT CANCKS REQOP<2:0> OPMODE<2:0> — ICODE<2:0> — 0000 0100 1000 0000
C2CFG1 0452 — — — — — — — — SJW<1:0> BRP<5:0> 0000 0000 0000 0000
C2CFG2 0454 — WAKFIL — — — SEG2PH<2:0> SEG2PHTS SAM SEG1PH<2:0> PRSEG<2:0> 0u00 0uuu uuuu uuuu
C2INTF 0456 RX0OVR RX1OVR TXBO TXEP RXEP TXWAR RXWAR EWARN IVRIF WAKIF ERRIF TX2IF TX1IF TX0IF RX1IF RX0IF 0000 0000 0000 0000
C2INTE 0458 — — — — — — — — IVRIE WAKIE ERRIE TX2IE TX1IE TX0IE RX1E RX0IE 0000 0000 0000 0000
C2EC 045A Transmit Error Count Register Receive Error Count Register 0000 0000 0000 0000
dsPIC30F6011A/6012A/6013A/6014A
Sample Rate
FOSC/4 CSCK
Generator
FSD
Word Size Selection bits Frame
Frame Length Selection bits Synchronization COFS
DCI Mode Selection bits Generator
16-bit Data Bus
Receive Buffer
Registers w/Shadow
DCI Buffer
Control Unit
15 0
Transmit Buffer
DCI Shift Register CSDI
Registers w/Shadow
CSDO
CSCK
COFS
BIT_CLK
SYNC
CSCK
WS
Note: A 5-bit transfer is shown here for illustration purposes. The I2S protocol does not specify word length – this
will be system dependent.
DCICON1 0240 DCIEN — DCISIDL — DLOOP CSCKD CSCKE COFSD UNFM CSDOM DJST — — — COFSM1 COFSM0 0000 0000 0000 0000
DCICON2 0242 — — — — BLEN1 BLEN0 — COFSG<3:0> — WS<3:0> 0000 0000 0000 0000
DCICON3 0244 — — — — BCG<11:0> 0000 0000 0000 0000
DCISTAT 0246 — — — — SLOT3 SLOT2 SLOT1 SLOT0 — — — — ROV RFUL TUNF TMPTY 0000 0000 0000 0000
DS70143E-page 132
TSCON 0248 TSE15 TSE14 TSE13 TSE12 TSE11 TSE10 TSE9 TSE8 TSE7 TSE6 TSE5 TSE4 TSE3 TSE2 TSE1 TSE0 0000 0000 0000 0000
RSCON 024C RSE15 RSE14 RSE13 RSE12 RSE11 RSE10 RSE9 RSE8 RSE7 RSE6 RSE5 RSE4 RSE3 RSE2 RSE1 RSE0 0000 0000 0000 0000
RXBUF0 0250 Receive Buffer 0 Data Register 0000 0000 0000 0000
RXBUF1 0252 Receive Buffer 1 Data Register 0000 0000 0000 0000
RXBUF2 0254 Receive Buffer 2 Data Register 0000 0000 0000 0000
RXBUF3 0256 Receive Buffer 3 Data Register 0000 0000 0000 0000
TXBUF0 0258 Transmit Buffer 0 Data Register 0000 0000 0000 0000
TXBUF1 025A Transmit Buffer 1 Data Register 0000 0000 0000 0000
TXBUF2 025C Transmit Buffer 2 Data Register 0000 0000 0000 0000
TXBUF3 025E Transmit Buffer 3 Data Register 0000 0000 0000 0000
Legend: — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
dsPIC30F6011A/6012A/6013A/6014A
VREF+
VREF-
0000 Comparator
AN0
DAC
0001
AN1
0010
AN2
0011 12-bit SAR Conversion Logic
AN3
0100
AN4
Format
Data
0110
AN6
0111
AN7
1000 Sample/Sequence
AN8 Sample Control
1001
AN9
1010 Input
AN10 Input MUX
Switches
1011 Control
AN11
1100
AN12
1101
AN13
1110
AN14
1111
AN15
VREF- S/H CH0
AN1
TAD Sampling
Speed Rs Max VDD Temperature Channels Configuration
Minimum Time Min
Up to 200 334 ns 1 TAD 2.5 kΩ 4.5V -40°C to +85°C
ksps(1) to VREF- VREF+
5.5V
CHX
ANx
S/H ADC
ANx CHX
S/H ADC
ANx or VREF-
Note 1: External VREF- and VREF+ pins must be used for correct operation. See Figure 19-2 for recommended
circuit.
80
79
78
77
76
75
74
73
72
69
68
67
66
65
64
63
62
61
VDD
VSS
1 60
2 59
3 58
4 57
See Note 1:
5 56
55 VDD VDD VDD
6
7 54
C8 C7 C6
8 53 1 μF 0.1 μF 0.01 μF
9 52
10 VSS
dsPIC30F6014A
VDD VSS 50
VDD 49 VDD
13 VDD
14 47
AVDD AVDD AVDD
15 46
16 45
C5 C4 C3
17 44 1 μF 0.1 μF 0.01 μF
18 43
19 42
VDD 20 41
VREF+
VREF-
AVDD
AVSS
VDD
VSS
21
22
27
28
29
30
33
34
35
36
37
38
39
40
R2
10
C2 C1 VDD
R1
0.1 μF 0.01 μF 10
VDD
Note 1: Ensure adequate bypass capacitors are provided on each VDD pin.
The configuration procedures below give the required • Configure the ADC clock period to be:
setup values for the conversion speeds above 100 1
ksps. = 334 ns
(14 + 1) x 200,000
19.7.1 200 KSPS CONFIGURATION
GUIDELINE by writing to the ADCS<5:0> control bits in the
The following configuration items are required to ADCON3 register.
achieve a 200 ksps conversion rate. • Configure the sampling time to be 1 TAD by
writing: SAMC<4:0> = 00001.
• Comply with conditions provided in Table 19-2.
• Connect external VREF+ and VREF- pins following The following figure shows the timing diagram of the
the recommended circuit as shown in Figure 19-2. ADC running at 200 ksps. The TAD selection in conjunc-
tion with the guidelines described above allows a con-
• Set SSRC<2.0> = 111 in the ADCON1 register to
version speed of 200 ksps. See Example 19-1 for code
enable the auto convert option.
example.
• Enable automatic sampling by setting the ASAM
control bit in the ADCON1 register.
• Write the SMPI<3.0> control bits in the ADCON2
register for the desired number of conversions
between interrupts.
TSAMP TSAMP
= 1 TAD = 1 TAD
ADCLK
TCONV TCONV
= 14 TAD = 14 TAD
SAMP
DONE
ADCBUF0
ADCBUF1
19.8 ADC Acquisition Requirements to charge the capacitor CHOLD. The combined
impedance of the analog sources must therefore be
The analog input model of the 12-bit ADC is shown in small enough to fully charge the holding capacitor
Figure 19-4. The total sampling time for the ADC is a within the chosen sample time. To minimize the effects
function of the internal amplifier settling time and the of pin leakage currents on the accuracy of the ADC, the
holding capacitor charge time. maximum recommended source impedance, RS, is 2.5
For the ADC to meet its specified accuracy, the charge kΩ. After the analog input channel is selected
holding capacitor (CHOLD) must be allowed to fully (changed), this sampling function must be completed
charge to the voltage level on the analog input pin. The prior to starting the conversion. The internal holding
source impedance (RS), the interconnect impedance capacitor will be in a discharged state prior to each
(RIC) and the internal sampling switch (RSS) sample operation.
impedance combine to directly affect the time required
CHOLD
VA CPIN I leakage = DAC capacitance
VT = 0.6V ± 500 nA = 18 pF
VSS
Note: CPIN value depends on device package and is not tested. Effect of CPIN negligible if Rs ≤2.5 kΩ.
RAM Contents: d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
Read to Bus:
Signed Fractional d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00 0 0 0 0
Fractional d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00 0 0 0 0
Signed Integer d11 d11 d11 d11 d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
Integer 0 0 0 0 d11 d10 d09 d08 d07 d06 d05 d04 d03 d02 d01 d00
DS70143E-page 141
dsPIC30F6011A/6012A/6013A/6014A
dsPIC30F6011A/6012A/6013A/6014A
NOTES:
Wake-up Request
FPLL
OSC1
Primary PLL
Oscillator x4, x8, x16 PLL
OSC2
Lock COSC<2:0>
Primary Osc
TUN<3:0> NOSC<2:0>
4
Primary
Oscillator OSWEN
Stability Detector
Internal Fast RC
Oscillator (FRC)
Oscillator
POR Done Start-up
Clock
Timer
Switching
Programmable
Secondary Osc and Control Clock Divider System
Block
Clock
SOSCO
Secondary 2
32 kHz LP
Oscillator
SOSCI Oscillator
Stability Detector POST<1:0>
CF
Fail-Safe Clock
FCKSM<1:0> Monitor (FSCM)
2 Oscillator Trap
to Timer1
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Legend:
R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
Digital
Glitch Filter
MCLR
Sleep or Idle
WDT
Module
VDD
MCLR
Internal POR
TOST
OST Time-out
TPWRT
PWRT Time-out
Internal Reset
FIGURE 20-4: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED TO VDD): CASE 1
VDD
MCLR
Internal POR
TOST
OST Time-out
TPWRT
PWRT Time-out
Internal Reset
FIGURE 20-5: TIME-OUT SEQUENCE ON POWER-UP (MCLR NOT TIED TO VDD): CASE 2
VDD
MCLR
Internal POR
TOST
OST Time-out
TPWRT
PWRT Time-out
Internal Reset
RCON 0740 TRAPR IOPUWR BGST LVDEN LVDL<3:0> EXTR SWR SWDTEN WDTO SLEEP IDLE BOR POR Depends on type of Reset.
OSCCON 0742 — COSC<2:0> — NOSC<2:0> POST<1:0> LOCK — CF — LPOSCEN OSWEN Depends on Configuration bits.
OSCTUN 0744 — — — — — — — — — — — — TUN<3:0> 0000 0000 0000 0000
DS70143E-page 160
PMD1 0770 T5MD T4MD T3MD T2MD T1MD — — DCIMD I2CMD U2MD U1MD SPI2MD SPI1MD C2MD C1MD ADCMD 0000 0000 0000 0000
PMD2 0772 IC8MD IC7MD IC6MD IC5MD IC4MD IC3MD IC2MD IC1MD OC8MD OC7MD OC6MD OC5MD OC4MD OC3MD OC2MD OC1MD 0000 0000 0000 0000
Legend: — = unimplemented bit, read as ‘0’
Note 1: Refer to the “dsPIC30F Family Reference Manual” (DS70046) for descriptions of register bit fields.
†NOTICE:
Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the
device. This is a stress rating only and functional operation of the device at those or any other conditions above those
indicated in the operation listings of this specification is not implied. Exposure to maximum rating conditions for
extended periods may affect device reliability.
VDD
LV10
LVDIF
(LVDIF set by hardware)
VDD
Load Condition 1 – for all pins except OSC2 Load Condition 2 – for OSC2
VDD/2
RL Pin CL
VSS
CL
Pin RL = 464 Ω
CL = 50 pF for all pins except OSC2
VSS 5 pF for OSC2 output
Q4 Q1 Q2 Q3 Q4 Q1
OSC1
OS20
OS30 OS30 OS31 OS31
OS25
CLKOUT
OS40 OS41
I/O Pin
(Input)
DI35
DI40
VDD SY12
MCLR
Internal SY10
POR
SY11
PWRT
Time-out
SY30
OSC
Time-out
Internal
RESET
Watchdog
Timer
RESET
SY20
SY13
SY13
I/O Pins
SY35
FSCM
Delay
VBGAP
0V
TxCK
Tx10 Tx11
Tx15 Tx20
OS60
TMRX
TABLE 23-25: TYPE C TIMER (TIMER3 AND TIMER5) EXTERNAL CLOCK TIMING
REQUIREMENTS(1)
Standard Operating Conditions: 2.5V to 5.5V
(unless otherwise stated)
AC CHARACTERISTICS
Operating temperature -40°C ≤TA ≤+85°C for Industrial
-40°C ≤TA ≤+125°C for Extended
Param
Symbol Characteristic Min Typ Max Units Conditions
No.
TC10 TtxH TxCK High Time Synchronous 0.5 TCY + 20 — — ns Must also meet
parameter TC15
TC11 TtxL TxCK Low Time Synchronous 0.5 TCY + 20 — — ns Must also meet
parameter TC15
TC15 TtxP TxCK Input Period Synchronous, TCY + 10 — — ns N = prescale
no prescaler value
Synchronous, Greater of: (1, 8, 64, 256)
with prescaler 20 ns or
(TCY + 40)/N
TC20 TCKEXT- Delay from External TxCK Clock 0.5 TCY — 1.5 —
MRL Edge to Timer Increment TCY
Note 1: Timer3 and Timer5 are Type C.
ICX
IC10 IC11
IC15
OCx
(Output Compare
or PWM Mode) OC11 OC10
OC20
OCFA/OCFB
OC15
OCx
CSCK
(SCKE = 0)
CSCK
(SCKE = 1)
CS20 CS21
COFS
CS55 CS56
CS35
CS51 CS50 70
CS30 CS31
CS40 CS41
CS71 CS70
CS72
SYNC
(COFS)
CS76 CS75
CS80
SDI MSb IN
(CSDI)
CS65 CS66
SCKx
(CKP = 0)
SCKx
(CKP = 1)
SP31 SP30
SP40 SP41
SP36
SCKX
(CKP = 0)
SCKX
(CKP = 1)
SP35
SP20 SP21
SP40 SP30,SP31
SSX
SP50 SP52
SCKX
(CKP = 0)
SCKX
(CKP = 1)
SP72 SP73
SP35
SP30,SP31 SP51
SP41
SP40 Note: Refer to Figure 23-3 for load conditions.
SP50 SP52
SCKX
(CKP = 0)
SCKX
(CKP = 1)
SP35
SP72 SP73
SP52
SP30,SP31 SP51
SDIX
MSb IN BIT14 - - - -1 LSb IN
SP41
SP40
SCL
IM31 IM34
IM30 IM33
SDA
Start Stop
Condition Condition
SDA
Out
SCL
IS31 IS34
IS30 IS33
SDA
Start Stop
Condition Condition
SDA
Out
CA10 CA11
CXRX Pin
(input)
CA20
ADCLK
Instruction
Execution Set SAMP Clear SAMP
SAMP
ch0_dischrg
ch0_samp
eoc
AD61
AD60
TSAMP AD55
DONE
ADIF
ADRES(0)
1 2 3 4 5 6 7 8 9
XXXXXXXXXXXX dsPIC30F6011A
XXXXXXXXXXXX -30I/PF e3
YYWWNNN 0512XXX
XXXXXXXXXXXX dsPIC30F6014A
XXXXXXXXXXXX -30I/PF e3
YYWWNNN 0512XXX
Note: In the event the full Microchip part number cannot be marked on one line, it will
be carried over to the next line, thus limiting the number of available
characters for customer-specific information.
D
D1
E
e
E1
b
N
123
NOTE 1 NOTE 2 α
A
c A1
φ A2
β L L1
8QLWV 0,//,0(7(56
'LPHQVLRQ/LPLWV 0,1 120 0$;
1XPEHURI/HDGV 1
/HDG3LWFK H %6&
2YHUDOO+HLJKW $ ± ±
0ROGHG3DFNDJH7KLFNQHVV $
6WDQGRII $ ±
)RRW/HQJWK /
)RRWSULQW / 5()
)RRW$QJOH
2YHUDOO:LGWK ( %6&
2YHUDOO/HQJWK ' %6&
0ROGHG3DFNDJH:LGWK ( %6&
0ROGHG3DFNDJH/HQJWK ' %6&
/HDG7KLFNQHVV F ±
/HDG:LGWK E
0ROG'UDIW$QJOH7RS
0ROG'UDIW$QJOH%RWWRP
'
(
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
&KDPIHUVDWFRUQHUVDUHRSWLRQDOVL]HPD\YDU\
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGPPSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
0LFURFKLS 7HFKQRORJ\ 'UDZLQJ &%
D
D1
E
e
E1
N
b
β A1
L L1
8QLWV 0,//,0(7(56
'LPHQVLRQ/LPLWV 0,1 120 0$;
1XPEHURI/HDGV 1
/HDG3LWFK H %6&
2YHUDOO+HLJKW $ ± ±
0ROGHG3DFNDJH7KLFNQHVV $
6WDQGRII $ ±
)RRW/HQJWK /
)RRWSULQW / 5()
)RRW$QJOH
2YHUDOO:LGWK ( %6&
2YHUDOO/HQJWK ' %6&
0ROGHG3DFNDJH:LGWK ( %6&
0ROGHG3DFNDJH/HQJWK ' %6&
/HDG7KLFNQHVV F ±
/HDG:LGWK E
0ROG'UDIW$QJOH7RS
0ROG'UDIW$QJOH%RWWRP
'
(
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
&KDPIHUVDWFRUQHUVDUHRSWLRQDOVL]HPD\YDU\
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGPPSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
0LFURFKLS 7HFKQRORJ\ 'UDZLQJ &%
D
D1
e E
E1
N
NOTE 1
1 23 α
NOTE 2
c
φ
A
β L A1 L1 A2
8QLWV 0,//,0(7(56
'LPHQVLRQ/LPLWV 0,1 120 0$;
1XPEHURI/HDGV 1
/HDG3LWFK H %6&
2YHUDOO+HLJKW $ ± ±
0ROGHG3DFNDJH7KLFNQHVV $
6WDQGRII $ ±
)RRW/HQJWK /
)RRWSULQW / 5()
)RRW$QJOH
2YHUDOO:LGWK ( %6&
2YHUDOO/HQJWK ' %6&
0ROGHG3DFNDJH:LGWK ( %6&
0ROGHG3DFNDJH/HQJWK ' %6&
/HDG7KLFNQHVV F ±
/HDG:LGWK E
0ROG'UDIW$QJOH7RS
0ROG'UDIW$QJOH%RWWRP
'
(
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
&KDPIHUVDWFRUQHUVDUHRSWLRQDOVL]HPD\YDU\
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGPPSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
0LFURFKLS 7HFKQRORJ\ 'UDZLQJ &%
D
D1
E
e
E1
b N
NOTE 1
12 3 NOTE 2 α
A
c
φ
β A2
A1
L L1
8QLWV 0,//,0(7(56
'LPHQVLRQ/LPLWV 0,1 120 0$;
1XPEHURI/HDGV 1
/HDG3LWFK H %6&
2YHUDOO+HLJKW $ ± ±
0ROGHG3DFNDJH7KLFNQHVV $
6WDQGRII $ ±
)RRW/HQJWK /
)RRWSULQW / 5()
)RRW$QJOH
2YHUDOO:LGWK ( %6&
2YHUDOO/HQJWK ' %6&
0ROGHG3DFNDJH:LGWK ( %6&
0ROGHG3DFNDJH/HQJWK ' %6&
/HDG7KLFNQHVV F ±
/HDG:LGWK E
0ROG'UDIW$QJOH7RS
0ROG'UDIW$QJOH%RWWRP
'
(
3LQYLVXDOLQGH[IHDWXUHPD\YDU\EXWPXVWEHORFDWHGZLWKLQWKHKDWFKHGDUHD
&KDPIHUVDWFRUQHUVDUHRSWLRQDOVL]HPD\YDU\
'LPHQVLRQV'DQG(GRQRWLQFOXGHPROGIODVKRUSURWUXVLRQV0ROGIODVKRUSURWUXVLRQVVKDOOQRWH[FHHGPPSHUVLGH
'LPHQVLRQLQJDQGWROHUDQFLQJSHU$60(<0
%6& %DVLF'LPHQVLRQ7KHRUHWLFDOO\H[DFWYDOXHVKRZQZLWKRXWWROHUDQFHV
5() 5HIHUHQFH'LPHQVLRQXVXDOO\ZLWKRXWWROHUDQFHIRULQIRUPDWLRQSXUSRVHVRQO\
0LFURFKLS 7HFKQRORJ\ 'UDZLQJ &%
Added Operating Current (IDD) parameters DC27a and DC27b (see Table 23-5).
Added Idle Current (IIDLE) parameters DC47a and DC47b (see Table 23-6).
Updated the maximum value for parameter DI19 and the minimum value for
parameter DI29 in the I/O Pin Input Specifications (see Table 23-8).
Removed parameter D136 and updated the minimum, typical, maximum, and
conditions for parameters D122 and D134 in the Program and EEPROM
specifications (see Table 23-12).
W
Wake-up from Sleep ......................................................... 143
Wake-up from Sleep and Idle.............................................. 49
Watchdog Timer (WDT) ............................................ 143, 157
Enabling and Disabling ............................................. 157
Operation .................................................................. 157
Timing Characteristics .............................................. 188
Timing Requirements ................................................ 189
WWW Address.................................................................. 227
WWW, On-Line Support........................................................ 9
From: Name
Company
Address
City / State / ZIP / Country
Telephone: (_______) _________ - _________ FAX: (______) _________ - _________
Application (optional):
Would you like a reply? Y N
Questions:
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?
d s P I C 3 0 F 6 0 11 AT- 3 0 I / P F - E S
Custom ID (3 digits) or
Trademark Engineering Sample (ES)
Architecture
Package
S = Die (Waffle Pack)
W = Die (Wafers)
Flash PT = 10x10 (64 TQFP )
PF = 14x14 (64 TQFP )
Memory Size in Bytes PT = 12x12 (80 TQFP )
PF = 14x14 (80 TQFP)
0 = ROMless
1 = 1K to 6K
2 = 7K to 12K
3 = 13K to 24K
4 = 25K to 48K Temperature
5 = 49K to 96K I = Industrial -40°C to +85°C
6 = 97K to 192K E = Extended High Temp -40°C to +125°C
7 = 193K to 384K
8 = 385K to 768K
9 = 769K and Up Speed
30 = 30 MIPS
Example:
dsPIC30F6011AT-30I/PF = 30 MIPS, Industrial temp., TQFP (14x14) package, Rev. A
08/04/10