Hardware Construction First, we will look briefly at some traditional techniques suitable for building one-off boards and prototypes, using the dice circuit in Figure 10.1. Then a slightly more elaborate general purpose demonstration board will be designed and laid out in prototype form, and some programs provided to demonstrate its features and the related programming […]
Continue reading…
Posts by Farahat
Hardware Prototyping:Program DICE1
Program DICE1 This program will generate a random number at the display between 1 and 6 when the input button in pressed. A continuous loop will increment a register from 1 to 6, and back to 1. The loop is stopped when the button is pressed and the number displayed. The display is retained when […]
Continue reading…
Hardware Prototyping:Hardware Design
Hardware Design Before computer-based electronic computer-aided design (ECAD) was widely available, circuits would be designed as sketches on paper and a layout produced manually. In the absence of fast and powerful computer simulation methods such as SPICE, this process relied more heavily on the experience of the design engineer to be able to predict the […]
Continue reading…
Application Design:Software Design
Software Design We can now start work on the software using a flowchart to outline the program. A few simple rules will be used to help devise a working assembly code program; these have been discussed in more detail in Chapter 2. A program consists of a sequence of instructions that are executed in the […]
Continue reading…
Program Debugging:Interactive Debugging
Interactive Debugging Interactive simulation of microcontroller circuits provides a powerful extra dimension in application design and debugging. Proteus VSM offers a complete design package, with schematic editing and capture, using a library of components which provides a graphical symbol for the schematic, a mathematical model for circuit analysis and component pin-out for use in the […]
Continue reading…
Application Design:Software Design
Software Design We can now start work on the software using a flowchart to outline the program. A few simple rules will be used to help devise a working assembly code program; these have been discussed in more detail in Chapter 2. A program consists of a sequence of instructions that are executed in the […]
Continue reading…
Program Debugging:VSM Debugging
VSM Debugging When the circuit is complete, and the MCU program attached, the simulation can be run. The logic levels on each connection are displayed as blue (low) and red (high). Clicking on the Run button in the schematic should make the motor appear to turn. The Up button should make it speed up and […]
Continue reading…
Program Debugging:Hardware Testing
Hardware Testing Hardware construction will be covered in more detail in Chapter 10. For the moment, we will assume that suitable hardware has been constructed for MOT1 and we are ready to test it. When the program has been fully debugged in a simulator, it can be downloaded to the chip. In some cases, the […]
Continue reading…
Application Design:Program Implementation
Program Implementation When the program logic has been worked out using flowcharts, or otherwise, the source code can be entered using a text editor. Normally, the program editor is part of an integrated development package such as MPLAB. Most programming languages are now supplied as part of an integrated edit and debug package. Assembler source […]
Continue reading…
Program Debugging:Limitations of Software Simulation
Limitations of Software Simulation The simulator allows the program logic to be tested before running the program in the actual hardware, to ensure that it is functionally correct. However, the simulation is cannot be 100% realistic, and its limitations need to be taken into account in testing the real system. The following is given as […]
Continue reading…