solibingo.blogg.se

Rpn scientific calculator using msp430
Rpn scientific calculator using msp430









rpn scientific calculator using msp430
  1. RPN SCIENTIFIC CALCULATOR USING MSP430 32 BIT
  2. RPN SCIENTIFIC CALCULATOR USING MSP430 FULL
  3. RPN SCIENTIFIC CALCULATOR USING MSP430 PRO
  4. RPN SCIENTIFIC CALCULATOR USING MSP430 SERIES
  5. RPN SCIENTIFIC CALCULATOR USING MSP430 SIMULATOR

It shouldn’t be hard to move code like this to run on the Arduino Pro Mini, and drive 3 bubble displays (yielding 11 digits plus a sign bit) of precision.

rpn scientific calculator using msp430

I’ll have to play around with this some more. Typedef uint32_t bcd8 /* 8 digits packed bcd */ * Written with the idea of potentially doing a simple calculator that * A simple implementation of the ideas/algorithms in it seems to work.Īnd since I haven’t been posting stuff to my blog lately, this is an attempt to get back to it. I’m not sure I really know the proper way to handle overflow and the sign bits (my multiplication currently multiplies two 8 digit numbers, and only returns the low 8 digits of the result). Multiplication was simple enough to do (at least in this slightly crazy “repeated addition” way) but I’ll have to work a bit harder to make division work. His page didn’t include multiplication or division.

RPN SCIENTIFIC CALCULATOR USING MSP430 32 BIT

I thought I’d code up a simple set of routines that stored 8 BCD digits in a standard 32 bit integer. He pointed out some cool tricks and wrinkles associated with various bits of padding and the like. Luckily, I stumbled onto Douglas Jones’ page on implementing BCD arithmetic, which is just what the doctor ordered. I understood the basic ideas, but I needed some refresher, and was wondering what kind of bit twiddling hacks could be used to implement the basic operations. My last real experience with it was on the 6502 decades ago, and I had never done anything very sophisticated with it. Pretty cool.įor fun, I thought it might be fun to write some routines to do binary coded decimal arithmetic. It’s pretty nifty, and uses a coin cell to drive it, as well as some very classic looking “bubble LED displays”, which you can get from Sparkfun. Of course, a bit more googling revealed that someone had done something very similar using the MSP430 chips from (appropriately enough, also manufactured by Texas Instruments). My mind is obviously skipping around a lot at this point. Could I make a fun little calculator using that as the basis? Arduino Pro Minis can be had for less than $3 from China. It’s brains are just an ordinary Arduino Pro Mini wired on the back. In fact, the KIM-Uno implements a floating point calculator as well. But I thought to myself “isn’t a calculator an easy hobby project now?”Īfter all, I had assembled a KIM-Uno, Oscar’s awesome little $10 board that emulates the KIM-1 microcomputer: Mind you, the HP-35 was pretty revolutionary for its time. One thing on Ken’s page kind of made me think: he mentioned that the HP-35 had taken two years, twenty engineers, and a million dollars to develop.

rpn scientific calculator using msp430

I’ll get that working sometime soon.Īnyway, back to calculators. Everything is currently working except for the classic “thump… thump…” of their marching. For now, it just queues up some recorded sounds and plays them at the appropriate time.

RPN SCIENTIFIC CALCULATOR USING MSP430 SIMULATOR

I briefly played around with simulating some of the sounds using LTSpice based upon these circuits (it appears to work fairly well), but I haven’t got that fully integrated into my simulator yet.

RPN SCIENTIFIC CALCULATOR USING MSP430 SERIES

The sound is a little crude: most of the sound in the original game was generated by a series of discrete circuits which you can find on this page archived via the Wayback Machine. It wasn’t hard to find a ROM file for it, and with a little bit of hacking, research and debugging, I had my own version of Space Invaders written in C and using SDL2, running on my Mac laptop.įun stuff. I had originally wanted to implement a version of CP/M, but I remembered that the 1978 game Space Invaders was also based upon the 8080. I recently had dusted off my code that I had started for emulating the 8080 processor. It got me thinking about the bizarre little chip that was at the center of this device. The page’s author, Ken Shirriff, wrote a nifty little simulator for the calculator that runs in the browser.

RPN SCIENTIFIC CALCULATOR USING MSP430 FULL

It is an awesome hack that was used to create a full scientific calculator with logarithms and trigonometric functions out of an inexpensive chip from TI which could (only barely) do add, subtract, multiply and divide. It documented an interesting calculator made by Sinclair in the 1970s. Reversing Sinclair’s amazing 1974 calculator hack – half the ROM of the HP-35 A couple days ago, one of my Twitter or Facebook friends (sadly, I forgot who, comment if it was you, and I’ll give you credit) pointed out this awesome page:











Rpn scientific calculator using msp430