QN9080 SC TIMERS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

QN9080 SC TIMERS

1,025件の閲覧回数
suraj
Contributor I

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

0 件の賞賛
返信
0 返答(返信)