Programming Breakpoints and Testpoints

Advertise in delabs

Breakpoints may not serve the purpose fully, it may be easier to use Testpoints and incremental coding.
When we build Electronic Circuits with many Interacting Blocks or Modules, We put a small 5mm Tall Copper Pin in the PCB or a PAD without masking. This is a Test or Troubleshooting Point. This is where you can probe with a scope, dmm or logic analyzer.

Programming Breakpoints and Testpoints

In embedded program development, i tried a similar way, a Testpoint in software, but only that the card would light a led in a certain pattern or send a “all ok” and progress status to the serial port connected to PC.
In Script programming we can use a GUI element, just a Textbox as a Scope monitoring the Testpoint. When the program goes beyond the Testpoint, The GUI Text window will hold the Status. Just like you move the probes of the same DMM, you can keep shifting the Testpoints or Multiplex the same Scope, as the program becomes bigger.

So, before you build the Next big Program, Build the Test Equipment and the First Testpoint. The first few lines of code is written around the First Test point. Like it is done in PCBs, incremental Building-Testing.
Lastly Break Big Jobs to Small Pieces. Like the Plugin Modules in a Oscilloscope, The Components or Modules should be built and tested independently and then Combined to Form one Big System. Then they can be maintained and reused easily.

Dec-07 from 2003 delabs notes

  • Embedded MicrocontrollerEmbedded Microcontroller
    An Embedded Microcontroller or DSP system is made of Chips, Circuits and Firmware. The digital voltage levels, speed, bus width, fan out, power consumption are [...]
  • Production Notes – Prototype Fabrication – 03
    Prototype Fabrication Sometimes a component can be defective, may not be what it is labeled or may be of a wrong value. In manufacturing 100% [...]
  • Karnaugh Map Minimizer – Refactoring Code
    A tool for developers of small digital devices and radio amateurs, for those who is familiar with Boolean algebra and Karnaugh Map optimization method, best [...]
  • Evolution of The SmartWatchEvolution of The SmartWatch
    This post was made in relation to the TI Chronos and Casio watches, The early Smartwatches. Some parts of this post removed, but this was [...]
  • EMerge Alliance – Safe Low-voltage Power
    “The EMerge Alliance was established to promote the rapid adoption of safe, low-voltage DC power distribution and use in commercial building interiors.” EMerge Alliance – [...]
  • STR910 ARM Evaluation Board – ST
    STR910 ARM Evaluation Board – ST A versatile system which can be used both for consumer and industrial product design. It has most of the [...]
  • Programmable Logic Controller – PLC System
    TheLearningPit – PLC Simulators and Resources for Training. PSIM …. The Original PLC Simulator / Emulator – Proffessor Bill’s Free PLC Simulator! – Allen Bradley [...]
  • Capacitor Temperature Monitor
    When placing sensors in high pressure or vacuum chamber, they should be terminated by an epoxy sealed terminal block interface on the system. 4 wire [...]
About delabs 419 Articles
delabs is a web-service for product design and development.