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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/28/11 00:15
Read: times


 
#180870 - Well, I have to admit ...
Responding to: ???'s previous message
I don't find myself writing software state machines that are independent of the associated inputs and outputs. Maybe this is because, when dealing with microcontrollers, I don't pretend I'm using a large computer. Consequently, the state machines I do write generally have state bits that are also outputs and their transitions are governed by the current state and the inputs. This makes them easily testable.

My position, generally speaking, aside from timing loops, mostly for delay, I don't use software "state machines". If the state bits aren't involved in outputs, I find them irrelvant. Maybe you find my approach simplistic, but, after all, I want my app's to be simple, small, and quick. When I'm encoding (modulating) a data stream, or decoding it, I use hardware external to the MCU. If it's so slow a process that it would be realistic to do it in firmware, I might consider it, but, then, there's often a very simple way to do it that does, in fact, involve the outputs' use of state bits easily observable from the outside.

Now, I don't know what you mean by "software test harness" if it's not hardware. Further, I don't know what an 805x or other 8-bitter would do with machines whose "state length of the state machines may take the pattern generator a billion years to try to swing through 2^128 alternatives." but a half-decent pattern generator can update its outputs at a 100 MHz, and if the inputs and outputs change more slowly, they don't have to be all-inclusive. After all, state machines are static unless there's a transition, so just the transition states need be exercised in order to verify proper function. If it's noise sensitivity, looking for spurious noise-induced upsets, that you want, you have to have something different anyway. From what I gather, your notion of a "software test harness" is an imaginary thing rather than a piece of hardware. Perhaps you need to elucidate.

Most of the time I use the MCU for VERY simple processes and the MCU is simply a way of reducing hardware component count. My code body seldom exceeds 2kB, though, when accompanied by a number of tables, which I don't include in that 2kB the program store content may approach the code space limit of the MCU in question.

RE


List of 58 messages in thread
TopicAuthorDate
"standard syntax" of '51 assemblers            01/01/70 00:00      
   Use C            01/01/70 00:00      
      Use C - prudently            01/01/70 00:00      
         I hate C            01/01/70 00:00      
            Fight!            01/01/70 00:00      
            Time in the Trade            01/01/70 00:00      
               I'd submit that there are "gotcha's"            01/01/70 00:00      
                  The tools are better for HLL            01/01/70 00:00      
                  Gotchas!            01/01/70 00:00      
               Yes. Fight.            01/01/70 00:00      
                  why fight?            01/01/70 00:00      
                     that are still language-agnostic issues            01/01/70 00:00      
                        to Jan and others            01/01/70 00:00      
                           personal experience            01/01/70 00:00      
                  HLL productivity            01/01/70 00:00      
                     show me the proof            01/01/70 00:00      
                        Productivity article            01/01/70 00:00      
                           Tautologies!            01/01/70 00:00      
                              What's up with that???            01/01/70 00:00      
                           interesting but irrelevant            01/01/70 00:00      
                              Why is that irrelevant?            01/01/70 00:00      
                                 I think part of the confusion stems from this ...            01/01/70 00:00      
                                    which packages have you seen????            01/01/70 00:00      
                                       not those in recent history            01/01/70 00:00      
                                          I don't think that's true?            01/01/70 00:00      
                                             Common that consultants have commercial compilers            01/01/70 00:00      
                                                Who benefits?            01/01/70 00:00      
                                             Why would they buy that product at all?            01/01/70 00:00      
                                                So You are Niche            01/01/70 00:00      
                                          look at the link in my post above            01/01/70 00:00      
                                             Technology front            01/01/70 00:00      
                                                Richard doesn't exactly follow the technology front....            01/01/70 00:00      
                                                   and doesn't let that stop him ....            01/01/70 00:00      
                                                      Just because the paint is dry doesn't mean it won't work            01/01/70 00:00      
                                                   Perhaps not ...            01/01/70 00:00      
                                                Technology front? In '51 asm?            01/01/70 00:00      
                              again ... I have to agree            01/01/70 00:00      
                                 as usual, Richard            01/01/70 00:00      
                                    all you have to do is to read the whole message            01/01/70 00:00      
                        Do you test your code?            01/01/70 00:00      
                           sure I do            01/01/70 00:00      
                              What you can do ...            01/01/70 00:00      
                                 sw test harness            01/01/70 00:00      
                                    I don't know about yours, but mine can do that ...            01/01/70 00:00      
                                       Why didn't you read?            01/01/70 00:00      
                                          Well, I have to admit ...            01/01/70 00:00      
                                             You are forgetting memory variables in state machines            01/01/70 00:00      
                                                I think you're going over the top.            01/01/70 00:00      
                                                   Stop and think before you write            01/01/70 00:00      
                                                      Footnote about code coverage            01/01/70 00:00      
                                                         I agree with the principle, but not with the range            01/01/70 00:00      
                                                            Lucky you            01/01/70 00:00      
                                                               where you sit determines what you see            01/01/70 00:00      
                                                                  when seeing too little - get a chair to stand on            01/01/70 00:00      
                                                                     I'm not on board with all of that            01/01/70 00:00      
                                                                        I know, lifebuoy needed            01/01/70 00:00      
                  I have to agree            01/01/70 00:00      
            As I've often said ...            01/01/70 00:00      

Back to Subject List