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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/28/07 01:31
Read: times


 
#148818 - Simplicity is always better
Responding to: ???'s previous message
Sometimes it is not possible to choose a "beautiful" solution for Your buffering. Usually it is as You said the time that is playing against us. It can also be other factors like code size, not having RAM or just that the sapplication does not need to be that sophisticated.

But it You have the luxury to be able to choose then the architecture that gives the most understandable result is propably also the best.

In the 80's I was coding a mobile terminal that had this FSK modem and a very complex protocol involving bit interlacing and ECC (Error Correction Code). At that time the microcontrollers were far from easy to program and available resources were scarce. I still have the ElanE12B Programmer in the attic.

The project was dealing with Maritime Safety so everything You did had to be thoroughly documented, reviewed and tested. In a task like that You really want to avoid any fancy solutions and You want to make everything as simple and understandable as You can. For those who are interested, the project (back then) was the DSC for GMDSS

Flexibility also means that You are able to reuse the code more often. It is not only the matter of not rewriting the code, You also skip module testing and the documentation. This is a real relief if there are extra demand on code reliability. I remember this project where the device was delivered into a place (orbit) where it no more was possible to make any program changes to the core functionality.


List of 34 messages in thread
TopicAuthorDate
Having problem on using interrupt            01/01/70 00:00      
   Answers            01/01/70 00:00      
      not so fast, Cristoph and to Ragu            01/01/70 00:00      
         Serial comm is slow.            01/01/70 00:00      
            if you read the OP            01/01/70 00:00      
               good interupts            01/01/70 00:00      
                  AAAAAARGH            01/01/70 00:00      
                     not AAAAAAAARGH            01/01/70 00:00      
                        OH YES            01/01/70 00:00      
                           do You ever avoid "non-debuggable"?            01/01/70 00:00      
                              always            01/01/70 00:00      
                                 nice            01/01/70 00:00      
                                    a trick for "long ISRs" better than a RTOS            01/01/70 00:00      
         Buffered RX            01/01/70 00:00      
            not much difference            01/01/70 00:00      
               You are right            01/01/70 00:00      
   Sucess with interrupts            01/01/70 00:00      
      Isn't it too short?            01/01/70 00:00      
         the reason for circular buffers            01/01/70 00:00      
            Worst case, instead of average            01/01/70 00:00      
               absolutely, just worst case is not as bad            01/01/70 00:00      
                  single, double and ring buffer            01/01/70 00:00      
                     single, double and ring buffer app dependent            01/01/70 00:00      
         and some more reasons to use (circular) buffers            01/01/70 00:00      
            buffer overflow error            01/01/70 00:00      
               Buffer overflow handling            01/01/70 00:00      
                  Buffering options            01/01/70 00:00      
                     Beauty contest !            01/01/70 00:00      
                        flexible is the best?            01/01/70 00:00      
                        Simplicity is always better            01/01/70 00:00      
                           simple is another word for            01/01/70 00:00      
                              Where is the borderline to stumble on            01/01/70 00:00      
                                 Copper Oxide            01/01/70 00:00      
               please exclude me from the 'we'            01/01/70 00:00      

Back to Subject List