I am trying to count the number of pulses of a signal which is connected to PA4 using TC0. The uC is the sam4sd32c. This is the code that I am using
tc_init(TC0, 0, TC_CMR_TCCLKS_XC1);
count= tc_read_cv(TC0, 0);
It has no errors but I doesn't work. Could you help me, please?