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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/24/07 07:47
Read: times


 
#143580 - Pipeline
Responding to: ???'s previous message

We have a classic case of a pipeline here.

Having an analog to digital converter be it internal or external to the cpu would've been helpful here rather than converting to a frequency. Another technique would be to use a part with a PCA timer as it has capture inputs that could sample your frequency inputs in parallel. I would not be using interrupts for the trigger sensors - you could easily poll at a fixed rate and sample all your trigger inputs.

Say we used a 1mS tick, all our timing is in relation to this (it should give enough resolution at a guess). We also have the color sensor values being continuously converted by the PCA hardware and interrupts so then it is a matter of software timers decremented by the 1mS tick, when these timers decrement to 0, we do something like get the current value of a color sensor. Each time you get a trigger input, these software timers are loaded with a value. Job done.

Sounds like a job for a PLC - most of them have the built in features for the frequency measurement. The logic would remain much the same whether you used a PLC or microcontroller. A PLC is just a microcontroller anyway.


So, think of your problem in discrete time intervals and the solution will be quite easy.


List of 31 messages in thread
TopicAuthorDate
Microcontroller for simutaneous processing.            01/01/70 00:00      
   Analog or digital sensors?            01/01/70 00:00      
   A moments thought            01/01/70 00:00      
      Oh no, that old chestnut again...            01/01/70 00:00      
   what is the problem????            01/01/70 00:00      
      My thought exactly            01/01/70 00:00      
         re microcrocontroller simul. processing            01/01/70 00:00      
            Simple 3 ADCs are nedded            01/01/70 00:00      
               Light to freq-converters            01/01/70 00:00      
      Seems simple enough!            01/01/70 00:00      
         depends            01/01/70 00:00      
   Why simultaneously?            01/01/70 00:00      
      explaination            01/01/70 00:00      
         explain again            01/01/70 00:00      
         Pipeline            01/01/70 00:00      
            addition            01/01/70 00:00      
               Need of Trigger            01/01/70 00:00      
                  black screen            01/01/70 00:00      
                     Response time            01/01/70 00:00      
                        What frequencies?            01/01/70 00:00      
                           once again - one multicolor sensor            01/01/70 00:00      
                           sensor characteristics            01/01/70 00:00      
                              3 sensors or one?            01/01/70 00:00      
                                 3 sensors for one color            01/01/70 00:00      
                                    my preffereces            01/01/70 00:00      
                                       About analog color sensor            01/01/70 00:00      
                                          re:About analog color sensor            01/01/70 00:00      
                                             Digtal sensor            01/01/70 00:00      
                                                re:digital sensor            01/01/70 00:00      
                                          AT89S52            01/01/70 00:00      
                                    some thoughts            01/01/70 00:00      

Back to Subject List