summaryrefslogtreecommitdiffstats
path: root/libtoprammer/chips
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2013-10-14 14:21:46 +0200
committerMichael Buesch <m@bues.ch>2013-10-14 14:21:46 +0200
commit0fe5a16c40ea2d3903f3d336e5e8dda925e2b6f9 (patch)
treee610076ad288553c331dab45499fcb9aae433b0c /libtoprammer/chips
parent517d19ff320f8e525b1f050d52a72b57206ada40 (diff)
downloadtoprammer-0fe5a16c40ea2d3903f3d336e5e8dda925e2b6f9.tar.xz
toprammer-0fe5a16c40ea2d3903f3d336e5e8dda925e2b6f9.zip
microchip: Define default ihex values
Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'libtoprammer/chips')
-rw-r--r--libtoprammer/chips/microchip8/microchip8_singlePMarea.py2
-rw-r--r--libtoprammer/chips/microchip8/microchip8_splittedPMarea.py6
2 files changed, 6 insertions, 2 deletions
diff --git a/libtoprammer/chips/microchip8/microchip8_singlePMarea.py b/libtoprammer/chips/microchip8/microchip8_singlePMarea.py
index 049c1b4..8eea33b 100644
--- a/libtoprammer/chips/microchip8/microchip8_singlePMarea.py
+++ b/libtoprammer/chips/microchip8/microchip8_singlePMarea.py
@@ -55,6 +55,8 @@ class microchip8_singlePMarea(Chip_Microchip8_common):
2 * 0xFFF + 1) ]
inter.uilRanges = [ AddressRange(2 * self.userIDLocationAddr,
2 * (self.userIDLocationAddr + self.userIDLocationSize) - 1) ]
+ inter.progmemDefaultBytes = self.defaultWord[0] + self.defaultWord[1]
+ inter.fuseDefaultBytes = self.defaultWord[0] + self.defaultWord[1]
return inter
def setPC(self, address):
diff --git a/libtoprammer/chips/microchip8/microchip8_splittedPMarea.py b/libtoprammer/chips/microchip8/microchip8_splittedPMarea.py
index 3e40f58..51dd0c3 100644
--- a/libtoprammer/chips/microchip8/microchip8_splittedPMarea.py
+++ b/libtoprammer/chips/microchip8/microchip8_splittedPMarea.py
@@ -40,9 +40,9 @@ class microchip8_splittedPMarea(Chip_Microchip8_common):
delayTprog = 0.0021
delayTdly = 0.0000015
delayTera = 0.005
-
+
defaultWord = [b'\xFF', b'\x3F']
-
+
def __init__(self,
chipPackage, chipPinVCC, chipPinsVPP, chipPinGND,
signature,
@@ -64,6 +64,8 @@ class microchip8_splittedPMarea(Chip_Microchip8_common):
2 * self.configWordAddr + 1) ]
inter.uilRanges = [ AddressRange(2 * self.userIDLocationAddr,
2 * (self.userIDLocationAddr + self.userIDLocationSize) - 1) ]
+ inter.progmemDefaultBytes = self.defaultWord[0] + self.defaultWord[1]
+ inter.fuseDefaultBytes = self.defaultWord[0] + self.defaultWord[1]
return inter
def incrementPC(self, count):
bues.ch cgit interface