EasyManua.ls Logo

Texas Instruments C2000

Texas Instruments C2000
342 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
eCAP
C2000 Microcontroller Workshop - Control Peripherals 7 - 39
can be pre-scaled. The capture module can operate in absolute time-stamp mode or difference
mode where the counter resets on each capture.
eCAP Module Block Diagram APWM Mode
32-Bit
Time-Stamp
Counter
Period
Register
(CAP3)
Period
Register
(CAP1)
Compare
Register
(CAP4)
Compare
Register
(CAP2)
PWM
Compare
Logic
ECAP
pin
Shadowed
Shadowed
SYSCLKOUT
immediate
mode
shadow
mode
shadow
mode
immediate
mode
If the capture module is not used, it can be configured as an asynchronous PWM module.
eCAP Module Registers
(lab file: ECap.c)
Name Description Structure
ECCTL1 Capture Control 1 ECapxRegs.ECCTL1.all =
ECCTL2 Capture Control 2 ECapxRegs.ECCTL2.all =
TSCTR Time-Stamp Counter ECapxRegs.TSCTR =
CTRPHS Counter Phase Offset ECapxRegs.CTRPHS =
CAP1 Capture 1 ECapxRegs.CAP1 =
CAP2 Capture 2 ECapxRegs.CAP2 =
CAP3 Capture 3 ECapxRegs.CAP3 =
CAP4 Capture 4 ECapxRegs.CAP4 =
ECEINT Enable Interrupt ECapxRegs.ECEINT.all =
ECFLG Interrupt Flag ECapxRegs.ECFLG.all =
ECCLR Interrupt Clear ECapxRegs.ECCLR.all =
ECFRC Interrupt Force ECapxRegs.ECFRC.all =

Table of Contents

Other manuals for Texas Instruments C2000

Related product manuals