HP-16C

{{short description|Programmable calculator produce by Hewlett-Packard}}

{{Use dmy dates|date=April 2019|cs1-dates=y}}

{{Infobox Calculator

| name = HP-16C

| image = Hewlett-Packard Model HP-16C Programmable RPN Calculator, HP's First and Only Calculator esp. for Programmers, built 1982-1989 (edited to rectangular, V2).jpg

| caption = HP-16C, showing its model name on the display as a hexadecimal number

| type = Programmable, computer science

| entry = RPN

| introduced = 1982

| discontinued = 1989

| cost = 150 USD (1982) – 120 USD (1989){{cite web |url=http://www.thimet.de/CalcCollection/Calculators/HP-16C/Contents.htm |title=Hewlett Packard HP-16C |author-first=Tony |author-last=Thimet |access-date=2013-07-16}}

| manufacturer = Hewlett-Packard

| precision =

| display_type = LCD seven-segment display

| display_size = 10 digits

| prog_lang = Keystroke programming (fully merged)

| processor = HP Nut

| memory_data = 203 bytes (shared with programs){{cite web |url=http://www.hpmuseum.org/hp16.htm |title=HP-16C |publisher=Museum of HP Calculators |access-date=2013-07-16}}

| memory_step = up to 203 steps (shared with data registers)

| supply = 3× LR44 1.5 V button cells

| power = 0.25 mW

| weight = 113 g

| dimensions = 128 × 79 × 15 mm

}}

The HP-16C Computer Scientist is a programmable pocket calculator that was produced by Hewlett-Packard between 1982 and 1989. It was specifically designed for use by computer programmers, to assist in debugging. It is a member of the HP Voyager series of programmable calculators. It was the only programmer's calculator ever produced by HP, though many later HP calculators have incorporated most of the 16C's functions.

Features

The 16C can display integers in hexadecimal, decimal, octal and binary, and convert numbers from one number base to another. It also deals with floating-point decimal numbers. To accommodate long integers, the display can be 'windowed' by shifting it left and right. For consistency with the computer the programmer is working with, the word size can be set to different values from 1 to 64 bits. Binary-arithmetic operations can be performed as unsigned, ones' complement, or two's complement operations. This allows the calculator to emulate the programmer's computer. A number of specialized functions are provided to assist the programmer, including left- and right-shifting, left- and right-rotating, masking, and bitwise logical operations.

Apart from programmer functions, the calculator's abilities are limited to basic arithmetic (and reciprocal and square root),{{cite web |url=http://www.rskey.org/CMS/index.php/7?manufacturer=Hewlett-Packard&model=HP-16C |title=Hewlett-Packard HP-16C |author-first=Viktor |author-last=Toth |access-date=2013-07-16}} which meant that typical users would also make use of a general scientific calculator. Floating-point numbers are only supported for base 10. However, it is still far more powerful (though also much more expensive) than contemporary competitors such as the non-programmable computer math calculator Casio CM-100https://edspi31415.blogspot.de/2017/02/retro-review-casio-cm-100-computer-math.html{{Cite web |url=http://casio.ledudu.com/pockets.asp?type=1300&lg=eng%3C!--+https://web.archive.org/web/20170313215546/http://casio.ledudu.com/pockets.asp?type=1300&lg=eng+--%3E|title=Casio CM-100 - Calculatrice LCD - Casio CM100 - Casio.ledudu.com - bibliothèque des ordinateurs et des calculatrices Casio de ledudu. - RETRO CALCULATOR FX PB SF LC SL |website=casio.ledudu.com}} or the TI {{ill|TI Programmer{{!}}Programmer|de|TI Programmer}},{{Cite web|url=http://www.datamath.org/Sci/MAJESTIC/Programmer.htm|title=DATAMATH|website=www.datamath.org}}{{cite book |title=electronic calculator - TI programmer |publisher=Texas Instruments Incorporated |date=1977 |url=http://www.datamath.net/Manuals/TI-Programmer_US.pdf |access-date=2017-03-28 |url-status=live |archive-url=https://web.archive.org/web/20170328231050/http://www.datamath.net/Manuals/TI-Programmer_US.pdf |archive-date=2017-03-28}} LCD Programmer{{cite web |url=http://www.thimet.de/CalcCollection/Calculators/TI-Programmer/Contents.htm |title=Texas Instruments LCD Programmer |author-first=Tony |author-last=Thimet |access-date=2013-07-16}}{{Cite web |url=http://www.datamath.org/Sci/Slanted/LCD-Programmer.htm |title=DATAMATH |website=www.datamath.org}}{{cite book |title=electronic calculator - TI LCD programmer |publisher=Texas Instruments Incorporated |date=1981 |url=http://www.datamath.net/Manuals/LCD-Programmer_US.pdf |access-date=2017-03-28 |url-status=live |archive-url=https://web.archive.org/web/20170328231558/http://www.datamath.net/Manuals/LCD-Programmer_US.pdf |archive-date=2017-03-28}} or Programmer II.{{Cite web |url=http://www.datamath.org/Sci/Slanted/Programmer-II.htm |title=DATAMATH |website=www.datamath.org}}

The back of the 16C features a printed reference chart for many of its functions.{{cite web |url=http://mycalcdb.free.fr/main.php?l=0&id=816 |title=Hewlett-Packard 16C aka Voyager PR |publisher=MyCalcDB |access-date=2013-07-16}}

The calculator uses the proprietary HP Nut processor produced in a bulk CMOS process and featured continuous memory, whereby the contents of memory are preserved while the calculator is turned off.{{cite web |url=http://www.hp41.net/forum/fileshp41net/hp16c.pdf |title=HP-16C Owner's Handbook |publisher=Hewlett-Packard |access-date=2013-07-16 |archive-date=2017-03-28 |archive-url=https://web.archive.org/web/20170328204119/http://www.hp41.net/forum/fileshp41net/hp16c.pdf |url-status=dead }} Though commonplace now, this was still notable in the early 1980s, and is the origin of the "C" in the model name.

Programming

The 16C, like all other members of the Voyager series, is itself programmable. Keystroke programming is used. Up to 203 program steps are available, and up to 16 program/step labels. Each step and label uses one byte, which consumes register space in 7 byte increments.

Here is a sample program that computes the factorial of an integer number from 2 to 69. The program takes up 9 bytes. The codes displayed while entering the program generally correspond to the keypad row/column coordinates of the keys pressed.

class=wikitable

! Step

! Keystrokes
(shift keys not shown)

! Displayed code

! Comment

001

| {{keypress|LBL}} {{keypress|F}}

| 43,22, F

| Define label F (mnemonic for "factorial")

002

| {{keypress|x<>I}}

| 42 22

| Store x in register I

003

| {{keypress|1}}

| 1

| Store 1 in x

004

| {{keypress|LBL}} {{keypress|0}}

| 43,22, 0

| Define label 0

005

| {{keypress|RCL}} {{keypress|I}}

| 45 32

| Recall register I into x

006

| {{keypress|×}}

| 20

| Multiply x and y

007

| {{keypress|DSZ}}

| 43 23

| Decrement register I and if not zero ...

008

| {{keypress|GTO}} {{keypress|0}}

| 22 0

| ... go back to label 0

009

| {{keypress|RTN}}

| 43 21

| Stop program - result displayed in x

To run the program, enter the argument onto the stack, then press the keystrokes {{keypress|GSB}} {{keypress|F}}. The result is displayed when the program terminates.

{{anchor|DM16CC|DM16|DM16 Silver Edition|DM16L}}Legacy

HP has never made another calculator specifically for programmers, but has incorporated many of the HP-16C's functions in later scientific and graphing calculators, for example the HP-42S (1988) and its successors.

Like many other vintage HP calculators, the HP-16C is now highly sought-after by collectors.{{cite web |author-last=Albillo |author-first=Valentín |title=Long Live the HP-16C! |url=http://membres.multimania.fr/albillo/calc/pdf/DatafileVA015.pdf |url-status=dead |archive-url=https://web.archive.org/web/20110906135221/http://membres.multimania.fr/albillo/calc/pdf/DatafileVA015.pdf |archive-date=2011-09-06 |access-date=2013-07-16}}

In July 2023, the HP Development Company, L.P.'s licensees Moravia Consulting spol. s r.o. and Royal Consumer Information Products, Inc. introduced the HP-15C Collector's Edition, which comes with an undocumented mode to emulate the HP-16C as well. The original firmware still had a bug where numbers whose hexadecimal representation ends in E or F are displayed incorrectly in decimal mode, which was fixed by a community effort in October 2023.

Several emulators, including official by HP, are available for desktop computers, web browsers, smartphones and other calculators.{{Cite web |title=Hewlett-Packard ships official HP 15c app for Android | Hacker News |url=https://news.ycombinator.com/item?id=8593609}}{{Cite web |title=HP reincarnates calculators on iPhone, Windows |url=http://www.cnet.com/news/hp-reincarnates-calculators-on-iphone-windows}}

There are many calculators simulating software, imitating various HP calculators.{{Cite web |title=HP Calculator Simulations |url=https://www.hpmuseum.org/simulate/simulate.htm |access-date=2024-09-06 |website=www.hpmuseum.org}} The WRPN Calculator, a public domain open-source HP-16C simulator, is one of the oldest yet active software project of the such type.{{Cite web |title=WRPN 16-bit 1.0 - detailed information |url=https://www.hpcalc.org/details/3698 |access-date=2024-09-07 |website=www.hpcalc.org}}{{Cite web |title=HP-related Programs for the PC |url=https://www.hpcalc.org/other/pc/ |access-date=2024-09-07 |website=www.hpcalc.org}}

See also

  • {{section link|List of Hewlett-Packard products|Pocket calculators}}
  • HP calculators

References

{{Reflist}}

Further reading

  • {{cite book |title=Hewlett-Packard HP-16C Computer Scientist Owner's Handbook |publisher=Hewlett-Packard Company |date=April 1982 |id=00016-90001 |url=http://www.hp41.net/forum/fileshp41net/hp16c.pdf |access-date=2017-03-28 |url-status=live |archive-url=https://web.archive.org/web/20170328204119/http://www.hp41.net/forum/fileshp41net/hp16c.pdf |archive-date=2017-03-28}}
  • {{cite journal |title=A Pocket Calculator for Computer Science Professionals - This compact, yet powerful pocket calculator is designed for technical professionals working in computer science and digital electronics. Boolean operations and bit manipulation are some of its capabilities. |author-first=Eric A. |author-last=Evett |journal=Hewlett-Packard Journal |date=May 1983 |volume=34 |number=5 |publisher=Hewlett-Packard Company |issn=0018-1153 |publication-place=Palo Alto, California, USA |pages=36–40 |url=https://www.hpl.hp.com/hpjournal/pdfs/IssuePDFs/1983-05.pdf |access-date=2023-09-21 |url-status=live |archive-url=https://web.archive.org/web/20230921192321/https://www.hpl.hp.com/hpjournal/pdfs/IssuePDFs/1983-05.pdf |archive-date=2023-09-21}} (5 pages)

{{HP calculators}}

16C