DSPIC30F2020-20E/SO Microchip Technology, DSPIC30F2020-20E/SO Datasheet - Page 13

no-image

DSPIC30F2020-20E/SO

Manufacturer Part Number
DSPIC30F2020-20E/SO
Description
IC, DSC, 16BIT, 12KB 40MHZ, 5.5V, SOIC28
Manufacturer
Microchip Technology
Series
DsPIC30Fr

Specifications of DSPIC30F2020-20E/SO

Core Frequency
40MHz
Core Supply Voltage
5.5V
Embedded Interface Type
I2C, SPI, UART
No. Of I/o's
20
Flash Memory Size
12KB
Supply Voltage Range
2.5V To 5.5V
Core Processor
dsPIC
Core Size
16-Bit
Speed
20 MIPS
Connectivity
I²C, IrDA, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
21
Program Memory Size
12KB (4K x 24)
Program Memory Type
FLASH
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-SOIC (7.5mm Width)
Package
28SOIC W
Device Core
dsPIC
Family Name
dsPIC30
Maximum Speed
20 MHz
Operating Supply Voltage
3.3|5 V
Data Bus Width
16 Bit
Number Of Programmable I/os
21
Interface Type
I2C/SPI/UART
On-chip Adc
8-chx10-bit
Number Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DM300023 - KIT DEMO DSPICDEM SMPS BUCKDV164005 - KIT ICD2 SIMPLE SUIT W/USB CABLE
Eeprom Size
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DSPIC30F2020-20E/SO
Manufacturer:
SMSC
Quantity:
1 000
Part Number:
DSPIC30F2020-20E/SO
Manufacturer:
MICROCH
Quantity:
20 000
EXAMPLE 3:
© 2008 Microchip Technology Inc.
; ----------------------------------------------------------------------------------------------
.global __reset
.global _main
.global _GotoSleep
.global __AddressError
.global __INT1Interrupt
; ----------------------------------------------------------------------------------------------
_main:
_continue:
; ----------------------------------------------------------------------------------------------
; Address Error Trap
__AddressError:
; ----------------------------------------------------------------------------------------------
__INT1Interrupt:
; ----------------------------------------------------------------------------------------------
_GotoSleep:
; fill remainder of the last row with NOP instructions
; Place SLEEP instruction in the last word of program memory
Note:
Work around 2:
Instead of executing a PWRSAV #0 instruction to
put the device into Sleep mode, perform a clock
switch to the 512 kHz Low-Power RC (LPRC)
Oscillator with a 64:1 postscaler mode. This
enables the device to operate at 0.002 MIPS,
thereby
consumption of the device. Similarly, instead of
using an interrupt to wake-up the device from
Sleep mode, perform another clock switch back to
the original oscillator source to resume normal
operation. Depending on the device, refer to
Section 7. “Oscillator” (DS70054) or Section
29. “Oscillator” (DS70268) in the “dsPIC30F
Family Reference Manual” (DS70046) for more
details on performing a clock switch operation.
.section *, code
BSET
BCLR
BSET
CALL
BRA
BCLR
; Set program memory return address to _continue
POP.D
MOV.B
MOV
PUSH.D W0
RETFIE
BCLR
RETFIE
.section *, code, address (0x1FC0)
.rept 31
.endr
PWRSAV #0
NOP
_continue
The above work around is recommended
for users for whom application hardware
changes are not possible.
W0
#tblpage (_continue), W1
#tbloffset (_continue), W0
IFS1, #INT1IF
significantly
INTCON2, #INT1EP
IFS1, #INT1IF
IEC1, #INT1IE
_GotoSleep
INTCON1, #ADDRERR
reducing
; Set up INT pins to detect falling edge
; Clear interrupt pin interrupt flag bits
; Enable ISR processing for INT pins
; Call function to enter SLEEP mode
the
; Ensure flag is reset
; Return from Interrupt Service Routine
current
Note:
dsPIC30F1010/202X
Work around 3:
Instead of executing a PWRSAV #0 instruction to
put the device into Sleep mode, perform a clock
switch to the 32 kHz Low-Power (LP) Oscillator
with a 64:1 postscaler mode. This enables the
device to operate at 0.000125 MIPS, thereby
significantly reducing the current consumption of
the device. Similarly, instead of using an interrupt
to wake-up the device from Sleep mode, perform
another clock switch back to the original oscillator
source to resume normal operation. Depending on
the device, refer to Section 7. “Oscillator”
(DS70054)
(DS70268) in the “dsPIC30F Family Reference
Manual” (DS70046) for more details on performing
a clock switch operation.
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.
or
application
Section
hardware
29.
DS80319D-page 13
“Oscillator”
already

Related parts for DSPIC30F2020-20E/SO