Subject:
Re: SDCC sample program for 16F873?
From:
"Kevin L. Pauba" ####@####.####
Date:
27 Jun 2002 02:25:59 -0000
Message-Id: <1025144027.32000.15.camel@dad>
Attached are the diffs (or do you prefer some other way of updating the
code?).
Index: device.c
===================================================================
RCS file: /cvsroot/sdcc/sdcc/src/pic/device.c,v
retrieving revision 1.6
diff -c -r1.6 device.c
*** device.c 23 Jun 2002 03:51:18 -0000 1.6
--- device.c 27 Jun 2002 02:12:08 -0000
***************
*** 113,118 ****
--- 113,148 ----
{-1, -1, -1, -1} /* end indicator */
};
+ /* 16F873 */
+ memRange p16f873_mem[] = {
+ {0x20, 0x7f, 0x00, 0},
+ {0xa0, 0xff, 0x00, 1},
+ {0x20, 0x7f, 0x100, 0},
+ {0xa0, 0xff, 0x180, 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[] = {
{
***************
*** 137,142 ****
--- 167,180 ----
p16f84_sfr,
0,
0x80,
+ },
+
+ {
+ {"p16f873", "16f873", "pic16f873", "f873"},
+ p16f873_mem,
+ p16f873_sfr,
+ 0,
+ 0x180,
},
{