Hi team,
Presently am working on SC Timers in QN9080 Eval board, am trying to calculate match value to set timer interrupt for 1us and am using 'ctimer_simple_match' driver example, below is the timer configuration
1) When am configuring matchConfig.matchValue to 16000000 am getting 1sec = on time and 1sec = off time, verified by toggling GPIO and generating interrupt for every 1sec
2) How should I calculate to generate interrupt for 1us, 1ms, could you derive formulae for configuring value for matchConfig.matchValue ?
3) Whats the need of prescalar ? In my case prescalar was configured as zero ..
matchConfig.enableCounterReset = true;
matchConfig.enableCounterStop = false;
matchConfig.matchValue = 16000000;//BUS_CLK_FREQ / 4; //1Sec interrupt
matchConfig.outControl = kCTIMER_Output_Toggle;
matchConfig.outPinInitState = true;
matchConfig.enableInterrupt = false;
Please solve my issue ASAP
Thanking you
Suraj, N