low cost 32S on ESP32-S3
|
12-25-2023, 06:15 PM
Post: #1
|
|||
|
|||
low cost 32S on ESP32-S3
To expand on capabilities of the 10LC (using the M5Stack Cardputer), I have a beta version of the 32LC.
It has the 26 registers of the 32S, but program steps are expanded. Some complex number operations, secant method solver and Simpson's integration method are included. There are a number of omissions of features in this beta version (I thought I would release this sooner rather than later, in case anyone wants to use or test it), so if there is a feature you would desperately like implemented, let me know. Binary files, firmware burning instructions and .pdf overlay are on GitHub under 32LC Beta version 0.9 notes Advantage of C implementation is speed, but not using calc. ROM means some aspects of the calculator may seem different than original. Features: - 26 registers and 1,400 program steps - 2 selectable display fonts - 3 selectable display colors - audible keyboard beep - fast - approx. 77,000 loop iterations in 10 seconds - internally has number range from approx. 1e-317 to 9.9e307 - solver using secant method - integration using Simpson’s method - complex number functions Known issues / differences from 32S: - EEX implemented slightly differently - single digit exponent processed immediately - Eng notation and All display mode not implemented yet - XEQ currently works like GTO - INPUT, SHOW, VIEW and MEM not implemented yet - COMPLEX and statistics functions are not programmable - Indirect register addressing and GTO not implemented yet - SF, CF and FS? not implemented yet - BASE menu not implemented yet - for Solver and integration, known variables must be manually entered beforehand - in programming mode, each number digit requires a single step - programming mode does not insert lines - currently does overwrite - error messages need updating Program memory organization The 1,400 program steps are organized as follows: 0-99 general 100-149 LBL A 150-199 LBL B 200-249 LBL C … 1350-1399 LBL Z If LBL A is over 50 steps, it can overlap over B, and so on. Solver example - Pythagorean formula: Since a^2 + b^2 = c^2, then a^2 + b^2 - c^2=0 A00 LBL A A01 RCL A A02 x^2 A03 RCL B A04 x^2 A05 + A06 RCL C A07 x^2 A08 - A09 R/S Exit programming mode. Solve for C: 3 STO A 4 STO B Enter 8 and 0 on the stack as initial guesses. Set FN to (LBL) A Solve for C Result is 5 Solve for A: 4 STO B 5 STO C 0 STO A Enter 8 and 0 on the stack as initial guesses. Set FN to (LBL) A Solve for A Result is 3 Solve for B: 3 STO A 5 STO C 0 STO B Enter 8 and 0 on the stack as initial guesses. Set FN to (LBL) A Solve for B Result is 4 Integration: B00 LBL B B01 RCL X B02 x^2 B03 R/S Set Fix 4 Set FN to (LBL) B Put lower limit 0 and upper limit 10 on the stack. Integrate X. Result is 333.3333 Monte Carlo program to calculate PI: C00 LBL C C01 RANDOM C02 x^2 C03 RANDOM C04 x^2 C05 + C06 SQRT C07 1 C08 x>y C09 GTO D C10 1 C11 STO+ A C12 GTO C To enter program D, use GTO . D or LBL D D00 LBL D D01 1 D02 STO+ A D03 1 D04 STO+ B D05 GTO C Do XEQ C and let it run for about 10 seconds. A stores the number of loop cycles and B stores the number of times a random point falls within quadrant 1 of a circle. Do Rcl B, then Rcl A, / (divide) and 4 x (times) to get an approximation of pi. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
low cost 32S on ESP32-S3 - arhtur - 12-25-2023 06:15 PM
RE: low cost 32S on ESP32-S3 - Pierre - 12-26-2023, 06:53 PM
RE: low cost 32S on ESP32-S3 - arhtur - 12-26-2023, 08:38 PM
RE: low cost 32S on ESP32-S3 - Pierre - 12-26-2023, 10:05 PM
RE: low cost 32S on ESP32-S3 - arhtur - 12-27-2023, 02:50 AM
RE: low cost 32S on ESP32-S3 - Pierre - 12-27-2023, 09:24 AM
RE: low cost 32S on ESP32-S3 - Pierre - 12-27-2023, 10:08 AM
RE: low cost 32S on ESP32-S3 - arhtur - 12-28-2023, 04:18 PM
RE: low cost 32S on ESP32-S3 - Pierre - 12-28-2023, 05:32 PM
RE: low cost 32S on ESP32-S3 - Pierre - 12-29-2023, 07:59 AM
RE: low cost 32S on ESP32-S3 - Pierre - 12-29-2023, 02:47 PM
RE: low cost 32S on ESP32-S3 - arhtur - 12-29-2023, 05:04 PM
RE: low cost 32S on ESP32-S3 - Pierre - 12-29-2023, 06:59 PM
RE: low cost 32S on ESP32-S3 - Pierre - 12-30-2023, 04:49 PM
|
User(s) browsing this thread: 1 Guest(s)