This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Questions about timer0 with rtx51 tiny

Hello all,

I have a question about Timer0 when using rtx51 rtos. Is this timer shut off when not using round robin mode. I am working with a multitasking program that uses event driven switching so i have disabled round robin mode. When i call os_wait(K_IVL,10,0) the program will never pass this line. I can see TCON = 0x00 or 0xC0 meaning timer 0 is off. Setting TR0 to 1 immidiatly before os_wait(K_IVL,10,0) will allow it to work.

Am i supposed to start this timer myself at the beginning of the code somewhere? Is it only supposed to be used in round robin mode?

Im new to using a RTOS so sorry if this seems like an elementary question. Any tips, tricks, or not so obvious things someone could point out would be welcome.
Thanks,
Tom