29
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
Contents
33.2.1
Capture and APWM Operating Mode
......................................................................
33.2.2
Capture Mode Description
...................................................................................
33.3
Application of the ECAP Module
.....................................................................................
33.3.1
Example 1 - Absolute Time-Stamp Operation Rising Edge Trigger
....................................
33.3.2
Example 2 - Absolute Time-Stamp Operation Rising and Falling Edge Trigger
......................
33.3.3
Example 3 - Time Difference (Delta) Operation Rising Edge Trigger
..................................
33.3.4
Example 4 - Time Difference (Delta) Operation Rising and Falling Edge Trigger
....................
33.4
Application of the APWM Mode
.......................................................................................
33.4.1
Simple PWM Generation (Independent Channel/s)
......................................................
33.5
eCAP Registers
..........................................................................................................
33.5.1
Time-Stamp Counter Register (TSCTR)
...................................................................
33.5.2
Counter Phase Control Register (CTRPHS)
...............................................................
33.5.3
Capture-1 Register (CAP1)
..................................................................................
33.5.4
Capture-2 Register (CAP2)
..................................................................................
33.5.5
Capture-3 Register (CAP3)
..................................................................................
33.5.6
Capture-4 Register (CAP4)
..................................................................................
33.5.7
ECAP Control Register 2 (ECCTL2)
........................................................................
33.5.8
ECAP Control Regiser 1 (ECCTL1)
........................................................................
33.5.9
ECAP Interrupt Flag Register (ECFLG)
....................................................................
33.5.10
ECAP Interrupt Enable Register (ECEINT)
..............................................................
33.5.11
ECAP Interrupt Forcing Register (ECFRC)
..............................................................
33.5.12
ECAP Interrupt Clear Register (ECCLR)
.................................................................
34
Enhanced Quadrature Encoder Pulse (eQEP) Module
..........................................................
34.1
Introduction
...............................................................................................................
34.2
Basic Operation
..........................................................................................................
34.2.1
EQEP Inputs
...................................................................................................
34.2.2
Functional Description
........................................................................................
34.2.3
eQEP Watchdog
...............................................................................................
34.2.4
Unit Timer Base
...............................................................................................
34.2.5
eQEP Interrupt Structure
.....................................................................................
34.3
eQEP Registers
.........................................................................................................
34.3.1
eQEP Position Counter Register (QPOSCNT)
............................................................
34.3.2
eQEP Position Counter Initialization Register (QPOSINIT)
.............................................
34.3.3
eQEP Maximum Position Count Register (QPOSMAX)
.................................................
34.3.4
eQEP Position-Compare Register (QPOSCMP)
..........................................................
34.3.5
eQEP Index Position Latch Register (QPOSILAT)
.......................................................
34.3.6
eQEP Strobe Position Latch Register (QPOSSLAT)
.....................................................
34.3.7
eQEP Position Counter Latch Register (QPOSLAT)
.....................................................
34.3.8
eQEP Unit Timer Register (QUTMR)
.......................................................................
34.3.9
eQEP Unit Period Register (QUPRD)
......................................................................
34.3.10
eQEP Watchdog Period Register (QWDPRD)
...........................................................
34.3.11
eQEP Watchdog Timer Register (QWDTMR)
...........................................................
34.3.12
eQEP Control Register (QEPCTL)
........................................................................
34.3.13
eQEP Decoder Control Register (QDECCTL)
...........................................................
34.3.14
eQEP Position-Compare Control Register (QPOSCTL)
................................................
34.3.15
eQEP Capture Control Register (QCAPCTL)
............................................................
34.3.16
eQEP Interrupt Flag Register (QFLG)
....................................................................
34.3.17
eQEP Interrupt Enable Register (QEINT)
................................................................
34.3.18
eQEP Interrupt Force Register (QFRC)
..................................................................
34.3.19
eQEP Interrupt Clear Register (QCLR)
...................................................................
34.3.20
eQEP Capture Timer Register (QCTMR)
.................................................................
34.3.21
eQEP Status Register (QEPSTS)
.........................................................................
34.3.22
eQEP Capture Timer Latch Register (QCTMRLAT)
....................................................