Lîtus
Newbie level 1
Hi all!
I'm new here but I guess that this is the correct page to post my question. I'm trying to make an application using µC/OS-II RTOS and I am using two timers (OS_TMR)
I set the constant OS_TMR_CFG_TICKS_PER_SEC to 500000 because I need my timers running at around 48kHz but, when I test my application, the timers runs very slow... Do anyone know why?
I found that the "recomended" value for OS_TMR_CFG_TICKS_PER_SEC is 10 (what actually means 10Hz) but doesn't say anything about maximum. Is there any max value permitted?
How can I have two timer tasks every 14µs and 20µs?
Thanks!!!
Good forum
PS: I hope you can excuse my bad english...
Added after 43 minutes:
As I'm using IAR EWARM I can debug my application and I can see some aspects of the RTOS configuration while is running. What I discovered is that both OS_TMR_EN and OR_TMR_CFG_TICKS_PER_SEC are not defined... It's strange because my timers are running... Can this be part of my problem? Or maybe is a EWARM uC/OS-II plug-in bug?
Thanks!
I'm new here but I guess that this is the correct page to post my question. I'm trying to make an application using µC/OS-II RTOS and I am using two timers (OS_TMR)
I set the constant OS_TMR_CFG_TICKS_PER_SEC to 500000 because I need my timers running at around 48kHz but, when I test my application, the timers runs very slow... Do anyone know why?
I found that the "recomended" value for OS_TMR_CFG_TICKS_PER_SEC is 10 (what actually means 10Hz) but doesn't say anything about maximum. Is there any max value permitted?
How can I have two timer tasks every 14µs and 20µs?
Thanks!!!
Good forum
PS: I hope you can excuse my bad english...
Added after 43 minutes:
As I'm using IAR EWARM I can debug my application and I can see some aspects of the RTOS configuration while is running. What I discovered is that both OS_TMR_EN and OR_TMR_CFG_TICKS_PER_SEC are not defined... It's strange because my timers are running... Can this be part of my problem? Or maybe is a EWARM uC/OS-II plug-in bug?
Thanks!