© 2006 Microchip Technology Inc. DS80242C-page 1
dsPIC30F6011A/
6012A/6013A/6014A
dsPIC30F6011A, dsPIC30F6012A,
dsPIC30F6013A, dsPIC30F6014A
(Rev. A2) Silicon Errata
The dsPIC30F6011A/6012A/6013A/6014A (Rev. A2)
samples you have received were found to conform to
the specifications and functionality described in the
following documents:
DS70157 – “dsPIC 30F/33F Programmer’s
Reference Manual”
DS70143 – “dsPIC30F6011A, dsPIC30F6012A,
dsPIC30F6013A, dsPIC30F6014A Data Sheet”
DS70046 – “ds PIC 30F Fam ily Reference Ma nua l”
The exceptions to the specifications in the documents
listed above are described in this section. The specific
devices for which these exceptions are described are
listed bel ow :
dsPIC30F6011A
dsPIC30F6012A
dsPIC30F6013A
dsPIC30F6014A
dsPIC30F601XA Rev. A2 silicon is identified by
performing a “Reset and Connect” operation to the
device using MPLAB® ICD 2 within the MPLAB IDE.
The f ollowing text is then visibl e under the MPLAB ICD 2
section in the output window within MPLAB IDE:
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device dsPIC30F6014A found,
revision = Rev 0x1002
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready".
The errata described in this section will be fixed in
future revisions of dsPIC30F6011A, dsPIC30F6012A,
dsPIC30F6013A and dsPIC30F6014A silicon.
Silicon Errata Summary
The following list summarizes the errata described in
further detail through the remainder of this document:
1. MAC Class Instruction with ±4 Address
Modification
Sequential MAC instructions, which prefetch data
from Y data space using ±4 address modification
will cause an address error trap.
2. Decimal Adjust Instruction
The Decimal Adjust instruction, DAW.b, may
improperly clear the Carry bit, C (SR<0>).
3. DISI Instruction
The DISI instruction will not disable interrupts if a
DISI instruction is executed in the same instruc-
tion cycle that the DISI counter decrements to
zero.
4. Output Compare Module in PWM Mode
Output co mpare will produ ce a glitch when loa ding
0% duty cycle in PWM mode. It will also miss the
next compare after the glitch.
5. Output Compare
The output compare module will produce a glitch
on the output when an I/O pin is initially set high
and t he module is c onfigured to drive the p in low at
a specif ie d time .
6. Using OSC2/RC15 as Digital I/O or CLKOUT
For this revision of silicon, pin OSC2/RC15 is oper-
ational for digital I/O and CLKOUT only in specific
oscillator modes.
7. LP Oscillator
For this revision of silicon, the LP Oscillator is not
operational.
8. INT0, ADC and Sleep Mode
ADC event triggers from the INT0 pin will not
wake-up the device from Sleep mode if the SMPI
bits are non-zero.
9. 4x and 8x PLL Mode
If 4x or 8x PLL mode is used, the input frequency
range is 5 M Hz-10 MHz instead of 4 M Hz-10 MHz .
The follo wing secti ons will desc ribe the errat a and work
around to these errata, where they may apply.
dsPIC30F6011A/6012A/6013A/6014A Rev. A2 Silicon Errata
dsPIC30F6011A/6012A/6013A/6014A
DS80242C-page 2 © 2006 Microchip Technology Inc.
1. Module: MAC Class Instructions with ±4
Address Modifications
Sequential MAC class instructions, which prefetch
data from Y dat a space using ± 4 address modifica-
tion, will cause an address error trap. The trap
occurs only when all of the follow ing condition s are
true:
1. Two sequential MAC class instructions (or a
MAC class in struction exec ute d in a REPEAT or
DO loop) that prefetch from Y data space.
2. Both instructions prefetch data from Y data
space using the + = 4 or – = 4 address
modification.
3. N eith er i nstr uct ion u ses an accu mul ato r writ e-
back.
Work around
The problem described above can be avoided by
using any of the following methods:
1. Insertin g any oth er instructio n betwe en the two
MAC class i nst r uc tions.
2. Adding an accumulator write-back (a dummy
write-b ack if ne eded) to ei ther of the MAC clas s
instructions.
3. Do not use the + = 4 or – = 4 address
modification.
4. Do not prefetch data from Y data space.
2. Module: CPU – DAW.b Instruction
The Decimal Adjust instruction, DAW.b, may
improperly clear the Carry bit, C (SR<0>), when
executed.
Work around
Check the state of the Carry bit prior to executing
the DAW.b instruct ion. If the Carry bit is set, set the
Carry bit again after executing the DAW.b instruc-
tion. Example 1 shows how the application should
process the Carry bit during a BCD addition
operation.
EXAMPLE 1: CHECK CARRY BIT BEFORE
DAW.b
3. Module: DISI Instruction
When a user executes a DISI #7, for example,
this will disable interrupts for 7 + 1 cycles (7 + the
DISI instruction itself). In this case, the DISI
inst ruction uses a co unter which counts do wn from
7 to 0. The counter is loaded with 7 at the end of
the DISI instru cti on.
If the user code executes another DISI on the
instruction cycle where the DISI counter has
become zero, the new DISI count is loaded, but
the DISI state machine does not properly re-
engage and continue to disable interrupts. At this
point, all interrupts are enabled. The next time the
suer c ode exe cutes a DISI instruct ion, the feature
will act normally and block interrupts.
In summary, it is only when a DISI execution is
coincident with the current DISI count = 0, that the
issue occurs. Executing a DISI instru ct i on be f ore
the DISI counter reaches zero will not produce
this error. In this case, the DISI counter is loaded
with th e new v alue, a nd int errup ts remain disa bled
until the counter becomes zero.
Work around
When executing multiple DISI instructions within
the sou rce code, make su re that subs equent DISI
instructions have at least one instruction cycle
between the time that the DISI counter
decreme nt s to zero an d th e n ex t DISI instruction.
Alternatively, make sure that subsequent DISI
instructions are called before the DISI counter
dec rements to zero.
4. Module: Output Compare in PWM Mode
If the desired duty cycle is ‘0’ (OCxRS = 0), the
module will generate a high level glitch of 1 TCY.
the second problem is that on the next cycle after
the glitc h, the O C pin doe s not g o high, o r, in other
words, it misses the next compare for any value
written on OCxRS.
Work around
There are two possible solutions to this problem:
1. Load a value greater than ‘0’ to the OCxRS
register when operating in PWM mode. In this
case, no 0% duty cycle is achiev able.
2. If the application requires 0% duty cycles, the
output compare module can be disabled for
0% duty cycles, and re-enabled for non-zero
percent duty cycles.
.include "p30fxxxx.inc"
.......
mov.b #0x80, w0 ;First BCD number
mov.b #0x80, w1 ;Second BCD number
add.b w0, w1, w2 ;Perform addition
bra NC, L0 ;If C set go to L0
daw.b w2 ;If not,do DAW and
bset.b SR, #C ;set the carry bit
bra L1 ;and exit
L0:daw.b w2
L1: ....
© 2006 Microchip Technology Inc. DS80242C-page 3
dsPIC30F6011A/6012A/6013A/6014A
5. Module: Output Compare
A glit ch will be produced on an outp ut comp are pin
under the f ollowing conditions:
The user software initially drives the I/O pin
high using the out put comp are mod ul e or a
write to the associated PORT register.
The output compare module is configured and
enabled to drive the pin low at some later time
(OCxCON = 0x0002 or OCxCON = 0x0003).
When these events occur, the output compare
module will drive the pin low for one instruction
cycle (TCY) after the module is enab led.
Work around
None. However , the user may use a timer interrupt
and write to the associated PORT register to
control the pin manually.
6. Module: Using OSC2/RC15 as Digital I/O
or CLKOUT
Table 20-2 (see below) from the “ds PIC30F60 1 1 A/
6012A/6013A/6014A Data Sheet” (DS70143A)
lists the dev ic e c loc k oper ational mo des . Th e data
in the t able is corre ct with the foll owing exce ptions:
Digital I/O functionality is not operational in the
FRC with PLL (4x, 8x and 16x PLL) Oscillator
mode.
CLKOUT functionality is only supported if the
EC or ERC Osc ill ato r mode is a ctu all y se lec ted
as the device clock source.
dsPIC30F6011A/6012A/6013A/6014A
DS80242C-page 4 © 2006 Microchip Technology Inc.
TABLE 20-2: CONFIGURATION BIT VALUES FOR CLOCK SELECTION
Work around
None. In future revisions of silicon, port pin RC15
may also be configured for Digital I/O and
CLKOUT for additional oscillator modes.
Oscillator Mode Oscillator
Source FOS<2:0> FPR<4:0> OSC2 Function
ECIO w/ PLL 4x PLL 11101101 I/O
ECIO w/ PLL 8x PLL 11101110 I/O
ECIO w/ PLL 16x PLL 11101111 I/O
FRC w/ PLL 4x PLL 11100001 I/O
FRC w/ PLL 8x PLL 11101010 I/O
FRC w/ PLL 16x PLL 11100011 I/O
XT w/ PLL 4x PLL 11100101 OSC2
XT w/ PLL 8x PLL 11100110 OSC2
XT w/ PLL 16x PLL 11100111 OSC2
HS2 w/ PLL 4x PLL 11110001 OSC2
HS2 w/ PLL 8x PLL 11110010 OSC2
HS2 w/ PLL 16x PLL 11110011 OSC2
HS3 w/ PLL 4x PLL 11110101 OSC2
HS3 w/ PLL 8x PLL 11110110 OSC2
HS3 w/ PLL 16x PLL 11110111 OSC2
ECIO External 01101100 I/O
XT External 01100100 OSC2
HS External 01100010 OSC2
EC External 01101011 CLKOUT
ERC External 01101001 CLKOUT
ERCIO External 01101000 I/O
XTL External 01100000 OSC2
LP Secondary 000xxxxx (Note 1, 2)
FRC Internal FRC 001xxxxx (Note 1, 2)
LPRC Internal LPRC 010xxxxx (Note 1, 2)
Note 1: OSC2 pin function is determined by FPR<4:0>.
2: OSC1 pin cannot be used as an I/O pin even if the secondary oscillator or an internal clock source is
selected at all times.
© 2006 Microchip Technology Inc. DS80242C-page 5
dsPIC30F6011A/6012A/6013A/6014A
7. Module: LP Oscillator
The 32 kHz LP Oscillator module is not
operational for this version of silicon.
8. Module: INT0, ADC and Sleep Mode
ADC event triggers from the INT0 pin will not
wake-up the device from Sleep mode if the SMPI
bits are non-zero. This means that if the ADC is
configured to generate an interrupt after a certain
number of INT0 triggered conversions, the ADC
conversions will not be triggered and the device
will remain in Sleep. The ADC will perform
conversions and wake-up the device only if it is
configured to generate a n interrupt after each INT0
triggered conversion (SMPI<3:0> = 0000).
Work around
None. If ADC event trigger from the INT0 pin is
required, initialize SMPI<3:0> to ‘0000’ (interrupt
on every conversion).
9. Module: 4x and 8x PLL Mode
If 4x or 8x PLL mode is used, the input frequency
range is 5 M Hz-10 MHz instead of 4 MHz-10 MHz .
Work around
None. If 4x o r 8x PLL is us ed , m ake s ure t he inp ut
crystal or clock frequency is 5 MHz or greater.
dsPIC30F6011A/6012A/6013A/6014A
DS80242C-page 6 © 2006 Microchip Technology Inc.
APPENDIX A: REVISION HISTORY
Revision A (7/2005)
Original version of the document marked as
Confidential.
Revision B (8/2005)
Revision C (9/2006)
Added errata #1, #3, #4, #5, #8, #9.
© 2006 Microchip Technology Inc. DS80242C-page 7
Information contained in this publication regarding device
applications and the like is provided only for your con ve nience
and may be superseded by u pdates. It is y our respo ns i bil it y to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, KEELOQ, microID, MPLAB, PIC, PICmicro, PICST ART,
PRO MATE, PowerSmart, rfPIC, and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXD EV, MXLAB,
SEEV AL, SmartSensor 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, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, ECAN,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, Linear Active
Thermistor, Mindi, MiWi, MPASM, MPLIB, MPLINK, PICkit,
PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal,
PowerInf o, PowerMate, Pow erTool, REAL ICE, rfLAB,
rfPICDEM, Select Mode, Smart Serial, SmartTel, Total
Endurance, UNI/O, WiperLock and ZENA are trademarks of
Microchip Technology Incorporat ed 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.
© 2006, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
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 it s family of products is one of the most secure families of it s 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 Dat a
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 c onstantly evolving. We a t Microchip are committed to continuously improving the c ode prot ection f eatures of our
products. Attempts to break Microchip’ s code protection f eature may be a violati on of t he Digit al Millennium Copyright Act. If such act s
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
T empe, Arizona, Gresham, Oregon and Mountain View , California. The
Company’s quality system processes and procedures are for its
PICmicro® 8-bit MCUs, 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.
DS80242C-page 8 © 2006 Microchip Technology Inc.
AMERICAS
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technica l Support:
http://support.microchip.com
Web Address:
www.microchip.com
Atlanta
Alpharetta, GA
Tel: 770-640-0034
Fax: 770-640-0307
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasc a , IL
Tel: 630-285-0071
Fax: 630-285-0075
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Farmington Hills, MI
Tel: 248-538-2250
Fax: 248-538-2260
Kokomo
Kokomo, IN
Tel: 765-864-8360
Fax: 765-864-8387
Los A n ge les
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
ASIA/PACIFIC
Asia Pacific Office
Suites 3707-14, 37th Floor
Tower 6, The Gateway
Habour City, Kowloon
Hong Kong
Tel: 852-2401-1200
Fax: 852-2401-3431
Australia - Sydney
Tel: 61-2-9868-67 33
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8528-2 100
Fax: 86-10-8528-2104
China - Chengdu
Tel: 86-28-8665-5 511
Fax: 86-28-8665-7889
China - Fuzhou
Tel: 86-591-8750-3506
Fax: 86-591-8750-3521
China - Hong Kong SAR
Tel: 852-2401-1200
Fax: 852-2401-3431
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
China - Shanghai
Tel: 86-21-5407-5 533
Fax: 86-21-5407-5066
China - Shenyang
Tel: 86-24-2334-2 829
Fax: 86-24-2334-2393
China - Shenzhen
Tel: 86-755-8203-2660
Fax: 86-755-8203-1760
China - Shunde
Tel: 86-757-2839-5507
Fax: 86-757-2839-5571
China - Wuhan
Tel: 86-27-5980-5 300
Fax: 86-27-5980-5118
China - Xian
Tel: 86-29-8833-7 250
Fax: 86-29-8833-7256
ASIA/PACIFIC
India - Bangalore
Tel: 91-80-4182-8400
Fax: 91-80-4182-8422
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
India - Pune
Tel: 91-20-2566-1512
Fax: 91-20-2566-1513
Japan - Yokohama
Tel: 81-45-471- 6166
Fax: 81-45-471-6122
Korea - Gumi
Tel: 82-54-473-4301
Fax: 82-54-473-4302
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
Malaysia - Penang
Tel: 60-4-646-8870
Fax: 60-4-646-5086
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
Taiwan - Hsin Chu
Tel: 886-3-572-9526
Fax: 886-3-572-6459
Taiwan - Kaohsiung
Tel: 886-7-536-4818
Fax: 886-7-536-4803
Taiwan - Taipei
Tel: 886-2-2500-6610
Fax: 886-2-2508-0102
Thail a nd - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
EUROPE
Austria - Wels
Tel: 43-7242-2244-3910
Fax: 43-7242-2244-393
Denmark - Copenhage n
Tel: 45-4450-2828
Fax: 45-4485-2829
France - Paris
Tel: 33-1-69-53 -63-20
Fax: 33-1-69-30-90-79
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-14 4-44
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
Sp ain - Madr i d
Tel: 34-91-708-08-90
Fax: 34-91-708-08 -91
UK - Wokingham
Tel: 44-118-921- 5869
Fax: 44-118-921- 5820
WORLDWIDE SALES AND SERVICE
08/29/06