Page 181 - ARM Based Microcontroller Projects Using MBED
P. 181

8.10  PROJECT 7—CALCULATOR                      167



































            FIG. 8.27  Enabling local echo on Putty.



                                 8.10 PROJECT 7—CALCULATOR

            8.10.1 Description
              This is a simple calculator program that can perform the basic operations of addi-
            tion, subtraction, multiplication, and division. The user enters two numbers and the
            required operation. The result is displayed on the PC screen. The process is repeated
            after 5s delay.


            8.10.2 Aim

              The aim of this project is to show how the various serial communication functions and con-
            trol codes can be used in a program.


            8.10.3 The PDL

              The PDL of the program is very simple and is given in Fig. 8.28.
   176   177   178   179   180   181   182   183   184   185   186