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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/13/10 03:00
Modified:
  03/13/10 04:56

Read: times


 
#174093 - One simple diagnostic tool
Responding to: ???'s previous message
One simple diagnostic tool that can be adapted to a microcontroller board design for debugging this type of problem is shown at the following links:

http://www.elstonsystems.com/products/dual_20/
http://www.darkwire.com.au/html/lapt..._card.html



These are normally used as the POST CODE capture device on certain laptop computers that still have parallel ports. The DB25 connector is easy to adapt for connection to some port pins on your microcontroller. The USB connector on these is used simply for supplying 5V power to the module. You can hack up a normal USB cable and get the 5V from any power supply or battery back.

These work by simply sensing for stable changes in the 8-bits present on the pins 2 to 9 of the DB25 connector. The onboard hardware of the module captures the 8-bits and displays it on the HEX read out display. As the capture is in progress the second pair of hex displays shows the previous capture code whilst the most recent is displayed on the first pair of displays. The MCU on the ones I have can capture up to 99 separate 8-bit codes and keeps them in an internal memory for later review via the on board next/prev buttons. Due to the nature of how these work there is a limit to how fast of stable code changes that these can capture. I have not characterized the update capability rate of the one I have but have found that I can easily sprinkle progress debug codes in various places in my code and see the codes as they appear.

The ones of these that I've looked at actually use an Atmel 8051/52 style of MCU. If one wanted to get all into it you could remove the MCU and replace it with one containing your own code to change the behavior of how the capture / display worked.

Anyway ... a clever way to add a simple temporary code sequence trap to your hardware to support just the type of watchdog debug being talked about here.

To get your own check out eBay. There are multiple sellers with various models of these available. Prices vary but are reasonable.

Michael Karas



List of 55 messages in thread
TopicAuthorDate
Micro freeze            01/01/70 00:00      
   I don't understant how micro can freeze            01/01/70 00:00      
   Hang-up or lock-up?            01/01/70 00:00      
   details            01/01/70 00:00      
      You didn't answer the question            01/01/70 00:00      
      Oops, no good at all!            01/01/70 00:00      
      I think what Kai meant was /EA not EW            01/01/70 00:00      
         No, I meant the /EW pin            01/01/70 00:00      
   RST Watchdog            01/01/70 00:00      
      Add diagnostics            01/01/70 00:00      
         That's a good plan ... IF ...            01/01/70 00:00      
            Useful, but not essential            01/01/70 00:00      
               His problem, however ...            01/01/70 00:00      
                  Sorry - missing the point            01/01/70 00:00      
   more details            01/01/70 00:00      
      Don't jump to conclusions            01/01/70 00:00      
         test suggestions            01/01/70 00:00      
            Unlikely to be "random"            01/01/70 00:00      
            Assume nothing! Be very meticulous in your observations            01/01/70 00:00      
               somes evidences            01/01/70 00:00      
                  /EW not /WE!            01/01/70 00:00      
                     /EW not /WE            01/01/70 00:00      
                        that was my confusion, not yours ...            01/01/70 00:00      
                           The Watchdog does not "find" anything            01/01/70 00:00      
                              feed the dog            01/01/70 00:00      
                                 watchdog management            01/01/70 00:00      
                                 Many ideas out there . . .            01/01/70 00:00      
                              Certainly, but it responds to a missing "kick"            01/01/70 00:00      
                                 True, but            01/01/70 00:00      
                                    One simple diagnostic tool            01/01/70 00:00      
                     Oops! Begging your pardon ...            01/01/70 00:00      
   logic analyzer            01/01/70 00:00      
      Could be tricky...            01/01/70 00:00      
         someone doesn't want him to fix it            01/01/70 00:00      
            It isn't clear...            01/01/70 00:00      
         "potted" = what?            01/01/70 00:00      
            got it: "potted" = "drowned in resin"            01/01/70 00:00      
               potting SMD components            01/01/70 00:00      
   Limit Watchdog feed            01/01/70 00:00      
      I would like to write a more suitable code for this algorith            01/01/70 00:00      
         Keil example            01/01/70 00:00      
            The point is...            01/01/70 00:00      
      feed the watchdog in main loop            01/01/70 00:00      
         Non blocking loop            01/01/70 00:00      
            nothing impossible            01/01/70 00:00      
               Breaks on vacation?            01/01/70 00:00      
                  oops            01/01/70 00:00      
            Not at all!            01/01/70 00:00      
               big enought            01/01/70 00:00      
                  Both!            01/01/70 00:00      
                     re both            01/01/70 00:00      
                        You misunderstand            01/01/70 00:00      
         where to feed watchdog            01/01/70 00:00      
            You misunderstand            01/01/70 00:00      
            Watchdog kick in interrupts can often fail badly            01/01/70 00:00      

Back to Subject List