DSPIC30F2020-30I/MM Microchip Technology, DSPIC30F2020-30I/MM Datasheet - Page 132

IC DSPIC MCU/DSP 12K 28QFN

DSPIC30F2020-30I/MM

Manufacturer Part Number
DSPIC30F2020-30I/MM
Description
IC DSPIC MCU/DSP 12K 28QFN
Manufacturer
Microchip Technology
Series
dsPIC™ 30Fr

Specifications of DSPIC30F2020-30I/MM

Core Processor
dsPIC
Core Size
16-Bit
Speed
30 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 ~ 85°C
Package / Case
28-QFN
Core Frequency
15MHz
Core Supply Voltage
3.3V
Embedded Interface Type
I2C, SPI, UART
No. Of I/o's
21
Flash Memory Size
12KB
Supply Voltage Range
3V To 3.6V
Package
28QFN-S EP
Device Core
dsPIC
Family Name
dsPIC30
Maximum Speed
30 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 BUCKAC164322 - MODULE SOCKET MPLAB PM3 28/44QFNDV164005 - 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-30I/MMB32
Manufacturer:
Microchip Technology
Quantity:
135
dsPIC30F1010/202X
EXAMPLE 12-1:
DS70178C-page 130
.
mov #0x0400, w0
mov w0, PTCON
; Set the PWM Period
mov #0x094D, w0
mov w0, PTPER
mov #0x0000, w0
mov w0, PHASE1
; Select individual Duty Cycle Control
mov #0x0001, w0
mov w0, PWMCON1
; Code for PWM Current Limit and Fault Inputs
mov #0x0003, w0
mov w0, FCLCON1
; Code for PWM Output Control
mov #0xC000, w0
mov w0, IOCON1
; Duty Cycle Setting
mov #0x04A6, w0
mov w0, PDC1
; Dead Time Setting
mov #0x0040, w0
mov w0, DTR1
mov w0, ALTDTR1
bset PTCON, #15
Note:
This code example does not illustrate configuration of various fault modes for the PWM module.
It is intended as a quick start guide for setting up the PWM Module.
CODE EXAMPLE FOR CONFIGURING PWM CHANNEL 1
; PWM Module is disabled, continue operation in
; idle mode, special event interrupt disabled,
; immediate period updates enabled, no external
; synchronization
; Select period to be approximately 2.5usec
; PLL Frequency is ~480MHz. This equates to a
; clocke period of 2.1nsec. The PWM period and
; duty cycle registers are triggered on both +ve
; and -ve edges of the PLL clock. Therefore,
; one count of the PTPER and PDCx registers
; equals 1.05nsec.
; So, to achieve a PWM period of 2.5usec, we
; choose PTPER = 0x094D
; no phase shift for this PWM Channel
; This register is used for generating variable
; phase PWM
; Fault interrupt disabled, Current Limit
; interrupt disabled, trigger interrupt,
; disabled, Primary time base provides timing,
; DC1 provides duty cycle information, positive
; dead time applied, no external PWM reset,
; Enable immediate duty cycle updates
; Disable current limit and fault inputs
; PWM1H and PWM1L is controlled by PWM module
; Output polarities are active high, override
; disabled
; To achieve a duty cycle of 50%, we choose
; the PDC1 value = 0.5*(PWM Period)
; The ON time for the PWM = 1.25usec
; The Duty Cycle Register will provide
; positive duty cycle to the PWMxH outputs
; when output polarities are active high
; (see IOCON1 register)
; Dead time ~ 67nsec
; Hex(40) = decimal(64)
; So, Dead time = 64*1.05nsec = 67.2nsec
; Note that the last 2 bits are unimplemented,
; therefore the dead time register can achieve a
; a resolution of about 4nsec.
; Load the same value in ALTDTR1 register
; turn ON PWM module
Preliminary
© 2006 Microchip Technology Inc.

Related parts for DSPIC30F2020-30I/MM