I am learning ASM and have to implement a 7 segement display control in ASM language using a sillicon labs C8051F330D and I have to do it as a RTOS Real time operating system using timer 2, does anypne have an example of using timer 2 or setting up a RTOS system with the 8051???
I am going to assume you are Not writing a RTOS, by your responses to the questions. What RTOS are you asking about? The Keil one? If so look for samples it installed. And look at the manual. Then ask specific questions. The internet hates to do homework.
Yes I do have to write an RTOS that manages 4 7 segmnet display, 8 leds, 1 ADC 1 DAC a keyboard and 4 stepper motors, I hace to start by managing the 4 7 segement displays
Writing an RTOS is not a simple task. You can not do it without a lot of instruction. Just using one requires some instruction. In this case if you have to ask you can't. You must have been given some instruction and reference material. Step 1 is the scheduler ( Task manager). But there are several kinds. I can assume you are doing co-operative multi-tasking. This would be the simplest. But again there is no one solution.
Yes I have to do a multitasking RTOS using timer 2 as base an using flags and interrupts
You are assuming there is only one way to do this. There are many. What kind of RTOS. You could spend a year writing a Full RTOS. What parts are you writing now? The fact that you are using timer2 is only of mild interest. You have not given enough information for anyone to help. If you are looking for some to send you work they have done..... Then you have your answer by now.