Re: Emulating ADDWFC on 16F PIC uCONTROLLER

From: Anthony Marchini (a.marchini_at_mericonlokorDot.net)
Date: 12/21/04


Date: Tue, 21 Dec 2004 17:02:10 -0500


>...
> However, Microchip didn't *have* to add another instruction - my
> disbelief was that the add without carry instruction took preference
> over an add with carry instruction. A straight swap leaves the exact
> same number of instructions - 35 I think. So the limiting the number
> of instructions doesn't cut it as an explanation in my eyes.
> ...
> Regards
>
> Dave Giblin
> Lancashire
> England

Its not a simple decision of just eliminating the instruction. There was
simplicity in not lining up the register with a carry in to the ALU data
path of the chip.

The idea is that this processor is supposed to be doing tremendously
simple operations, not high level math, so if you needed the carry you
can implement it.

Now the 18F versions are designed to do "some Math" so they can do DSP
applications. A full ALU data path complete with a carry in from the
status register makes more sense for these devices.

I think the original "plan" for the pic was a design from 1980 or
something like that. Some teachers kicking around a simple processor
model and then microchip taking off with the 16C54 and the rest is history.
I remember seeing a similar datapath mini micro in a textbook from a
while back. It always reminded me of the PIC.
My details are probably way off...I am loosing my mind faster than most
of my age.
Tony



Relevant Pages

  • Re: TI MSP430
    ... 16 bits is not quite enough to make a good instruction ... at least not with 16 registers. ... By comparison, the PDP-11 ... shows a carefully crafted and balanced design at each and every turn. ...
    (comp.arch.embedded)
  • =?iso-8859-1?Q?Re:_z/Architecture_design_errors?=
    ... The mainframe is very different from the PC in this regard. ... the instruction is aborted and retried. ... The program is protected from most hardware failures. ... Subject: z/Architecture design errors ...
    (bit.listserv.ibm-main)
  • Re: DSP engineer position opening in Vienna / Austria
    ... Might not be the filter you would design. ... How do I keep my filter from ever overflowing? ... How do I keep my instruction count down when things that were one ... of the signals that you may encounter. ...
    (comp.dsp)
  • Re: The coming death of all RISC chips.
    ... I would not call Sparc a failure -- it has survived longer than many ... If Intel had made a design similar to ... You seem to think CLIW is a stroke of genius, but instruction encoding ... You can not patent an instruction set, but you can patent a mine field ...
    (comp.arch)
  • Re: SEAforth Instruction Set
    ... So people who learned the MISC instruction ... There are dozen of chips from Intel, ... design" article on the #c4th IRC channel even before you posted ... average person that reads the articles from Electronic Design ...
    (comp.lang.forth)