| ??? 10/27/05 18:56 Read: times |
#103052 - Thirded Responding to: ???'s previous message |
Russell Bull said:
Having said that, do you really need a pre-emptive task switcher? Could you not poll each line in order, skipping the ones that are not active?
Could you not have four copies of essentially the same code for each line? It would be 'cleaner' to have one set of subroutines that you pass a line number to. It is certainly a very strange design. Pre-emptively switching tasks but those tasks contain software timers is asking for trouble. If you need to run several tasks concurrently but need acurate timing in each then this is not the way to do it. The four sets all operate the same state machine so it would be a simple matter to run each with just a pointer to current state of the running set. Have a look at the discussion on real time on my 8052.com page which can be found at: http://www.8052.com/users/redtommo/realtime.html Ian |
| Topic | Author | Date |
| Improved code advice ? | 01/01/70 00:00 | |
| code advice | 01/01/70 00:00 | |
| I second it | 01/01/70 00:00 | |
Thirded | 01/01/70 00:00 |



