We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi. I've performed a 1 Hz incremental counter with RTX51 Tiny functions. I configured the parameter INT_CLOCK EQU 10000 at the Conf_tny.a51 file configuration, with a 12Mhz XTAL and then I did a task that uses the os_wait function
unsigned int a; Void Counter(void) _task_ 1 { while (1) { a++; os_wait (K_TMO, 100, 0); } } Theorically, this task is executed every 1 second. The task is waiting 100 timer ticks before a new execution. But it's not working as I expect. What could be wrong?
It is working at a higher frequency. The counter increments many times in a second. I do not know exactly the frecuency but I know it does not increment once by second.