6.6 Application of the APWM Mode
In this example, the eCAP module is configured to operate as a PWM generator. Here, a very simple single-
channel PWM waveform is generated from the APWMx output pin. The PWM polarity is active high, which
means that the compare value (CAP2 reg is now a compare register) represents the on-time (high level) of the
period. Alternatively, if the APWMPOL bit is configured for active low, then the compare value represents the
off-time.
6.6.1 Example 1 - Simple PWM Generation (Independent Channel/s)
APRD
TSCTR
FFFFFFFF
ACMP
0000000C
APWMx
(o/p pin)
On
time
Off−time
Period
1000h
500h
300h
Figure 6-16. PWM Waveform Details of APWM Mode Operation
6.7 eCAP Registers
This section describes the Enhanced Capture Registers.
6.7.1 ECAP Base Address Table
Table 6-1. ECAP Base Address Table
Bit Field Name
Base Address
Instance
Structure
ECap1Regs
ECAP_REGS
0x0000_6A00
ECap2Regs
ECAP_REGS
0x0000_6A20
ECap3Regs
ECAP_REGS
0x0000_6A40
Enhanced Capture (eCAP)
446
TMS320x2806x Microcontrollers
SPRUH18I – JANUARY 2011 – REVISED JUNE 2022
Copyright © 2022 Texas Instruments Incorporated
Содержание TMS320 2806 Series
Страница 2: ......