Hello there,
Please excuse me because I didn't get you fully. Let me clarify one thing are you taking pwm as a feedback?? to MCU?? .. then use Input capture module (the best option) or use change notification(for checking purpose only). The input capture module is used to capture a timer value from one of two selectable time bases upon an event on an input pin.
The input capture module has multiple operating modes which are selected via the register.
The operating modes include:
• Capture timer value on every falling edge of input applied at the ICx pin
• Capture timer value on every rising edge of input applied at the ICx pin
• Capture timer value on every 4th rising edge of input applied at the ICx pin
• Capture timer value on every 16th rising edge of input applied at the ICx pin
• Capture timer value on every rising and every falling edge of input applied at the ICx pin
• Device wake-up from capture pin during CPU Sleep and Idle modes
Best regards,