HP Forums
RPN scientific calculator firmware for $13 calculator kit - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: RPN scientific calculator firmware for $13 calculator kit (/thread-13771.html)

Pages: 1 2 3


RE: RPN scientific calculator firmware for $13 calculator kit - DWiskow - 03-18-2020 10:02 PM

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.


RE: RPN scientific calculator firmware for $13 calculator kit - toml_12953 - 03-19-2020 02:14 AM

(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!


RE: RPN scientific calculator firmware for $13 calculator kit - DWiskow - 03-19-2020 07:29 AM

(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


RE: RPN scientific calculator firmware for $13 calculator kit - jklsadf - 03-23-2020 05:19 AM

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...


RE: RPN scientific calculator firmware for $13 calculator kit - Paul Dale - 03-23-2020 07:02 AM

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


RE: RPN scientific calculator firmware for $13 calculator kit - toml_12953 - 03-23-2020 09:38 AM

(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.


RE: RPN scientific calculator firmware for $13 calculator kit - toml_12953 - 04-19-2022 04:51 PM

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.