DSPIC30F3012-20E/SO Microchip Technology, DSPIC30F3012-20E/SO Datasheet - Page 7

IC DSPIC MCU/DSP 24K 18SOIC

DSPIC30F3012-20E/SO

Manufacturer Part Number
DSPIC30F3012-20E/SO
Description
IC DSPIC MCU/DSP 24K 18SOIC
Manufacturer
Microchip Technology
Series
dsPIC™ 30Fr

Specifications of DSPIC30F3012-20E/SO

Core Processor
dsPIC
Core Size
16-Bit
Speed
20 MIPS
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
12
Program Memory Size
24KB (8K x 24)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 5.5 V
Data Converters
A/D 8x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
18-SOIC (7.5mm Width)
For Use With
AC30F005 - MODULE SCKT DSPIC30F 18DIP/SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
EXAMPLE 7:
EXAMPLE 8:
© 2010 Microchip Technology Inc.
// Note: Macros defined in device include files
#define SET_AND_SAVE_CPU_IPL (save_to, ipl){ \
save_to = 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, 3)
. . .
RESTORE_CPU_IPL (save_to)
#define INTERRUPT_PROTECT (x) { \
int save_sr; \
SET_AND_SAVE_CPU_IPL (save_sr, 7);\
x; \
RESTORE_CPU_IPL (save_sr); } (void) 0;
. . .
INTERRUPT_PROTECT (IEC0bits.U1TXIE=0);
Note:
For modification of the Interrupt 1 setting, the
INTERRUPT_PROTECT macro can be used.
This macro disables interrupts before executing
the desired expression, as shown in Example 8.
This macro is not distributed with the compiler.
Affected Silicon Revisions
B0
X
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.
B1
X
USING SET_AND_SAVE_CPU_IPL AND RESTORE_CPU_IPL MACROS
USING INTERRUPT_PROTECT
MACRO
dsPIC30F3012/3013
DS80448D-page 7

Related parts for DSPIC30F3012-20E/SO