《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 嵌入式技術(shù) > 解決方案 > Microchip dsPIC33E數(shù)字信號(hào)控制器USB入門開發(fā)方案

Microchip dsPIC33E數(shù)字信號(hào)控制器USB入門開發(fā)方案

2011-07-14
關(guān)鍵詞: 微處理器|微控制器 dsPIC33E USB

Microchip公司的dsPIC33E和PIC24E系列是高性能的16位數(shù)字信號(hào)控制器和位控制器,3.0V-3.6V時(shí)的性能高達(dá)60MIPS,MCU的CPU采用改進(jìn)的哈佛架構(gòu),16位寬數(shù)據(jù)通路和24位寬指令,DSC的CPU具有11條附加指令,兩個(gè)40位累加器,可進(jìn)行16x16分?jǐn)?shù)乘/除運(yùn)算,雙數(shù)據(jù)提取,單周期乘法和累加。支持高端的工業(yè)控制和通信應(yīng)用,包括伺服馬達(dá)控制,太陽能逆變器以及運(yùn)行兩個(gè)并聯(lián)三相馬達(dá)等。本文介紹了dsPIC33E和PIC24E系列主要特性,方框圖和dsPIC33E USB入門套件主要特性,框圖和電路圖,PCB布局圖。

dsPIC33E和PIC24E系列主要特性:

Operating Range:

• Up to 60 MIPS Operation (at 3.0V-3.6V):
- Industrial temperature range (-40℃ to +85℃)
- Extended temperature range (-40℃ to +125℃)

High-Performance MCU CPU: (All Devices)

• 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
• 73 Base Instructions: mostly with an effective instruction execution throughput of one instruction per cycle
• Flexible and Powerful Indirect Addressing mode
• Software Stack
• 16x16 Integer Multiply Operations
• 32/16 and 16/16 Integer Divide Operations
• Up to ±16-bit Shifts

Additional High-Performance DSC CPU

Features:(dsPIC33EPXXXMU806/810/814 Devices Only)

• 11 Additional Instructions
• Two 40-bit Accumulators with Rounding and Saturation Options
• Additional Flexible and Powerful Addressing modes:
- Modulo
- Bit-Reversed
• Single-Cycle Multiply and Accumulate:
- Accumulator write back for DSP operations
- Dual data fetch
• Single-Cycle shifts for up to 40-bit Data
• 16x16 Fractional Multiply/Divide Operations

Direct Memory Access (DMA):

• 15-Channel Hardware DMA:
- Allows for transfer of data to/from any data memory location
• Up to 4 Kbytes Dual Ported DMA Buffer Area (DPSRAM) to store data transferred via DMA:
- Allows for fast data transfer between RAM and a peripheral while CPU is executing code (no cycle stealing)

• Most Peripherals Support DMA

Interrupt Controller:

• 13-Cycle Fixed Latency or 9- to 13-Cycle Variable Latency (user-selectable)
• Up to 116 Available Interrupt Sources
• Up to Five External Interrupts
• Seven Programmable Priority Levels
• Seven Processor Exceptions

Timers/Capture/Compare/PWM:

• Timer/Counters, up to Nine 16-bit Timers:
- Can pair up to make four 32-bit timers
- One timer runs as a Real-Time Clock with an external 32.768 kHz oscillator
- Programmable prescaler
• Input Capture (up to 16 channels):
- Independent 16-bit time base
- Capture on up, down or both edges
- 16-bit capture input functions
- 4-deep FIFO on each capture
- Synchronous, Triggered and Cascaded modes
• Output Compare (up to 16 channels):
- Independent 16-bit time base
- Single or Dual 16-bit Compare mode
- 16-bit Glitchless PWM mode
- Synchronous, Triggered and Cascaded modes
• Hardware Real-Time Clock and Calendar (RTCC):
Provides clock, calendar, and alarm functions

Digital I/O:

• Peripheral Pin Select (PPS) Functionality
• Wake-up/Interrupt-on-Change for up to 122 pins
• Output Pins can drive from 3.0V to 3.6V
• Up to 5V Output with Open Drain Configuration
• Up to 8 or 10 mA sink on I/O pins
• Up to 8 mA or 12 mA source on I/O pins

On-Chip Flash and SRAM:

• Flash Program Memory (up to 512 Kbytes)
• Flash Auxiliary Memory (up to 24 Kbytes):
- Can be used as Bootloader space or for EEPROM emulation without stalling the CPU
• Data SRAM (up to 52 Kbytes)
• Read/Write Security for Program Flash and Auxiliary Memory

System Management:

• Flexible Clock Options:
- External, crystal, resonator, internal RC
- Fully integrated Phase-Locked Loop (PLL)
- Extremely low jitter PLL
- Auxiliary PLL for USB clocking
- Reference clock output
• Programmable Power-up Timer
• Oscillator Start-up Timer
• Watchdog Timer with its own RC Oscillator
• Fail-Safe Clock Monitor
• Multiple Reset Sources

Power Management:

• On-chip 1.8V Voltage Regulator
• Switch between Clock Sources in Real Time
• Idle, Sleep, and Doze modes with Fast Wake-up

CMOS Flash Technology:

• Low-Power, High-Speed Flash Technology
• Fully Static Design
• 3.3V (±10%) Operating Voltage
• Industrial and Extended Temperature
• Low-Power Consumption

Analog-to-Digital Converters (ADCs):

• 10-bit, 1.1 Msps or 12-bit, 500 Ksps Conversion:
- Two and four simultaneous samples (10-bit mode)
- Up to 32 input channels with auto-scanning
- Conversion start can be manual or synchronized with one of 13 trigger sources
- Conversions in Sleep mode
- ±2 LSb max integral nonlinearity
- ±1 LSb max differential nonlinearity
• Additional 10-bit, 1.1 Msps ADC, with up to 16 Input Channels

Data Converter Interface (DCI) Module:

(dsPIC33EPXXXMU806/810/814 Devices Only)

• 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:

• Three Analog Comparators with Programmable Input/Output Configuration
• Blanking and Filtering Options
• Internal or External Voltage References

Motor Control Peripherals:

(dsPIC33EPXXXMU806/810/814 Devices Only)

• Motor Control PWM:
- Two master time base modules can control dual 3-phase motors simultaneously
- Up to seven PWM generators
- Two PWM outputs per PWM generator
- Individual period and duty cycle for each PWM output
- Dead-time insertion and correction
- Duty cycle, dead time, phase shift and frequency resolution of 8.32 ns
- Seven independent Fault and current-limit inputs
- Center-Aligned, Edge-Aligned, Push-Pull, Multi-Phase, Variable Phase, Fixed Off-time,
Current Reset and Current Limit modes
- Output override control
- Output Chopping (gated) mode
- Special Event Triggers

Motor Control Peripherals (Continued): (dsPIC33EPXXXMU806/810/814 Devices
Only)

• Quadrature Encoder Interface (QEI):
- 32-bit position counter
- 32-bit Index pulse counter
- 32-bit Interval timer
- 16-bit velocity counter
- 32-bit Position Initialization/Capture/Compare High register
- 32-bit Position Compare Low register
- x4 Quadrature Count mode
- External Up/Down Count mode
- External Gated Count mode
- External Gated Timer mode
- Internal Timer mode

Communication Modules:

• USB On-The-Go (OTG):
- USB v2.0 On-The-Go (OTG) compliant
- Dual role capable – can act as either Host or Peripheral
- Low-speed (1.5 Mbps) and Full-speed (12 Mbps) USB operation in Host mode
- High-precision PLL for USB
- Supports up to 32 endpoints (16 bidirectional):
• USB module can use any RAM location on the device as USB endpoint buffers:
- On-chip USB transceiver
- Interface for Off-chip USB transceiver
- On-chip pull-up and pull-down resistors
• 4-wire SPI (up to four 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™ (up to two modules):
- Full Multi-Master Slave mode support
- 7-bit and 10-bit addressing
- Bus collision detection and arbitration
- Integrated signal conditioning
- Slave address masking
- IPMI support
- SMBus support

Communication Modules (Continued):

• UART (up to four 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™) 2.0B active (up to two modules):
- 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 up to 16 address lines
• Programmable Cyclic Redundancy Check (CRC):
- Programmable bit length for the CRC generator polynomial (up to 32-bit length)
- 4x32, 8x16 or 16x8 FIFO for data input

Packaging:

• 64-pin QFN (9x9x0.9 mm)
• 64-pin TQFP (10x10x1 mm)
• 100-pin TQFP (12x12x1 mm)
• 100-pin TQFP (14x14x1 mm)
• 121-pin BGA (10x10x1.2 mm)
• 144-pin LQFP (20x20x1.4 mm)
• 144-pin TQFP (16x16x1 mm)

圖1。dsPIC33EPXXXMU806/810/814和PIC24EPXXXGU810/814方框圖

dsPIC33E USB入門套件

The starter kit comes preloaded with demonstration software for the user to explore the
new features of the dsPIC33E DSC family (dsPIC33E USB Starter Kit) or the PIC24E MCU family (PIC24E USB Starter Kit). It is also expandable through a modular expansion interface, which allows the user to extend its functionality. The starter kit also supplies on-board circuitry for full debug and programming capabilities.

dsPIC33E USB入門套件包括:

The starter kit contains the following items:

• dsPIC33E or PIC24E USB Starter Kit Development Board

• dsPIC33E or PIC24E USB Starter Kit Information Sheet

• USB mini-B to full-sized A cable - USB debug cable to debug and power the board

• USB micro-B to full-sized A cable - USB cable to communicate with the

dsPIC33E/PIC24E USB device port

圖2。dsPIC33E USB入門套件外形圖

dsPIC33E USB入門套件主要特性:

The top assembly of the board includes these key features:

1. dsPIC33EP512MU810 16-bit DSC device (dsPIC33E USB Starter Kit) or PIC24EP512GU810 16-bit MCU (PIC24E USB Starter Kit).

2. Green power indicator LED (D4).

3. 8 MHz crystal (Y3) for precision microcontroller clocking.

4. USB connectivity for on-board debugger communications (J2).

5. Three push button switches (SW1, SW2, SW3) for user-defined inputs.

6. Three user-defined indicator LEDs (LED1, LED2, LED3).

7. USB Type A receptacle (J6) connectivity for dsPIC33E/PIC24E USB host-based applications.

8. HOST mode power jumper (J5).

9. Regulated +3.3V power supply for powering the starter kit via USB or an
expansion board.


圖3。dsPIC33E USB入門套件框圖

圖4。dsPIC33E USB入門版電路圖(目標(biāo)器件:dsPIC33E/PIC24E)

圖5。dsPIC33E USB入門版電路圖:電源分布/開關(guān)


圖6。dsPIC33E USB入門版電路圖:用戶LED

圖7。dsPIC33E USB入門版電路圖:用戶開關(guān)

圖8。dsPIC33E USB入門版電路圖:接口

圖9。dsPIC33E USB入門版電路圖:USB連接

圖10。dsPIC33E USB入門版電路圖:MINI-ICSP接口

圖11。dsPIC33E USB入門版電路圖:串行EEPROM

圖12。dsPIC33E USB入門版電路圖:目標(biāo)ICSP信號(hào)

圖13。dsPIC33E USB入門版電路圖:D PIC24FJ256GB106主調(diào)試器

圖14。dsPIC33E USB入門版布局圖(頂層)
詳情請(qǐng)見:
http://ww1.microchip.com/downloads/en/DeviceDoc/DS70616C.pdf

http://ww1.microchip.com/downloads/en/DeviceDoc/33E_24E_USB_SK_UserGuide.pdf



本站內(nèi)容除特別聲明的原創(chuàng)文章之外,轉(zhuǎn)載內(nèi)容只為傳遞更多信息,并不代表本網(wǎng)站贊同其觀點(diǎn)。轉(zhuǎn)載的所有的文章、圖片、音/視頻文件等資料的版權(quán)歸版權(quán)所有權(quán)人所有。本站采用的非本站原創(chuàng)文章及圖片等內(nèi)容無法一一聯(lián)系確認(rèn)版權(quán)者。如涉及作品內(nèi)容、版權(quán)和其它問題,請(qǐng)及時(shí)通過電子郵件或電話通知我們,以便迅速采取適當(dāng)措施,避免給雙方造成不必要的經(jīng)濟(jì)損失。聯(lián)系電話:010-82306118;郵箱:aet@chinaaet.com。