- HP-48 series
The HP-48 is a series of
graphing calculator s usingReverse Polish notation (RPN) and the RPL programming language, produced byHewlett-Packard (HP) from1990 until2003 . The series include the HP-48S, HP-48SX, HP-48G, HP-48GX, and HP-48G+, the G models being expanded and improved versions of the S models. The models with an X suffix are expandable via special RAM (memory expansion) and ROM (software application) cards. In particular, the GX models have more onboard memory than the G models. The G+ models have more onboard memory only. The SX and S models have the same amount of onboard memory.Note that the similarly named
HP-48GII (2004) is not really a member of the series, but rather much more closely related to theHP-49G and HP-49G+.The hardware architecture developed for the HP-48 series became the basis for the
HP-38G , with a simplified user interface and an infix input method, and theHP-49G with various software enhancements. Likewise, the hardware and software design of the HP-48 calculators are themselves strongly influenced by other calculators in the HP line, most of all by the HP-18 andHP-28 series.pecifications
The HP-48 series' Saturn
microprocessor is an8-bit CPU hardware-wise but acts like a4-bit processor in that it presentsnibble -based data to programs and uses a nibble-based addressing system. External logical data fetches are transparently converted to 8-bit physical fetches. The processor has a 20-bitaddress bus available to code but due to the presence of the high/low nibble selection bit, only 19 bits are available externally.In both the HP-48S/SX and G/GX series, the "Saturn" CPU core is integrated as part of a more complex
integrated circuit (IC) package. These packages have codenames inspired by the members of theLewis and Clark Expedition . The codename of the IC is "Clarke" in the S/SX, after William Clark, and "Yorke" in the G/GX, after Clark'smanservant . The previous series of Saturn-based ICs were codenamed "Lewis", afterMeriwether Lewis .Common for all models
* CPU architecture: Saturn
* Screen resolution: 131×64pixel s
* Communication Ports: 4-pinRS-232 (Serial port ) orInfrared port (notIrDA )
* Data bus width:8-bit (external)
* Maximum4-bit -cell address width: 20 bits (leading to the address space shown next)
* Logicaladdress space : 512 kB
* Maximum register size: 64bit (both working and scratch registers)
* Available expansion card ports on X models: 2
* Expansion card pins: 40HP-48S/SX specific
* CPU clock frequency: 2 MHz
* Memory clock frequency: 2 MHz
* CPU codename: Clarke
* Communication Protocol(s): Serial Transfers:Kermit (protocol) ; Infrared Transfers: proprietary
* On-board ROM: 256KB
* On-board RAM: 32 KB
* Maximum additional memory per expansion card: 128 KB (SX only)
* ROM versions: A, B, C, D, E, JHP-48G/GX specific
* CPU clock frequency: 3.7 to 4 MHz
** Some claim that the frequency varies according to temperature [http://www.hpcalc.org/hp48/docs/hpedia/]
** According to one of the engineers on the design team of the HP48G series (Dave Arnett), the yields for 4MHz CPUs were essentially separated into two parts: the ones closest to spec, generally near 3.93-3.94Mhz, were reserved for the expandable models (GX), and those just slightly under spec were used for the non-expandable units (G). Eventually the yields improved and the CPUs which clocked closer to 4MHz were installed in the non-expandable units as well. The effects of (non-extreme) temperatures are almost negligible. Fact|date=May 2008
* Memory clock frequency: 2 MHz
* CPU codename: Yorke
* Communication Protocol(s): Serial Transfers:Kermit (protocol) orXmodem ; Infrared Transfers: proprietary
* On-board ROM: 512 kB
* On-board RAM: 32 kB (G) or 128 kB (G+/GX)
* Maximum additional memory for expansion card port 1: 128 kB
* Maximum additional memory for expansion card port 2: 4 MB (128 kB addressable at any given time viabank switching )
* Other communication protocols:XModem
* ROM versions: K, L, M, P, RProgramming
The HP-48 series of calculators support a stack-based programming language named Reverse Polish Lisp (RPL), a combination of Reverse Polish Notation (RPN) and Lisp. RPL adds the concepts of lists and functions to stack-based programming, allowing the programmer to pass unevaluated code as arguments to functions, or return unevaluated code from a function by leaving it on the stack. In spite of the name, RPL resembles Forth more closely than Lisp.
RPL comes in two flavors: User RPL and System RPL. User RPL is the language that a user can program directly on the calculator. System RPL requires an external compiler; this may be done on the calculator with a third-party utility, or on another machine. The two languages vary mainly in the number of low-level operations available to them. User RPL does not expose any commands which do not check their arguments. Consequently, User RPL programs cannot normally crash the calculator (therefore are slower than System RPL programs), whereas a System RPL program which invokes a command with incorrect arguments will almost certainly leave the calculator in a state which requires a full memory reset (occasionally referred to as a three-finger salute, since it requires pressing the ON, the A, and the F keys on the calculator at the same time).
It is also possible to program the HP48 directly in Machine Language code. Books are available on this subject, some of them are freely available on the web (see external links).
Programmers working in System RPL or machine language most commonly work on an HP48 emulator, since it is much quicker and easier to restore the state of a crashed emulator than to do the same with the calculator itself.
References
*
*
* Mastracci, M. (1998) cite web | title="Guide to the Saturn Processor" | work=(with HP48 applications) | url=http://www.grack.com/downloads/hp48/saturnguide/saturn.txt | accessmonthday=May 3 | accessyear=2006 (Plain text file).
*Paul Courbis and Sébastien Lalande, translated in English by Douglas R. Cannon (1993) cite web | title="HP48 Machine Language Programming" | work=(with HP48 applications) | url=http://www.courbis.fr/spip.php?article21 (PDF files).
*Paul Courbis and Sébastien Lalande (1991), French book about ML programming and more cite web | title="Voyage au centre de la HP48" | work=(with HP48 applications) | url=http://www.courbis.fr/spip.php?article20 (PDF files).
*Paul Courbis (1993), French book about ML programming and more cite web | title="Voyage au centre de la HP48g/gx" | work=(with HP48 applications) | url=http://www.courbis.fr/spip.php?article18 (PDF files).External links
* [http://www.hpmuseum.org/hp48s.htm The Museum of Hewlett-Packard Calculators: HP-48S/SX]
* [http://www.hydrix.com/wiki/pmwiki.php/Main/HomePage HP-48 Wiki]
* [http://hp.giesselink.com/emu48.htm Emu48] or [http://x48.berlios.de/ X48]
* [http://holyjoe.net/hp/HP48.htm The HP48 Goodies Page]
* [http://www.hpcalc.org The HPCALC.org web site]
* [http://www.hp48.altervista.org/ ABC HP48G]
* [http://www.faqs.org/faqs/hp/hp48-faq HP48 FAQ (including program list)]
* [http://www.area48.com/ Area48 - HP48/49 for beginners!]
Wikimedia Foundation. 2010.