Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/25/07 06:54
Read: times


 
#137907 - multi-GHz PC can get a lot done in a few ms!
Responding to: ???'s previous message
Mircea Gliga said:
something like this?:
while(system_is_up)
{
   for(i =1; i<number_of_uC; i++ ) 
   {
      do you have something to say? 
      if (yes) 
      { 
         process the data 
      } 
   } 
}

that will take a lot of processor time... wouldn't it ? Is that ok in terms of performance ?

Only if you run it constantly in a tight loop like that.

Better to have some delay between polls:
while(system_is_up)
{
   for each uC
   {
      do you have something to say? 
      if (yes) 
      { 
         process the data 
      } 
      pause
   } 
}

You just need to determine how long the 'pause' can be to ensure that each slave is polled often enough without overburdening the PC.

Remember, a multi-GHz PC can get an awful lot done in a few milliseconds!

You'd have to ensure that the 'pause' allows other tasks to run...

List of 24 messages in thread
TopicAuthorDate
multiple 8052 communication with PC            01/01/70 00:00      
   RS485            01/01/70 00:00      
   More COM: Ports            01/01/70 00:00      
      Further additional COM: ports            01/01/70 00:00      
    multiple 8052 communication with PC            01/01/70 00:00      
   Simple solution            01/01/70 00:00      
      Recipe for a short circuit?            01/01/70 00:00      
         Not on a standard 8051?            01/01/70 00:00      
      whether that is a problem is for the OP to determi            01/01/70 00:00      
      protocol ??            01/01/70 00:00      
         yes - no - see above            01/01/70 00:00      
            master slave PC performance            01/01/70 00:00      
               multi-GHz PC can get a lot done in a few ms!            01/01/70 00:00      
                  Slave comms controller?            01/01/70 00:00      
                     expanding on th above            01/01/70 00:00      
                        For just two devices            01/01/70 00:00      
                           been there, done that            01/01/70 00:00      
                              In this case...            01/01/70 00:00      
               Interrupt Request?            01/01/70 00:00      
               not really            01/01/70 00:00      
                  Not on a PC            01/01/70 00:00      
                     Not that it can't be done            01/01/70 00:00      
   Another recipe is a ring!!!            01/01/70 00:00      
      sure, if you have all the time in the world            01/01/70 00:00      

Back to Subject List