| ??? 12/02/02 04:28 Read: times |
#33532 - RE: Simple 8052 O/S |
Daniel McBrearty wrote: ------------------------------- Up to now I have the OS working, in a mod'ed form (I hard coded the priority stuff to suit my app in the timer ISR), and two tasks attached to it. It's very tight for RAM, but it fits so far. In an 8052 would be no problem. But I have a few speed issues. My board is a MIDI processing device, when it gets a bunch of bytes all at once it's not keeping up. MIDI is 31250 bauds, or a byte every 330us or so. When several complete message arrives, my code is not keeping up. I have some restruring to do to try to improve that, or I might try running at 24MHz with another chip ------------------- why don't you simply store the incoming charecters by using circular buffer?then you can signal the serial handler.that should prevent missing any chars.ofcourse your interrupt disable time should be less than 330 us:-) pranav |



