DSPIC30F5013-30I/PT Microchip Technology, DSPIC30F5013-30I/PT Datasheet
![no-image](/images/manufacturer_photos/0/4/439/microchip_technology_sml.jpg)
DSPIC30F5013-30I/PT
Specifications of DSPIC30F5013-30I/PT
Available stocks
Related parts for DSPIC30F5013-30I/PT
DSPIC30F5013-30I/PT Summary of contents
Page 1
... Microchip corporate web site (www.microchip.com). TABLE 1: SILICON DEVREV VALUES Part Number dsPIC30F5011 dsPIC30F5013 Note 1: The Device and Revision IDs (DEVID and DEVREV) are located at the last two implemented addresses in program memory. 2: Refer to the “dsPIC30F Flash Programming Specification” (DS70102) for detailed information on Device and Revision IDs for your specific device ...
Page 2
... ADC event triggers from the INT0 pin will not wake-up the device from Sleep mode if the SMPI bits are non-zero PLL mode is used, the input frequency range is 5 MHz- 10 MHz instead of 4 MHz-10 MHz. Affected (1) Revisions © 2010 Microchip Technology Inc. ...
Page 3
... Consumption in Sleep Mode Note 1: Only those issues indicated in the last column apply to the current silicon revision. © 2010 Microchip Technology Inc. dsPIC30F5011/5013 Issue Summary Execution of the Sleep instruction (PWRSAV #0) may cause incorrect program operation after the device wakes up from Sleep. The current consumption during Sleep may also increase beyond the specifications listed in the device data sheet ...
Page 4
... BCD number MOV.b #0x80, w1 ;Second BCD number ADD.b w0, w1, w2 ;Perform addition BRA NC, L0 ;If C set 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: .... Affected Silicon Revisions © 2010 Microchip Technology Inc. ...
Page 5
... RAM register prior to performing the operations listed in Table 3. The work around for Example 2 is demonstrated in © 2010 Microchip Technology Inc. dsPIC30F5011/5013 These instructions are identified in Example 2 occurs. Also, always use Work around 2 if the C compiler is used to generate code for dsPIC30F5011/5013 devices ...
Page 6
... LOOP1: MOV W1, W5 ;Inner loop ends POP DCOUNT ;Restore DCOUNT ... LOOP0: MOV W5, W8 ;Outer loop ends Note: For details on the functionality of EDT bit, see section 2.9.2.4 in the dsPIC30F Family Reference Manual. Affected Silicon Revisions DS80453E-page 6 Example 4. © 2010 Microchip Technology Inc. ...
Page 7
... SFR read MOV I2CCON second SFR read POP SR © 2010 Microchip Technology Inc. dsPIC30F5011/5013 Work around 2: For C Language Source Code For C programmers, the MPLAB C30 v1.20.02 toolsuite provides a built-in function that may be incorporated in the application source code. This function may be used to read the I2CCON SFR. ...
Page 8
... The special argument is the address of a 16-bit SFR (I2CTRN in this case). For example, the I2CTRN register can be written using a function call: __builtin_writesfr(&I2CTRN, reg_value); where ‘reg_value’ is the 16-bit value to be written to the SFR. Example 6. In Affected Silicon Revisions © 2010 Microchip Technology Inc. ...
Page 9
... W0 MOV W1, U1MODE ;write to U1MODE POP SR © 2010 Microchip Technology Inc. dsPIC30F5011/5013 Work around 2: For C Language Source Code For C programmers, the MPLAB C30 v1.30 toolsuite provides a built-in function that may be incorporated in the application source code. This in the DD function may be used to write to the U1MODE and ...
Page 10
... Use 8x PLL or 16x PLL mode of operation and set final device clock speed using the POST<1:0> oscillator postscaler control bits (OSCCON<7:6>). 2. Use the EC without PLL Clock mode with a suitable clock frequency to obtain the equivalent 4x PLL clock rate. Affected Silicon Revisions DS80453E-page 10 © 2010 Microchip Technology Inc. ...
Page 11
... SRbits.IPL; \ SET_CPU_IPL (ipl); } (void) 0; #define RESTORE_CPU_IPL (saved_to) SET_CPU_IPL (saved_to) #include "p30fxxxx.h" int save_to; SET_AND_SAVE_CPU_IPL (save_to RESTORE_CPU_IPL (save_to) © 2010 Microchip Technology Inc. dsPIC30F5011/5013 EXAMPLE 8: .include "p30fxxxx.inc" ... DISI #4 ; protect the disable ; of INT1 BCLR IEC1, #INT1IE ; disable interrupt 1 ... ; next instruction ;protected by DISI ...
Page 12
... SET_AND_SAVE_CPU_IPL (save_sr, 7);\ x; \ RESTORE_CPU_IPL (save_sr); } (void INTERRUPT_PROTECT (IEC0bits.U1TXIE=0); Note: If you are using a MPLAB C30 compiler version earlier than version 1.32, you may still use the macros by adding them to your application. Affected Silicon Revisions DS80453E-page 12 shown in © 2010 Microchip Technology Inc. ...
Page 13
... © 2010 Microchip Technology Inc. dsPIC30F5011/5013 12. Module: Output Compare If the desired duty cycle is ‘0’ (OCxRS = 0), the module will generate a high level glitch The second problem is that on the next cycle after the glitch, the OC pin does not go high, or, in other words, it misses the next compare for any value written on OCxRS ...
Page 14
... Module: PLL If 8x PLL mode is used, the input frequency range is 5 MHz-10 MHz instead of 4 MHz-10 MHz. Work around None PLL is used, make sure the input crystal or clock frequency is 5 MHz or greater. Affected Silicon Revisions DS80453E-page 14 © 2010 Microchip Technology Inc. ...
Page 15
... NOP instructions .rept 31 NOP .endr ; Place SLEEP instruction in the last word of program memory PWRSAV #0 © 2010 Microchip Technology Inc. dsPIC30F5011/5013 This can be accomplished by replacing all occurrences of the PWRSAV #0 instruction with a function call to a suitably aligned subroutine. The address( ) attribute provided by the MPLAB ASM30 assembler can be utilized to correctly align the instructions in the subroutine ...
Page 16
... Note: The above work around is recommended for users for whom application hardware changes are possible, and also for users whose includes a 32 kHz LP Oscillator crystal. Affected Silicon Revisions Section 29. “Oscillator” application hardware already © 2010 Microchip Technology Inc. ...
Page 17
... This will also clear the RBF flag Clear the I C receiver interrupt flag SI2CF back to step 1 to continue receiving incoming data bytes. © 2010 Microchip Technology Inc. dsPIC30F5011/5013 Work around 2: Use this work around for applications in which the receiver interrupt is required. Assuming that ...
Page 18
... C language, MPLAB C30 version 3.11 or higher, provides the following command-line switch that implements a work around for the erratum. -merrata=psv_trap Refer to the readme.txt file in the MPLAB C30 v3.11 tool suite for further details. Affected Silicon Revisions © 2010 Microchip Technology Inc. ...
Page 19
... None. Affected Silicon Revisions © 2010 Microchip Technology Inc. dsPIC30F5011/5013 25. Module: I When the I I2CEN bit in the I2CCON register, the dsPIC DSC device generates a glitch on the SDA and SCL addresses. In pins. This glitch falsely indicates “Communication Start” to all devices on the I a bus collision in a multi-master configuration. ...
Page 20
... Affected Silicon Revisions Example 13 shows ;Unused byte ;Unused byte" A4 Low Byte (Even Address) 0x7FFC00 0x7FFC02 0x7FFC04 0x7FFC06 0x7FFC08 0x7FFC0A © 2010 Microchip Technology Inc. ...
Page 21
... FRC oscillator. Affected Silicon Revisions © 2010 Microchip Technology Inc. dsPIC30F5011/5013 28. Module: I The port pin, RC15, is multiplexed with the primary DD oscillator pin, OSC2. When pin RC15 is required for digital input/output, specific bits in the Oscillator Configuration register, FOSC, may be set up as follows: • ...
Page 22
... ADC module by setting the ADC Module Disable bit in the corresponding Peripheral Module Disable register (PMDx), prior to executing instruction. Affected Silicon Revisions DS80453E-page 22 specifications a PWRSAV #0 © 2010 Microchip Technology Inc. ...
Page 23
... Symbol Characteristic No. V Input Low Voltage IL DI19 SDA, SCL V Input High Voltage IH DI29 SDA, SCL © 2010 Microchip Technology Inc. dsPIC30F5011/5013 specifica- IL Standard Operating Conditions: 3.3V and 5.0V (±10%) (unless otherwise stated) -40°C ≤ T Operating temperature -40°C ≤ T Min Typ Max V — ...
Page 24
... Updated silicon issue 10 (Interrupt Controller). Rev D Document (6/2010) Added silicon issue 30 (ADC) and data sheet clarification 1 (DC Characteristics: I/O Pin Input Specifications). Rev E Document (10/2010) Updated the revision ID for A4 silicon in DS80453E-page 24 Operations), 12-13 (Output Mode), 17 (PSV (Flash Table 1. © 2010 Microchip Technology Inc. ...
Page 25
... PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance, TSHARC, UniWinDriver, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...
Page 26
... 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-6578-300 Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-213-7830 Fax: 886-7-330-9305 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2010 Microchip Technology Inc. 08/04/10 ...