A kind of a E12/24/48 or custom resistance ratio calculator for any RPL enabled HP calculator (HP48-50).
Imagine one of the trillions of most simple but common and time-wasting "problems":
Your D/A converter should output a 0-40V signal with a 10bit A/D converter. The output voltage of your D/A converter for 1000digits, assuming it is powered by 3.3V, is:
Uda = (3.3V/1024)*1000 = ~3.223V
Obviously your hardware needs to have a amplification factor of:
V = 40V/3.223 = ~12.41
For other reasons, you decide to use an OP in non-inverting operation, which gives an resistor ratio of:
Rg/R = 12.41-1 = 11.41
Here's where E248 comes in... After a while, E248 puts out:
I guess there are much smarter algorithms around but unfortunately I did not find anything comparable. Nevertheless, I like it ;) Operation
This became my standard testing-application for every single of my (~100) programmable calculators. While having a little fun with a Casio-PB2000 during holidays, I also redesigned the RPN version towards speed...
There exist 2 different versions of E248, these are the names of them in the ".hp" file: "AA1" is much faster than "AAA" but still not completely tested. Sometimes not the best, but pretty close, ratios come out... The source files "BBB" and "BB1" provide the RPL content as a string "RPL" for easier editing with emacs or whatever editor you prefer. Use:
STR->
(or ->STR for the inverse operation) (or the OBJ-> notation) to convert the string-source to an RPL application. Download
E248
Here is the complete ".hp" package, including source, RPLs and E12-99 tables
|