CALC                                                                                      APPLICATION FILE PAGE

 

FILE

TYPE

Created using

OPERATION

 

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.

CALC.DSN

Proteus VSM Design File

ISIS Schematic Capture

CALC.ASM

Program Source Code

Source code editor in ISIS

CALC.LST

Program List File

Assembler MPASM in Proteus VSM

CALC.HEX

Program Machine Code

Assembler MPASM in Proteus VSM