CALC                                                                                      APPLICATION FILE PAGE




Created using



CALC is a simple calculator which reads in single digits and produces two digit results.


The keypad is scanned by row and column, and the ASCII code for the key which has been pressed is returned. This is converted to a BCD number (subtract 30h) and the selected calculation performed.


The two digit BCD result (max 9x9=81) is processed for display as two digits (divide by 10 for high digit).


Divide results are displayed as integer result and remainder to avoid decimal point processing.


The LCD driver is included as a separate file derived from the routine developed in the LCD demo application.


Proteus VSM Design File

ISIS Schematic Capture


Program Source Code

Source code editor in ISIS


Program List File

Assembler MPASM in Proteus VSM


Program Machine Code

Assembler MPASM in Proteus VSM