Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Pocket calculators

  1. Aug 1, 2009 #1
    hello, I'm new here so help me out please.
    question: what does a pocket calculator use to convert binary into decimal data?
    I've always been curious about this.
    a calculator is nothing but a simple computer right? therefore it's core component consists of a microprocessor which instructs and processes in binary, so what is doing all the rest?
    obviously it needs some kind of programming language like BASIC to convert the computer logic into decimals, and it needs some kind of interrupt handler for the keypad and the LCD screen. in a desktop computer this is done by the BIOS, so my question is does a calculator
    have a bios containing actual software for all this or is it hardwired into the CPU or what?
     
  2. jcsd
  3. Aug 2, 2009 #2

    MATLABdude

    User Avatar
    Science Advisor

    Welcome to PhysicsForums!

    Some calculators are just highly-integrated computers. A bit of history: modern computers were made possible by the calculator boom of the 70s. It paved the way for the general microprocessor, and ramped up their frequencies. When this collapsed (how many calculators do scientific / engineering types need?) the processors (and some of the other associated ICs) were well-positioned to enable personal computers (not just 'the' PC) to come into being.

    In any case, when you take apart your low-end calculators (the ones that only have a single-line display and 5 or 6 buttons in addition to the numeric pad) you'll find an epoxy blob and not much else. That blob probably contains a little sliver of silicon with the display driver, keypad interpreter, and a little bit of logic which can perform the basic math functions on the numbers you punch in, and not much more (why bother wasting space / money / time on any more?) The conversion from binary to decimal isn't particularly difficult, and is probably hardcoded into that little sliver.

    Your more expensive scientific computer probably contains something closer to a microprocessor, along with a ROM (Read Only Memory) containing the program necessary for the calculator to carry out its operations. Yes, there's probably a routine which takes care of the decimal-binary conversion.

    Your high-end graphing calculators frequently use an off-the-shelf microprocessor (fun fact: the TI-89 uses a slightly updated version of the 68000 used in the original Macintosh), have RAM, and can accept user programs, or firmware updating. The firmware will have some routine or other to convert the binary data to decimal (or hexadecimal, or whatever) for display purposes.

    The BIOS in your computer doesn't do much aside from initializing your system (and, well, having a program that allows you to change a bunch of these parameters). I believe interrupts are usually handled by the CPU itself (interrupt is signaled on the system bus, fusing determines whether or not this is valid, CPU sets aside what it's doing to address the interrupt, CPU resumes what it does after the interrupt).

    In the above discussion, the CPU is often treated as if it were some stand-alone unit. Some microprocessors also have on-board flash memory, which allows you to reduce your count by one or two ICs (you don't need an external IC to store your programs / firmware on). However, there usually isn't very much of this (it makes your chips more complicated and bigger, which makes it more susceptible to manufacturing defects and more expensive).
     
  4. Aug 5, 2009 #3
    ok, so basically it depends on how expensive the calculator is, a cheap calc like you get from someone in a gift basket is just a couple of logic gates but a scientific calc actually has the basics of a computer right?
    thanks for the reply btw:
     
  5. Aug 5, 2009 #4

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    A simple calculator still has a CPU, it's just integrated onto the same chip as the keypad and screen interfaces. The software is probably also burned into a ROM on the same chip so it can't be changed.
    But fundemantaly it has the same components as a computer except possibly lacking any memory.
    The first CPUs (Intel 4004) were built to be used in calculators to replace previous operations based on just gates.

    As MATLABdude said, at the higher end there is really no difference between a calculator and a computer.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Pocket calculators
  1. Calculation in c++ (Replies: 3)

Loading...