The eCAP module represents one
complete capture channel that can be instantiated multiple times, depending on the
target device. In the context of this guide, one eCAP channel has the following
independent key resources:
- Dedicated
input capture pin
- Output X-BAR is used to configure output in APWM mode
- 32-bit time base
(counter)
- 4 x 32-bit time-stamp capture registers (CAP1-CAP4)
- Four-stage sequencer (modulo4 counter) that is synchronized
to external events, eCAP pin rising/falling edges.
- Independent edge polarity
(rising/falling edge) selection for all four events
- Input capture signal prescaling (from 2-62 or bypass)
- One-shot compare register (two bits) to freeze captures
after 1-4 time-stamp events
- Control for continuous time-stamp captures using a
four-deep circular buffer (CAP1-CAP4) scheme
- Interrupt capabilities on any of the four capture
events