
PROJECT 24 ± A Simple Calculator Program Using the
RS232 Port
Function
This is a simple calculator project based upon the 89C51 type microcontroller.
The microcontroller is connected to an RS232 serial terminal. The user can
perform simple addition, subtraction, multiplication, and division of numbers
using the microcontroller.
Circuit Diagram
This project is based upon the 89C51 microcontroller. This is a 40-pin device
which is software compatible with the 89C2051 microcontroller. The 89C51
contains a 4 Kbyte ¯ash program memory, 128 bytes of RAM, 32 program-
mable input/output lines, and six interrupt sources.
The circuit diagram of this project is