accountingfoki.blogg.se

Rpn scientific calculator using msp430
Rpn scientific calculator using msp430






  1. #Rpn scientific calculator using msp430 generator
  2. #Rpn scientific calculator using msp430 mod
  3. #Rpn scientific calculator using msp430 full
  4. #Rpn scientific calculator using msp430 code
  5. #Rpn scientific calculator using msp430 Pc

The settings page allows the accuracy to be set from 6 to 32 decimal places. After setting accuracy to 24 places arcsin(arccos(arctan(tan(cos(sin(9)))))) evaluates to this: One way to measure the accuracy of calculations is with the calculator forensic found here. I was able to speed the shifting up even more by using another lookup table that let me right shift 4 digits at a time. Instead, a lookup table is used with adds and shifts, which are much faster.

rpn scientific calculator using msp430

This is a very efficient way to compute these functions for processors that cannot multiply or divide quickly. Before processing void puts ( unsigned char *msg)The trig and log functions are computed using CORDIC routines. These are usually ignored by the compiler if they are not recognized, so they are a convenient way to communicate with the preprocessor. To mark variables as external, #pragma directives are used.

#Rpn scientific calculator using msp430 Pc

External variables are all stored as pointers, so the PC version will work exactly the same with or without the preprocessor. A simple equation like: X+=Y*Z-Q would become something like this (assuming we are passing pointers): RAM_Write(X,RAM_Read(X)+(RAM_Read(Y)*RAM_Read(Z)-RAM_Read(Q)) To simplify things, I wrote a preprocessor program that looks for any variables that need to be stored in external RAM and converts access to them to function calls. I wanted to access this memory using variables but there is no convenient way to do this since every variable requires a function to access it. Gcc -lncurses -o rpncalc rpnmain_pc.cNumbers are stored in unpacked BCD format on an external SRAM chip. You can download it from GitHub if you want to test out the functionality: rpnmain_pc.c It will compile for Windows if #WINDOWS is defined or for Linux with the ncurses library if #LINUX is defined.

#Rpn scientific calculator using msp430 code

While I was writing the code for BCD calculations, I used a console program to test the routines. The interface shows 4 levels of the stack, similar to some HP calculators.

rpn scientific calculator using msp430

#Rpn scientific calculator using msp430 mod

Functions: (a)sin, (a)cos, (a)tan, y^x, x root y, e^x, ln, 10^x, log, mod.Internal accuracy configurable from 6 to 32 decimal places.For this mode, jumpers JP1 and JP2 both need to be connected to positions 2-3 (see schematic).Ĭheck out the video of it below.This is a scientific calculator I built that uses RPN notation. In this mode, the signals /CLEAR, CLK and DATA of the 74164 chain have to be controlled externally via connector J1.

#Rpn scientific calculator using msp430 full

Thereby you have full control of the displayed LED patterns. Mode 2: All 60 LEDs can be controlled externally, for example by a microcontroller or by a PC. For this mode, jumpers JP1 and JP2 both need to be connected to positions 1-2 (see schematic). This mode uses an integrated 1 Hz timebase and loop-back mode of the shift registers. This is continuosly repeated, so the seconds are visualized by LEDs. Then every second each LED is deactivated one after another. Mode 1: Every second, each LED is activated one after another. There are 2 selectable modes via 2 jumpers: This project uses a standard analog quartz clock and adds 60 LEDs clockwise around it to display the seconds.

rpn scientific calculator using msp430

He added 60 LEDs to an analog clock which are controlled by discrete logic chips. Michael built an LED clock for the Open 7400 Logic Competition.

#Rpn scientific calculator using msp430 generator

Posted by DP OctoOctoPosted in 7400 contest Tags: 7400 competition entry Leave a comment on 7400 competition entry: Wheely bin night reminder 7400 competition entry: Heat generator

  • The Green (green waste) wheely bin goes out on a Tuesday night on alternate weeks.
  • The Red (garbage) and Yellow (recycling) wheely bins go out weekly on a Monday night.
  • So I set about designing the logic system required to remind me that: Sure, I could have set an alarm on my phone. I always forget to take the bins out on bin night. Second, I had to make something that solved a problem I faced. Because of this constraint, it is sub-optimal in many ways – requiring more parts than had I had access to the more highly integrated CMOS parts. I had more 4000-series parts than 7400-series parts, so the design is based on 4000 CMOS logic. No going to Jaycar or placing an order through Element 14 only junkbox parts allowed. Luc entered his Wheely bin night reminder into the Open 7400 Logic Competition:īecause the competition was so open ended in its brief, I placed two constraints on myself:įirst, I had to make do with the logic chips (and other components) I had on hand.








    Rpn scientific calculator using msp430