summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2015-11-26 19:36:00 +0100
committerMichael Buesch <m@bues.ch>2015-11-26 19:36:00 +0100
commit82924fd72c4c4d876beabaee00100c00af2b3d31 (patch)
tree040f226c7ba5e06905963f714826c0e21ec553d3
parent30389ab2bb476dcde8e2c10ce5f976a0d1a03650 (diff)
downloadtoprammer-82924fd72c4c4d876beabaee00100c00af2b3d31.tar.xz
toprammer-82924fd72c4c4d876beabaee00100c00af2b3d31.zip
Add AtMega 48(P) 168(P), 328(P)
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--libtoprammer/chips/__init__.py3
-rw-r--r--libtoprammer/chips/atmega168dip28.py72
-rw-r--r--libtoprammer/chips/atmega328dip28.py72
-rw-r--r--libtoprammer/chips/atmega48dip28.py72
4 files changed, 219 insertions, 0 deletions
diff --git a/libtoprammer/chips/__init__.py b/libtoprammer/chips/__init__.py
index 396441b..0513f23 100644
--- a/libtoprammer/chips/__init__.py
+++ b/libtoprammer/chips/__init__.py
@@ -5,7 +5,10 @@ from _74hc4094 import *
from at89c2051dip20 import *
from at89s51dip40 import *
from at89s52dip40 import *
+from atmega168dip28 import *
from atmega32dip40 import *
+from atmega328dip28 import *
+from atmega48dip28 import *
from atmega88dip28 import *
from atmega8dip28 import *
from attiny13dip8 import *
diff --git a/libtoprammer/chips/atmega168dip28.py b/libtoprammer/chips/atmega168dip28.py
new file mode 100644
index 0000000..bfc414a
--- /dev/null
+++ b/libtoprammer/chips/atmega168dip28.py
@@ -0,0 +1,72 @@
+"""
+# TOP2049 Open Source programming suite
+#
+# Atmel Mega168 DIP28 support
+#
+# Copyright (c) 2009-2015 Michael Buesch <m@bues.ch>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+"""
+
+from atmega_common import *
+
+
+class Chip_ATMega168DIP28(Chip_ATMega_common):
+ def __init__(self):
+ Chip_ATMega_common.__init__(self,
+ chipPackage = "DIP28",
+ chipPinVCC = 7,
+ chipPinsVPP = 1,
+ chipPinGND = 8,
+ signature = "\x1E\x94\x06",
+ flashPageSize = 64,
+ flashPages = 128,
+ eepromPageSize = 4,
+ eepromPages = 128,
+ fuseBytes = 3)
+
+ChipDescription(
+ Chip_ATMega168DIP28,
+ bitfile = "atmega8dip28",
+ chipID = "atmega168dip28",
+ runtimeID = (0x0003, 0x01),
+ chipVendors = "Atmel",
+ description = "AtMega168",
+ packages = ( ("DIP28", ""), ),
+)
+
+class Chip_ATMega168pDIP28(Chip_ATMega_common):
+ def __init__(self):
+ Chip_ATMega_common.__init__(self,
+ chipPackage = "DIP28",
+ chipPinVCC = 7,
+ chipPinsVPP = 1,
+ chipPinGND = 8,
+ signature = "\x1E\x94\x0B",
+ flashPageSize = 64,
+ flashPages = 128,
+ eepromPageSize = 4,
+ eepromPages = 128,
+ fuseBytes = 3)
+
+ChipDescription(
+ Chip_ATMega168pDIP28,
+ bitfile = "atmega8dip28",
+ chipID = "atmega168pdip28",
+ runtimeID = (0x0003, 0x01),
+ chipVendors = "Atmel",
+ description = "AtMega168P",
+ packages = ( ("DIP28", ""), ),
+)
diff --git a/libtoprammer/chips/atmega328dip28.py b/libtoprammer/chips/atmega328dip28.py
new file mode 100644
index 0000000..88acd09
--- /dev/null
+++ b/libtoprammer/chips/atmega328dip28.py
@@ -0,0 +1,72 @@
+"""
+# TOP2049 Open Source programming suite
+#
+# Atmel Mega328 DIP28 support
+#
+# Copyright (c) 2009-2015 Michael Buesch <m@bues.ch>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+"""
+
+from atmega_common import *
+
+
+class Chip_ATMega328DIP28(Chip_ATMega_common):
+ def __init__(self):
+ Chip_ATMega_common.__init__(self,
+ chipPackage = "DIP28",
+ chipPinVCC = 7,
+ chipPinsVPP = 1,
+ chipPinGND = 8,
+ signature = "\x1E\x95\x14",
+ flashPageSize = 64,
+ flashPages = 256,
+ eepromPageSize = 4,
+ eepromPages = 256,
+ fuseBytes = 3)
+
+ChipDescription(
+ Chip_ATMega328DIP28,
+ bitfile = "atmega8dip28",
+ chipID = "atmega328dip28",
+ runtimeID = (0x0003, 0x01),
+ chipVendors = "Atmel",
+ description = "AtMega328",
+ packages = ( ("DIP28", ""), ),
+)
+
+class Chip_ATMega328pDIP28(Chip_ATMega_common):
+ def __init__(self):
+ Chip_ATMega_common.__init__(self,
+ chipPackage = "DIP28",
+ chipPinVCC = 7,
+ chipPinsVPP = 1,
+ chipPinGND = 8,
+ signature = "\x1E\x95\x0F",
+ flashPageSize = 64,
+ flashPages = 256,
+ eepromPageSize = 4,
+ eepromPages = 256,
+ fuseBytes = 3)
+
+ChipDescription(
+ Chip_ATMega328pDIP28,
+ bitfile = "atmega8dip28",
+ chipID = "atmega328pdip28",
+ runtimeID = (0x0003, 0x01),
+ chipVendors = "Atmel",
+ description = "AtMega328P",
+ packages = ( ("DIP28", ""), ),
+)
diff --git a/libtoprammer/chips/atmega48dip28.py b/libtoprammer/chips/atmega48dip28.py
new file mode 100644
index 0000000..b305cab
--- /dev/null
+++ b/libtoprammer/chips/atmega48dip28.py
@@ -0,0 +1,72 @@
+"""
+# TOP2049 Open Source programming suite
+#
+# Atmel Mega48 DIP28 support
+#
+# Copyright (c) 2009-2015 Michael Buesch <m@bues.ch>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+"""
+
+from atmega_common import *
+
+
+class Chip_ATMega48DIP28(Chip_ATMega_common):
+ def __init__(self):
+ Chip_ATMega_common.__init__(self,
+ chipPackage = "DIP28",
+ chipPinVCC = 7,
+ chipPinsVPP = 1,
+ chipPinGND = 8,
+ signature = "\x1E\x92\x05",
+ flashPageSize = 32,
+ flashPages = 64,
+ eepromPageSize = 4,
+ eepromPages = 64,
+ fuseBytes = 3)
+
+ChipDescription(
+ Chip_ATMega48DIP28,
+ bitfile = "atmega8dip28",
+ chipID = "atmega48dip28",
+ runtimeID = (0x0003, 0x01),
+ chipVendors = "Atmel",
+ description = "AtMega48",
+ packages = ( ("DIP28", ""), ),
+)
+
+class Chip_ATMega48pDIP28(Chip_ATMega_common):
+ def __init__(self):
+ Chip_ATMega_common.__init__(self,
+ chipPackage = "DIP28",
+ chipPinVCC = 7,
+ chipPinsVPP = 1,
+ chipPinGND = 8,
+ signature = "\x1E\x92\x0A",
+ flashPageSize = 32,
+ flashPages = 64,
+ eepromPageSize = 4,
+ eepromPages = 64,
+ fuseBytes = 3)
+
+ChipDescription(
+ Chip_ATMega48pDIP28,
+ bitfile = "atmega8dip28",
+ chipID = "atmega48pdip28",
+ runtimeID = (0x0003, 0x01),
+ chipVendors = "Atmel",
+ description = "AtMega48P",
+ packages = ( ("DIP28", ""), ),
+)
bues.ch cgit interface