没有合适的资源?快使用搜索试试~ 我知道了~
首页dsp 28335ecap参数
dsp 28335ecap参数

dsp 28335ecap参数,芯片资料,原始文档。TMS320x2833x, 2823x Enhanced Capture (eCAP) Module Reference Guide
资源详情
资源评论
资源推荐

TMS320x2833x, 2823x Enhanced Capture
(eCAP) Module
Reference Guide
Literature Number: SPRUFG4A
August 2008 – Revised June 2009

Contents
Preface ........................................................................................................................................ 6
1 Introduction ......................................................................................................................... 9
2 Description .......................................................................................................................... 9
3 Capture and APWM Operating Mode ..................................................................................... 11
4 Capture Mode Description ................................................................................................... 12
4.1 Event Prescaler .......................................................................................................... 12
4.2 Edge Polarity Select and Qualifier .................................................................................... 13
4.3 Continuous/One-Shot Control .......................................................................................... 13
4.4 32-Bit Counter and Phase Control .................................................................................... 14
4.5 CAP1-CAP4 Registers .................................................................................................. 15
4.6 Interrupt Control.......................................................................................................... 15
4.7 Shadow Load and Lockout Control ................................................................................... 16
4.8 APWM Mode Operation ................................................................................................ 17
5 Capture Module - Control and Status Registers ..................................................................... 18
6 Register Mapping ............................................................................................................... 26
7 Application of the ECAP Module ......................................................................................... 26
7.1 Example 1 - Absolute Time-Stamp Operation Rising Edge Trigger .............................................. 27
7.2 Example 2 - Absolute Time-Stamp Operation Rising and Falling Edge Trigger ................................ 30
7.3 Example 3 - Time Difference (Delta) Operation Rising Edge Trigger ............................................ 32
7.4 Example 4 - Time Difference (Delta) Operation Rising and Falling Edge Trigger .............................. 34
8 Application of the APWM Mode ............................................................................................ 36
8.1 Example 1 - Simple PWM Generation (Independent Channel/s) ................................................. 36
8.2 Example 2 - Multi-channel PWM Generation With Phase Control ................................................ 37
Appendix A Revision History ...................................................................................................... 40
SPRUFG4A – August 2008 – Revised June 2009 Table of Contents 3
Submit Documentation Feedback

www.ti.com
List of Figures
1 Multiple eCAP Modules In A 2823x/2833x System .................................................................... 10
2 Capture and APWM Modes of Operation ............................................................................... 11
3 Capture Function Diagram ................................................................................................ 12
4 Event Prescale Control .................................................................................................... 13
5 Prescale Function Waveforms ............................................................................................ 13
6 Details of the Continuous/One-shot Block .............................................................................. 14
7 Details of the Counter and Synchronization Block ..................................................................... 15
8 Interrupts in eCAP Module ................................................................................................ 16
9 PWM Waveform Details Of APWM Mode Operation .................................................................. 17
10 Time-Stamp Counter Register (TSCTR) ................................................................................ 18
11 Counter Phase Control Register (CTRPHS) ........................................................................... 18
12 Capture-1 Register (CAP1) .............................................................................................. 18
13 Capture-2 Register (CAP2) ............................................................................................... 18
14 Capture-3 Register (CAP3) ............................................................................................... 19
15 Capture-4 Register (CAP4) ............................................................................................... 19
16 ECAP Control Register 1 (ECCTL1) ..................................................................................... 19
17 ECAP Control Register 2 (ECCTL2) ..................................................................................... 21
18 ECAP Interrupt Enable Register (ECEINT) ............................................................................. 23
19 ECAP Interrupt Flag Register (ECFLG) ................................................................................. 24
20 ECAP Interrupt Clear Register (ECCLR) ................................................................................ 24
21 ECAP Interrupt Forcing Register (ECFRC) ............................................................................. 25
22 Capture Sequence for Absolute Time-stamp and Rising Edge Detect .............................................. 28
23 Capture Sequence for Absolute Time-stamp With Rising and Falling Edge Detect ............................... 30
24 Capture Sequence for Delta Mode Time-stamp and Rising Edge Detect .......................................... 32
25 Capture Sequence for Delta Mode Time-stamp With Rising and Falling Edge Detect ........................... 34
26 PWM Waveform Details of APWM Mode Operation ................................................................... 36
27 Multi-phase (channel) Interleaved PWM Example Using 3 eCAP Modules ........................................ 38
List of Figures4 SPRUFG4A – August 2008 – Revised June 2009
Submit Documentation Feedback

www.ti.com
List of Tables
1 Time-Stamp Counter Register (TSCTR) Field Descriptions .......................................................... 18
2 Counter Phase Control Register (CTRPHS) Field Descriptions ..................................................... 18
3 Capture-1 Register (CAP1) Field Descriptions ......................................................................... 18
4 Capture-2 Register (CAP2) Field Descriptions ......................................................................... 19
5 Capture-3 Register (CAP3) Field Descriptions ......................................................................... 19
6 Capture-4 Register (CAP4) Field Descriptions ......................................................................... 19
7 ECAP Control Register 1 (ECCTL1) Field Descriptions .............................................................. 20
8 ECAP Control Register 2 (ECCTL2) Field Descriptions .............................................................. 21
9 ECAP Interrupt Enable Register (ECEINT) Field Descriptions ....................................................... 23
10 ECAP Interrupt Flag Register (ECFLG) Field Descriptions ........................................................... 24
11 ECAP Interrupt Clear Register (ECCLR) Field Descriptions ......................................................... 25
12 ECAP Interrupt Forcing Register (ECFRC) Field Descriptions ....................................................... 25
13 Control and Status Register Set .......................................................................................... 26
A-1 Changes Made in This Revision ......................................................................................... 40
SPRUFG4A – August 2008 – Revised June 2009 List of Tables 5
Submit Documentation Feedback
剩余40页未读,继续阅读





安全验证
文档复制为VIP权益,开通VIP直接复制

评论1