Hi Bence, Thanks for your patch. On 05/02/25 4:20 pm, Bence Csókás wrote: > The TCB has three R/W-able "general purpose" hardware registers: > RA, RB and RC. The hardware is capable of: > * sampling Counter Value Register (CV) to RA/RB on a trigger edge > * sending an interrupt of this change > * sending an interrupt on CV change due to trigger > * triggering an interrupt on CV compare to RC > * stop counting after sampling to RB > > To enable using these features in user-space, an interrupt handler > was added, generating the necessary counter events. On top, RA/B/C > registers are added as Count Extensions. I did a quick test on the SAMA5D4 Xplained board and observed that the interrupt count increments on overflow. By the way, I came across William's response to your question, and from that discussion, I gather that you're working on a SAMA5D2 board. Are you seeing the count value increase after writing this: echo increase > /sys/bus/counter/devices/counter0/count0/function cat /sys/bus/counter/devices/counter0/count0/count > > Bence Csókás (2): > counter: microchip-tcb-capture: Add IRQ handling > counter: microchip-tcb-capture: Add capture extensions for registers > RA-RC > > drivers/counter/microchip-tcb-capture.c | 125 ++++++++++++++++++++++++ > 1 file changed, 125 insertions(+) > -- With Best Regards, Dharma B.