Subject:
Re: SDCC sample program for 16F873?
From:
Scott Dattalo ####@####.####
Date:
27 Jun 2002 05:49:04 -0000
Message-Id: <Pine.LNX.4.44.0206262233020.5796-200000@ruckus.brouhaha.com>
On 26 Jun 2002, Kevin L. Pauba wrote:
> Attached are the diffs (or do you prefer some other way of updating the
> code?).
diffs are preferred. However, if they're more than a few Kbytes, then you
probably should send them directly to me. BTW, there was a tiny bug in
your patch. I've attached the new patch. I'll be commit'ing this change to
CVS shortly. (I need to finish up on the gpsim interrupt bug reported the
other day).
Scott
--- device.c.orig Wed Jun 26 22:11:50 2002
+++ device.c Wed Jun 26 22:26:34 2002
@@ -113,6 +113,34 @@
{-1, -1, -1, -1} /* end indicator */
};
+/* 16F873 */
+memRange p16f873_mem[] = {
+ {0x20, 0x7f, 0x100, 0},
+ {0xa0, 0xff, 0x100, 1},
+ {-1, -1, -1, -1} /* end indicator */
+};
+memRange p16f873_sfr[] = {
+ {0x00, 0x00, 0x180, 0},
+ {0x01, 0x01, 0x100, 0},
+ {0x02, 0x04, 0x180, 0},
+ {0x05, 0x05, 0x000, 0},
+ {0x85, 0x85, 0x000, 1},
+ {0x81, 0x81, 0x100, 1},
+ {0x06, 0x06, 0x100, 0},
+ {0x86, 0x86, 0x100, 1},
+ {0x07, 0x09, 0x000, 0},
+ {0x87, 0x89, 0x000, 1},
+ {0x0a, 0x0b, 0x180, 0},
+ {0x0c, 0x1f, 0x000, 0},
+ {0x8c, 0x8e, 0x000, 1},
+ {0x91, 0x94, 0x000, 1},
+ {0x98, 0x99, 0x000, 1},
+ {0x9e, 0x9f, 0x000, 1},
+ {0x10c, 0x10f, 0x000, 2},
+ {0x18c, 0x18f, 0x000, 3},
+
+ {-1, -1, -1, -1} /* end indicator */
+};
static PIC_device Pics[] = {
{
@@ -140,6 +168,14 @@
},
{
+ {"p16f873", "16f873", "pic16f873", "f873"},
+ p16f873_mem,
+ p16f873_sfr,
+ 0,
+ 0x180,
+ },
+
+ {
{"p16f877", "16f877", "pic16f877", "f877"},
p16f877_mem,
p16f877_sfr,