summaryrefslogtreecommitdiff
path: root/devel/picprg/patches/patch-aa
blob: a6f3f1d9eac7bc7cafb6d55fe1e54c339175b478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$NetBSD: patch-aa,v 1.1.1.1 2005/09/24 09:30:54 dsainty Exp $

Add support for the PIC16F628A.  Same as the PIC16F628, but the device ID and
mask have changed, and the screen template needed to be adjusted for the
longer device name.

--- picprg.c	2002-05-21 03:20:02.000000000 +1200
+++ picprg.c	2005-09-13 01:45:06.000000000 +1200
@@ -154,10 +154,24 @@
 NULL
 };
 
+char *pic16F628a_config_strings[] = {
+"CLOCK,0x0013,14,8,0x00:LP,0x01:XT,0x02:HS,0x03:EXTCLK,0x10:INTRCIO," //cont...
+"0x11:INTRCCLK,0x12:EXTRCIO,0x13:EXTRCCLK",
+"CP,0x3c00,30,4,0x0000:ALL,0x3c00:OFF,0x2800:HALF,0x1400:3/4",
+"WD,0x0004,39,3,0x0004:ON,0x0000:OFF",
+"PU,0x0008,47,3,0x0008:OFF,0x0000:ON",
+"CPD,0x0100,55,3,0x0100:OFF,0x0000:ON",
+"LVP,0x0080,64,3,0x0080:ON,0x0000:OFF",
+"BOD,0x0040,110,3,0x0040:ON,0x0000:OFF",
+"MCLR,0x0020,119,3,0x0020:EXT,0x0000:INT",
+NULL
+};
+
 dev_id_t pic_dev[] =
 {{0x07c0,0x0fc0,0x0800,0x0080,0x10,"PIC16F628",pic16F628_config_strings},
  {0x09a0,0x0fe0,0x2000,0x0100,0x10,"PIC16F877",pic16F877_config_strings},
  {0x0560,0x0fe0,0x0400,0x0040,0x00,"PIC16F84A",pic16F84_config_strings},
+ {0x1060,0x3fe0,0x0800,0x0080,0x10,"PIC16F628A",pic16F628a_config_strings},
  {0x0000,0x0000,0x0000,0x0000,0x00,NULL}
 };