Dear E2E:
I use OMAP-L138 ECAP1 peripheral in APWM mode.
I found that "period" register - ECAP1_CAP1 register must be set to the value ("period"-1). Is this correct?
I found that by doing the experiments with small "period" values.
The "compare" register - ECAP1_CAP2 must be set to the exact value = "compare". Is it correct?
I looked through documentation (SPRUH77A) and found nothing about "period" value setting for ECAPx in APWM mode.
More than that - all examples in UG SPRUH77A showed CAP1 register setting to the exact "period" value which is not correct. See pages 417-423 in SPRUH77A.
Can you please respond on this post to confirm my understanding of ECAPx_CAP1 and CAP2 settings
Thank you for your help,
Boris Ruvinsky