Post Reply 
8051 RPN calculator
01-04-2017, 09:04 AM
Post: #1
8051 RPN calculator
Hi,

I was asked to make a project I am working on known in this forum. I am developing an open-source RPN calculator using the 8051 8-bit microcontroller:

https://www.youtube.com/watch?v=p7MBGPf2i6E

I have just finished writing assembly code for a four function integer calculator with 4 stack levels, drop, swap and three error messages, "Overflow" (for results greater than 9,999,999,999), "Underflow" (for results less than -9,999,999,999) and "Divide by 0".

I am using a 4x4 keypad and two shift buttons and a graphical LCD. The code is about 3.8 kB. The Silabs C8051F120 microcontroller I am using has 128 kB Flash, and I hope to place the circuit diagram and code on my site soon.

All going well, I will next write code for a calculator that handles decimals, probably 10-digit mantissa and 2-digit exponent.

I am using a Silabs development board to program the chip. A major challenge for me is building a PCB and JTAG interface for the fine-pitch microcontroller to move beyond the breadboard to a handheld device.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
8051 RPN calculator - Dan - 01-04-2017 09:04 AM
RE: 8051 RPN calculator - compsystems - 01-04-2017, 05:40 PM
RE: 8051 RPN calculator - compsystems - 01-06-2017, 06:34 PM
RE: 8051 RPN calculator - Dan - 01-11-2017, 07:38 AM
RE: 8051 RPN calculator - compsystems - 01-15-2017, 03:34 PM
RE: 8051 RPN calculator - Sylvain Cote - 01-15-2017, 07:49 PM
RE: 8051 RPN calculator - Dan - 03-11-2017, 12:33 AM



User(s) browsing this thread: 1 Guest(s)