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 19:03
Read: times


 
#180889 - I agree with the principle, but not with the range
Responding to: ???'s previous message
I doubt anyone using an 8-bit MCU would start using 16-bit anything as part of a protocol. That's why they make 16-bitters!

Further, I doubt anyone would go so far as to use a keypad entry system for 200 commands. I'd guess it would take the form of a fairly simple command and a parameter or two, in which case the code would be tested separately, command recognition first, then parameter assessment.

Use the UART? Probably not, and if it had to be used, it could be done at test speed and not necessarily at 300 baud.

When it's hard to reach certain modules, one can verify their proper function and program flow separately.

For one who so often advocates for the use of large-core MCU's, I'm surprised that you'd suggest one use an 8-bitter as you've suggested.

I'm not sure your suggestion of using a state-machine to interpret keypad-entered commands and data is wise. I think table-lookup makes it sounder, quicker, and much more testable. That's just my opinion, of course. That's why my 8KB of code space is often <1kB of code and >6kB of table space.

With a table-lookup, all the valid entries are vectored through the table to their appropriate routine, while the invalid ones are vectored to an error handler. It's really simple. I think you've overcomplicated the problem. Maybe that's why you frequently find 32-bit MCU's more useful than 8-bitters.

After all, I've been doing this sort of thing since there were commercially available microcontrollers, and never gotten into a position wherein external hardware couldn't detect and monitor what was going on. With some MCU's, it was even possible to monitor the internal state of the MCU from outside with proper logic analyzer timing, so one could observe what was going on inside the subject MCU. This wasn't possible with ALL MCU's but certainly with some families. Maybe it's just a matter of style.

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