www.ti.com
29
SPNU563A–March 2018
Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
Contents
33.2.1 Capture and APWM Operating Mode ...................................................................... 1929
33.2.2 Capture Mode Description ................................................................................... 1930
33.3 Application of the ECAP Module ..................................................................................... 1936
33.3.1 Example 1 - Absolute Time-Stamp Operation Rising Edge Trigger .................................... 1937
33.3.2 Example 2 - Absolute Time-Stamp Operation Rising and Falling Edge Trigger...................... 1939
33.3.3 Example 3 - Time Difference (Delta) Operation Rising Edge Trigger.................................. 1941
33.3.4 Example 4 - Time Difference (Delta) Operation Rising and Falling Edge Trigger.................... 1943
33.4 Application of the APWM Mode ....................................................................................... 1945
33.4.1 Simple PWM Generation (Independent Channel/s) ...................................................... 1945
33.5 eCAP Registers.......................................................................................................... 1946
33.5.1 Time-Stamp Counter Register (TSCTR) ................................................................... 1946
33.5.2 Counter Phase Control Register (CTRPHS)............................................................... 1946
33.5.3 Capture-1 Register (CAP1) .................................................................................. 1947
33.5.4 Capture-2 Register (CAP2) .................................................................................. 1947
33.5.5 Capture-3 Register (CAP3) .................................................................................. 1948
33.5.6 Capture-4 Register (CAP4) .................................................................................. 1948
33.5.7 ECAP Control Register 2 (ECCTL2)........................................................................ 1949
33.5.8 ECAP Control Regiser 1 (ECCTL1) ........................................................................ 1951
33.5.9 ECAP Interrupt Flag Register (ECFLG) .................................................................... 1953
33.5.10 ECAP Interrupt Enable Register (ECEINT) .............................................................. 1954
33.5.11 ECAP Interrupt Forcing Register (ECFRC) .............................................................. 1955
33.5.12 ECAP Interrupt Clear Register (ECCLR) ................................................................. 1956
34 Enhanced Quadrature Encoder Pulse (eQEP) Module.......................................................... 1957
34.1 Introduction............................................................................................................... 1958
34.2 Basic Operation.......................................................................................................... 1960
34.2.1 EQEP Inputs ................................................................................................... 1960
34.2.2 Functional Description........................................................................................ 1961
34.2.3 eQEP Watchdog............................................................................................... 1976
34.2.4 Unit Timer Base ............................................................................................... 1976
34.2.5 eQEP Interrupt Structure..................................................................................... 1977
34.3 eQEP Registers ......................................................................................................... 1978
34.3.1 eQEP Position Counter Register (QPOSCNT)............................................................ 1979
34.3.2 eQEP Position Counter Initialization Register (QPOSINIT) ............................................. 1979
34.3.3 eQEP Maximum Position Count Register (QPOSMAX) ................................................. 1979
34.3.4 eQEP Position-Compare Register (QPOSCMP).......................................................... 1980
34.3.5 eQEP Index Position Latch Register (QPOSILAT) ....................................................... 1980
34.3.6 eQEP Strobe Position Latch Register (QPOSSLAT)..................................................... 1980
34.3.7 eQEP Position Counter Latch Register (QPOSLAT) ..................................................... 1981
34.3.8 eQEP Unit Timer Register (QUTMR)....................................................................... 1981
34.3.9 eQEP Unit Period Register (QUPRD) ...................................................................... 1981
34.3.10 eQEP Watchdog Period Register (QWDPRD)........................................................... 1982
34.3.11 eQEP Watchdog Timer Register (QWDTMR) ........................................................... 1982
34.3.12 eQEP Control Register (QEPCTL) ........................................................................ 1983
34.3.13 eQEP Decoder Control Register (QDECCTL) ........................................................... 1985
34.3.14 eQEP Position-Compare Control Register (QPOSCTL)................................................ 1986
34.3.15 eQEP Capture Control Register (QCAPCTL)............................................................ 1987
34.3.16 eQEP Interrupt Flag Register (QFLG) .................................................................... 1988
34.3.17 eQEP Interrupt Enable Register (QEINT) ................................................................ 1989
34.3.18 eQEP Interrupt Force Register (QFRC) .................................................................. 1990
34.3.19 eQEP Interrupt Clear Register (QCLR)................................................................... 1991
34.3.20 eQEP Capture Timer Register (QCTMR)................................................................. 1992
34.3.21 eQEP Status Register (QEPSTS) ......................................................................... 1993
34.3.22 eQEP Capture Timer Latch Register (QCTMRLAT) .................................................... 1994