Hi @Pablo_Ramos,
Thanks again for looking into this!
I’m referring to the LPC546xx User Manual, specifically:
Section 14.6.3, which notes that Match Register MRx can be used as a software overflow counter by setting it to 0xFFFF_FFFF.
Section 14.4.4, which shows the CTIMER block diagram, indicating that the match and capture subsystems are architecturally independent.
Here’s what I’m trying to confirm:
I currently have CTIMER0 Channel 0 used for input capture, using Capture Register CR0. I’d like to simultaneously use Match Register MR0 (on the same CTIMER and channel) to track the Timer Counter (TC) value — essentially using MR0 as a software overflow threshold.
I do not intend to configure any match output actions (e.g., toggling pins, resetting TC, etc.), and I will not be modifying the EMR (External Match Register). However, I may enable the interrupt on match (via MCR) to detect when TC reaches MR0, purely for software tracking purposes.
From the block diagram, it appears that the match and capture logic are independent, which suggests this should be valid. Could you confirm if this usage is supported, and whether there are any caveats or register interactions I should be aware of when using MR0 in this way alongside CR0?
Here is block diagram iam referring too, also attached UM.
Thanks again!