Skip to content

📟 A 2-operand standard calculator built with C for ATmega16.

License

Notifications You must be signed in to change notification settings

PeymanRM/Simple-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator

A 2-operand standard calculator built with C for ATmega16.

Key Features • Flowchart • How To Use • Notes • Prerequisites • License

screenshot

Key Features

  • Basic Arithmetic Operations
    • Addition (+), Subtraction (-), Multiplication (×), and Division (÷).
    • Percentage (%)
    • Square Root (√)
    • Power (^)
  • Chained Calculations
    • No need for pressing "=" to do another calculation with the result of last one.
  • Floating Point Support
    • Handles both integer and floating-point numbers for more precise calculations.
    • Supports up to 3 decimals.
  • Automatic Refill
    • If not taken an operand, suggests operands from previous calculations instead.
  • Proteus Simulation

Flowchart

flowchart

How To Use

  1. Clone the Repository: To clone and run this application, you'll need Git installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/PeymanRM/Simple-Calculator.git
  1. Open the Proteus Simulation: Navigate to the circuit folder and open the provided Proteus simulation file (calculator.pdsprj).
  2. Chose program file: Double-click on U1 and choose the program file: ./Code/Debug/Exe/ATmega16_Calculator.hex
  3. Start the simulation

Notes

Note 1: Power operation (^) is actually (+/-) button.

Note 2: Memory operations on keypad are not implemented.

Prerequisites

  • CodeVisionAVR 3.14
  • Proteus 8

License

MIT


LinkedIn @PeymanRM  ·  GitHub @PeymanRM  ·  X @Peyman_RM

About

📟 A 2-operand standard calculator built with C for ATmega16.

Topics

Resources

License

Stars

Watchers

Forks