Microchip dsPIC33F 入门开发方案

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Microchip dsPIC33F 入门开发方案
关键词:DSP,MCU,数字信号控制器,DSC,
摘要:Microchip 公司的dsPIC33F系列是高性能16位数字信号控制器,具有扩展的DSP功能和高性能16位微控制器(MCU)的架构。

而DM330011则是dsPIC33F系列的MPLAB入门级开发套件是完整的硬件和软件工具,开发板上内置了调试器,简单安装软件和连接USB电缆到PC,起动MPLAB IDE就能完全控制和运行简单程序,下载和测试你的应用。

本文介绍了dsPIC33F系列的主要性能,方框图以及MPLAB入门级开发套件DM330011的主要性能,开发系统连接图以及完整的电路图。

Microchip 公司的dsPIC33F系列是高性能16位数字信号控制器,具有扩展的DSP功能和高性能16位微控制器(MCU)的架构。

而DM330011则是dsPIC33F系列的MPLAB 入门级开发套件是完整的硬件和软件工具,开发板上内置了调试器,简单安装软件和连接USB电缆到PC,起动MPLAB IDE就能完全控制和运行简单程序,下载和测试你的应用。

本文介绍了dsPIC33F系列的主要性能,方框图以及MPLAB入门级开发套件
DM330011的主要性能,开发系统连接图以及完整的电路图。

一.dsPIC33F High-Performance, 16-bit Digital Signal Controllers
The dsPIC33F devices contain extensive Digital Signal Processor (DSP) functionality with a high performance 16-bit microcontroller (MCU) architecture.
Operating Range:
. Up to 40 MIPS operation (at 3.0-3.6V):
- Industrial temperature range (-40°C to +85°C)
- Extended temperature range (-40°C to +125°C)
High-Performance DSC CPU:
. Modified Harvard architecture
. C compiler optimized instruction set
. 16-bit wide data path
. 24-bit wide instructions
. Linear program memory addressing up to 4M instruction words
. Linear data memory addressing up to 64 Kbytes
. 83 base instructions: mostly 1 word/1 cycle
. Two 40-bit accumulators with rounding and saturation options
. Flexible and powerful addressing modes:
- Indirect
- Modulo
- Bit-Reversed
. Software stack
. 16 x 16 fractional/integer multiply operations
. 32/16 and 16/16 divide operations
. Single-cycle multiply and accumulate:
- Accumulator write back for DSP operations
- Dual data fetch
. Up to ±16-bit shifts for up to 40-bit data
Direct Memory Access (DMA):
. 8-channel hardware DMA
. Up to 2 Kbytes dual ported DMA buffer area (DMA RAM) to store data transferred via DMA:
- Allows data transfer between RAM and a peripheral while CPU is executing code (no cycle stealing)
. Most peripherals support DMA
Timers/Capture/Compare/PWM:
. Timer/Counters, up to five 16-bit timers:
- Can pair up to make two 32-bit timers
- One timer runs as a Real-Time Clock with an external 32.768 kHz oscillator - Programmable prescaler
. Input Capture (up to four channels):
- Capture on up, down or both edges
- 16-bit capture input functions
- 4-deep FIFO on each capture
. Output Compare (up to four channels):
- Single or Dual 16-bit Compare mode
- 16-bit Glitchless PWM mode
. Hardware Real-Time Clock/Calendar (RTCC):
- Provides clock, calendar, and alarm functions
Interrupt Controller:
. 5-cycle latency
. 118 interrupt vectors
. Up to 49 available interrupt sources
. Up to three external interrupts
. Seven programmable priority levels
. Five processor exceptions
Digital I/O:
. Peripheral pin Select functionality
. Up to 35 programmable digital I/O pins
. Wake-up/Interrupt-on-Change for up to 21 pins
. Output pins can drive from 3.0V to 3.6V
. Up to 5V output with open drain configuration
. All digital input pins are 5V tolerant
. 4 mA sink on all I/O pins
On-Chip Flash and SRAM:
. Flash program memory (up to 128 Kbytes)
. Data SRAM (up to 16 Kbytes)
. Boot, Secure, and General Security for program Flash
System Management:
. Flexible clock options:
- External, crystal, resonator, internal RC
- Fully integrated Phase-Locked Loop (PLL)
- Extremely low jitter PLL
. Power-up Timer
. Oscillator Start-up Timer/Stabilizer
. Watchdog Timer with its own RC oscillator
. Fail-Safe Clock Monitor
. Reset by multiple sources
Power Management:
. On-chip 2.5V voltage regulator
. Switch between clock sources in real time
. Idle, Sleep, and Doze modes with fast wake-up
Analog-to-Digital Converters (ADCs):
. 10-bit, 1.1 Msps or 12-bit, 500 Ksps conversion:
- Two and four simultaneous samples (10-bit ADC)
- Up to 13 input channels with auto-scanning
- Conversion start can be manual or synchronized with one of four trigger sources - Conversion possible in Sleep mode
- ±2 LSb max integral nonlinearity
- ±1 LSb max differential nonlinearity
Audio Digital-to-Analog Converter (DAC):
. 16-bit Dual Channel DAC module
. 100 Ksps maximum sampling rate
. Second-Order Digital Delta-Sigma Modulator
Data Converter Interface (DCI) module:
. Codec interface
. Supports I2S and AC.97 protocols
. Up to 16-bit data words, up to 16 words per frame
. 4-word deep TX and RX buffers
Comparator Module:
. Two analog comparators with programmable input/output configuration
CMOS Flash Technology:
. Low-power, high-speed Flash technology
. Fully static design
. 3.3V (±10%) operating voltage
. Industrial and Extended temperature
. Low power consumption
Communication Modules:
. 4-wire SPI (up to two modules):
- Framing supports I/O interface to simple codecs
- Supports 8-bit and 16-bit data
- Supports all serial clock formats and sampling modes
. I2C.:
- Full Multi-Master Slave mode support
- 7-bit and 10-bit addressing
- Bus collision detection and arbitration
- Integrated signal conditioning
- Slave address masking
. UART (up to two modules):
- Interrupt on address bit detect
- Interrupt on UART error
- Wake-up on Start bit from Sleep mode
- 4-character TX and RX FIFO buffers
- LIN bus support
- IrDA® encoding and decoding in hardware
- High-Speed Baud mode
- Hardware Flow Control with CTS and RTS
. Enhanced CAN (ECAN. module) 2.0B active:
- Up to eight transmit and up to 32 receive buffers
- 16 receive filters and three masks
- Loopback, Listen Only and Listen All
- Messages modes for diagnostics and bus monitoring
- Wake-up on CAN message
- Automatic processing of Remote
Transmission Requests
- FIFO mode using DMA
- DeviceNet. addressing support
. Parallel Master Slave Port (PMP/EPSP):
- Supports 8-bit or 16-bit data
- Supports 16 address lines
. Programmable Cyclic Redundancy Check (CRC):
- Programmable bit length for the CRC generator polynomial (up to 16-bit length) - 8-deep, 16-bit or 16-deep, 8-bit FIFO for data input
Packaging:
. 28-pin SDIP/SOIC/QFN-S
. 44-pin TQFP/QFN
图1. dsPIC33F DSC框图
二.dsPIC33F的MPLAB入门级开发套件DM330011
图2.用于dsPIC33F的MPLAB入门级开发套件外形图
The MPLAB Starter Kit for dsPIC Digital Signal Controllers is a complete hardware and software tool suite for exploring applications based upon Microchip’s dsPIC DSCs. With a built-in debugger on the board, simply install the software and connect the USB cable to the PC. Start up MPLAB IDE and you are in full control, able to run the sample programs, and to download and test your own applications. The board is designed with dsPIC DSC with 256 KB of flash memory, a high-fidelity audio codec, microphone input and headphone/speaker outputs, and is powered from the USB connection to the PC. Also on the board are reconfigurable switches, potentiometers, a temperature sensor and a 4 Mb serial EEPROM to store data such as audio samples.
MPLAB入门级开发套件主要特性:
•Board includes integrated debugger / programmer
•USB powered
•dsPIC33FJ256GP506 DSC with 256 KB Flash and 16 KB RAM
•16/24/32 bit codec with a maximum sampling frequency of 48KHz
•Low cost audio capture and play back circuitry using the 12 bit ADC and PWM Audio
•Microphone and line level inputs with adjustable input gain
•100mW headphone amplifier with digital volume control
• 2 switches and 3 LEDs for user application purposes
• 4 Megabit serial flash memory for application use
•Temperature sensor
•CD contains MPLAB IDE with full editor, programmer and debugger; MPLAB C Compiler; code examples and user’s guide
•All tools provided for developing and prototyping speech and audio application & algorithms
Package Contents
•dsPIC audio board with integrated debugger
•MPLAB Starter Kit with CD containing MPLAB IDE, MPLAB C Compiler for dsPIC DSCs, application notes, and sample programs
•USB cable
图3. MPLAB入门级开发系统连接图
图4. MPLAB入门级开发套件方框图
图5. 调试输入和控制电路图(1)
图6. 调试输入和控制电路图(2)
图B 接口/目标电源电路图
图8.语音处理电路图
图9.闪存存储器电路图
图10.输出比较模块 PWM 滤波器电路图
图11.音频CODEC 电路图
图12.音频输入电路图
图13.音频输出电路图
图14.用户LED, 用户开关和温度传感器电路图。

相关文档
最新文档