System Management Features Fuse enabled Watchdog Timer with its own RC oscillator Programmable Time out: 2 ms - 16 sec Power On Reset with a programmable delay 0, 4, 16, 64ms Brown-out
Trang 1TS Nguyễn Hồng Quang
Hardware
DsPIC
Trang 2Objectives
Trang 3Categories
Trang 4DsPIC 16 bit microcontroller
Trang 5Sizes
Trang 6System Management
Features
Fuse enabled Watchdog Timer with its own RC
oscillator
Programmable Time out: 2 ms - 16 sec
Power On Reset with a programmable delay 0, 4,
16, 64ms
Brown-out Reset with programmable levels
Low Vdd Detect Interrupt with programmable levels
Trang 7Flash: 64, 128 and 256K O
Larger RAM: 8K, 16K and 30KB
DMA (Direct Memory Access) Controller
Upward compatible with dsPIC30F
Upward compatible with PIC24
emory Access) Controller
Trang 8Target Operating Parameters
* Op Speed over entire Vdd and Temp Range
Trang 9Interrupt vector
Total of 118 available interrupts
Like dsPIC30, all interrupts may be individually enabled and assigned to one of seven priority levels
Interrupts can be directed to vector through an Alternate interrupt
vector table
Program address hex 200 on
dspic33 devices rather than hex 100
as on dsPIC30 devices.
Trang 10Math error
Trang 11Math error
The OVA and OVB bits indicate an overflow
condition in either accumulator a or b, The OVA bit will only be cleared when the user clears the MATHERR trap status flag
The COVA and COVB bits indicate an
catastrophic overflow condition
The SFTERR bit indicates an error while
executing a shift instruction
The DIVERR indicates an attempt to divide by
0
Trang 12dsPIC33F DMA Controller
dsPIC33 includes Direct Memory Access (DMA) controller for efficient data movement The devices include eight DMA channels
Trang 14DMA-Ready Peripherals
Trang 15dsPIC33F Flash Memory
Trang 16dSPIC33 in circuit serial
programming
the dSPIC33 support in circuit serial
programming, called ICSP
The interface to the device is done with
2 pins for clock and data and a reset pin.
It also enables field upgrades to the
system using a small connector
Programming times in ICSP is similar to those for factory programming
Trang 17Run Time Self Programming OR Self Programming
Device can program its own FLASH memory
Ideal for “calibration” or “parameterization” in final test O
Ideal for “Remote code update”
Trang 18For very high endurance requirements, external
serial EEPROM offers a simple, cost effective solution
Trang 19dsPIC30 I/O Levels
Trang 20dsPIC 33F I/O level
Trang 21UART feature
Trang 23System Integration Features
Trang 25Clock sources
XTL,XT,HS Primary Xtal OSC
Clock Divide
By
1, 4, 16, 64
32KHz Timer1 Xtal
OSC
System Clock
or bypass
Includes 2 Internal RC Oscillators
Primary Oscillator for Crystals
Primary Oscillator for Crystals
32 kHz for Real Time Clock
32 kHz for Real Time Clock
Trang 26PLL operation
Trang 27PLL operation
Trang 28PLL operation
Trang 29dsPIC33F Peripherals Overview
Trang 31dsPIC30 UART had software LIN bus support,
hardware support for LIN
Hardware Autobaud detection
Hardware Break generation
Added IRDA support
Hardware encoder / decoder
Transmit and Receive Polarity Control
Added ÷4 Baud Clock Mode
4 times faster than ÷16 mode
Trang 32A/D features
Two A/D modules on some devices
More Analog Inputs
Up to 32 in 100-pin devices
Up to 24 in 80-pin devices
Up to 18 in 64-pin devices
Run time configuration of A/D parameters
Each module configurable as
10-bit or 12-bit A/D converter
Trang 3310 Bit or 12 Bit
Each A/D Module can operate in 2 modes
4-S/H channel 10-bit 1.1MSPS
1-S/H channel 12-bit 500KSPS
Change mode at any time
While device is operating
Selection with SFR bit in ADCON
Trang 3410 bit or 12 bit operation
Trang 3510 bit A/D configuration
Trang 3612-bit A/D Block Diagram
Trang 37A/D Options
Trang 38So sánh dsPIC30F to
dsPIC33F
dsPIC33F is upward compatible
dsPIC30F is a 2.5-5.5V part, dsPIC33F is a 3.3V part
dsPIC33F does not have Data EEPROM
Program Flash can serve as Data Flash
dsPIC33F initially is offered at Industrial Temp only
Trang 39So sánh 3.3V, 5V
dsPIC33F operates from a single supply: 3.0-3.6V
Core operates at 2.5v
On-chip Voltage regulator generates 2.5V
Pin Output drives 3.3V
Pin Input is 5V tolerant
Analog input range: 0 - 3.6V
Migrating a dsPIC30F system to dsPIC33F
Trang 40Compatibility: Pin-out
Trang 41Tools
Trang 42Library
Trang 43Key support documents