Posts

One digit Calculator project

Image
 It is a simple one digit calculator. You can add ,multiply ,subtract and divide two single digits using this calculator. Design is very simple but coding is ,as always rather complex. Proteus design and code is given below: Matarial 89c52 microcontroller LCD Display 16 by 2 A 4x4 Keypad IC 7805 Schematic: C code: #include<AT89x52.h> sbit RS=P1^0; //Register Select Pin on P1 ^0 sbit RW=P1^1 ; //Read or Write Select Pin on P1 ^1 sbit E=P1^2; //Enable Select Pin on P1 ^2 sbit BF=P2^7; //Busy Flag on MSB of Data Port sbit colm1 =P3^4; sbit colm2=P3^5; sbit colm3=P3^6; sbit colm4=P3^7; sbit row1=P3^0; sbit row2=P3^1 ; sbit row3=P3^2; sbit row4=P3^3; int a=0; int b=0; int ans=0; unsigned int tenth=0; unsigned char unit=0; unsigned char inc=0; char plus=0; char minus=0; char multiply=0; char divide; int numb1; int numb2; char c[]={'0','1','2','3','4','5','6','7','8','9','E'}; char Opr[]={'+'...