??? 01/02/05 15:31 Read: times |
#84227 - OS? Threads?! Responding to: ???'s previous message |
I think there must be some way to embedd operating syatem on mcu and use threads in it.Then it wont be a big problem. THEN it will be the REAL problem. I don't think you fully understand the performance of a '51 based system, and timing requirements of serial communication. A reasonable OS like Linux, on fast computers like P4 3GHZ still assures the longest delay between thread calls to be no longer than 0.1s. An OS on a 1MHZ MCU will create enough overhead to completely cripple all the timing issues.Software UART requires a very precise timing and there is no way it could achieve that in an OS environment. Only a standalone dedicated application can control the timing of subroutines precisely enough. A single switch to context of thread of the serial readout will take as long as transfer of several bits of the data - and you'd need switching several times during a single bit state to achieve the oversampling! An OS is a solution to some problems in '51. Not this one though. |
Topic | Author | Date |
Polling/Interrupt For Serial Input | 01/01/70 00:00 | |
bible time | 01/01/70 00:00 | |
Soft UART | 01/01/70 00:00 | |
Hardware? | 01/01/70 00:00 | |
SW UART is not a taboo! | 01/01/70 00:00 | |
yes... | 01/01/70 00:00 | |
think before you do | 01/01/70 00:00 | |
Use oversampling | 01/01/70 00:00 | |
soft UART | 01/01/70 00:00 | |
Half bits | 01/01/70 00:00 | |
Oversampling | 01/01/70 00:00 | |
It's not so bad | 01/01/70 00:00 | |
Oh yes it is! | 01/01/70 00:00 | |
Haven't read it completely? | 01/01/70 00:00 | |
neither have I | 01/01/70 00:00 | |
Sure you did not! | 01/01/70 00:00 | |
did I miss it | 01/01/70 00:00 | |
Problem displaying posts? | 01/01/70 00:00 | |
sure that will work | 01/01/70 00:00 | |
NOT A PIC | 01/01/70 00:00 | |
Just forget 89c51 then. | 01/01/70 00:00 | |
@Erik | 01/01/70 00:00 | |
...all said already. | 01/01/70 00:00 | |
OS? Threads?! | 01/01/70 00:00 | |
Appnote to read | 01/01/70 00:00 | |
threads | 01/01/70 00:00 | |
Problem Solved![]() | 01/01/70 00:00 |