This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Timer A output from 2MHz to 80KHz

When running in SCE single task, below code is running well which can output 2MHz:

 

//configure Timer0A for PWM use

TimerConfigure(GPT0_BASE, TIMER_CFG_SPLIT_PAIR  | TIMER_CFG_A_PWM); TimerLoadSet(GPT0_BASE, TIMER_A, 24);  // Timer A carrier is 48MHz/24 = 2MHz TimerMatchSet(GPT0_BASE, TIMER_A, 12); // The duty cycle of the output PWM signal:50%

 

But when put into BLE task, with same code output change to 80KHz and unstable. Is this timer A used by BLE also? Do we have any other workable Timer can be used for 2MHz? Or how can we solve Timer A issue?

Thank you very much.