Post Reply 
RPN scientific calculator firmware for $13 calculator kit
03-18-2020, 10:02 PM
Post: #41
RE: RPN scientific calculator firmware for $13 calculator kit
Could you just use a STC15F2K60S2 MCU instead of the IAP15W413AS that comes with the kit? . . . that would provide 60k of flash rather than the 13k for the standard MCU and therefore enable space for a whole raft of additional functions.
Find all posts by this user
Quote this message in a reply
03-19-2020, 02:14 AM
Post: #42
RE: RPN scientific calculator firmware for $13 calculator kit
(03-18-2020 10:02 PM)DWiskow Wrote:  Could you just use a STC15F2K60S2 MCU instead of the IAP15W413AS that comes with the kit? . . . that would provide 60k of flash rather than the 13k for the standard MCU and therefore enable space for a whole raft of additional functions.

Is the STC15F2K60S2 MCU pin-compatible with the IAP15W413AS? If so, that'd be ideal!

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
03-19-2020, 07:29 AM (This post was last modified: 03-20-2020 11:02 AM by DWiskow.)
Post: #43
RE: RPN scientific calculator firmware for $13 calculator kit
(03-19-2020 02:14 AM)toml_12953 Wrote:  Is the STC15F2K60S2 MCU pin-compatible with the IAP15W413AS? If so, that'd be ideal!

Yes, just bigger flash (60k) and RAM (2K) and for under $2 delivered
Find all posts by this user
Quote this message in a reply
03-23-2020, 05:19 AM
Post: #44
RE: RPN scientific calculator firmware for $13 calculator kit
Yes, it's a pin-compatible drop in replacement. The only disadvantage is that when programming the flash, it takes longer to erase. To program a blank microcontroller, you have to add a couple of additional options to stcgal: -l 1200 -t 12000

Just as an update, haven't made any progress on anything, but hopefully eventually...
Find all posts by this user
Quote this message in a reply
03-23-2020, 07:02 AM
Post: #45
RE: RPN scientific calculator firmware for $13 calculator kit
Some of the extra flash could be used for keystroke programs, if the base firmware is programmable. This is a very space efficient method to add functions -- the WP 34S included quite a number of functions in its XROM and allowed user libraries in flash.

Pauli
Find all posts by this user
Quote this message in a reply
03-23-2020, 09:38 AM
Post: #46
RE: RPN scientific calculator firmware for $13 calculator kit
(03-23-2020 05:19 AM)jklsadf Wrote:  Yes, it's a pin-compatible drop in replacement. The only disadvantage is that when programming the flash, it takes longer to erase. To program a blank microcontroller, you have to add a couple of additional options to stcgal: -l 1200 -t 12000

Just as an update, haven't made any progress on anything, but hopefully eventually...

Now that you have all that extra space to play with, go for it! I still have my key label template ready to modify for whatever additions you make so once you announce a new version the new labels can be ready in a few minutes.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
04-19-2022, 04:51 PM (This post was last modified: 04-21-2022 02:24 AM by toml_12953.)
Post: #47
RE: RPN scientific calculator firmware for $13 calculator kit
I have version 1.13 installed on two calculators. Neither one will display PI. When I press shift then divide, PI is supposed to be put in the X register but only 0 appears there.

SOLVED! In file decn.c, line 1594, there's a call to mult_decn. Why? PI is not a conversion factor so there's no need to do that. Now that I've commented out that line, the constant PI appears properly, including stack lift, etc.

One problem shows up when you do this:

7
Enter
PI
*

The display should show

0
21.9911485751285

but instead it shows

7
21.9911485751285

instead of replacing the 7 in the X register, pressing PI pushes the 7 up.

After Enter, there should be no stack lift of the next number typed.

FIXED:
Added check for Nolift to Calc.c. Now

7
Enter
PI
*

results in

0
21.9911485751285

as it should.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 




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