summaryrefslogtreecommitdiffstats
path: root/libtoprammer/chips
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2012-04-25 20:30:13 +0200
committerMichael Buesch <m@bues.ch>2012-04-25 20:30:13 +0200
commitb20b4a6fd7826c7a377a2268675ba915aabba904 (patch)
treeaac4b2c01292c5f284309e9d82820fbba3e1d49f /libtoprammer/chips
parentc8edb8fd0b558fefbc181aea301e147262a3e8aa (diff)
downloadtoprammer-b20b4a6fd7826c7a377a2268675ba915aabba904.tar.xz
toprammer-b20b4a6fd7826c7a377a2268675ba915aabba904.zip
27cxxx: Fix data_en setting.
Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'libtoprammer/chips')
-rw-r--r--libtoprammer/chips/_27cxxx.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/libtoprammer/chips/_27cxxx.py b/libtoprammer/chips/_27cxxx.py
index 1fbb17e..c983c7a 100644
--- a/libtoprammer/chips/_27cxxx.py
+++ b/libtoprammer/chips/_27cxxx.py
@@ -163,7 +163,7 @@ class Chip_27cXXX(Chip):
for retry in range(0, nrRetries):
# Program
self.progressMeterInit("Writing EPROM", len(image))
- self.__setFlags(prog_en=1, ce=0, oe=1)
+ self.__setFlags(data_en=1, prog_en=1, ce=0, oe=1)
self.applyVPP(True)
for addr in range(0, len(image)):
self.progressMeter(addr)
@@ -177,7 +177,7 @@ class Chip_27cXXX(Chip):
immediateVerify, overprogramPulse,
progpulseUsec)
self.applyVPP(False)
- self.__setFlags(prog_en=0, ce=0, oe=0)
+ self.__setFlags(data_en=0, prog_en=0, ce=0, oe=0)
self.progressMeterFinish()
if immediateVerify:
break
@@ -219,9 +219,9 @@ class Chip_27cXXX(Chip):
# Immediate verify
if not self.readWithVPP[self.chipType]:
self.applyVPP(False)
- self.__setFlags(prog_en=0, ce=0, oe=0)
+ self.__setFlags(data_en=0, prog_en=0, ce=0, oe=0)
readData = self.__readByte(addr)
- self.__setFlags(prog_en=1, ce=0, oe=1)
+ self.__setFlags(data_en=1, prog_en=1, ce=0, oe=1)
if not self.readWithVPP[self.chipType]:
self.applyVPP(True)
if readData == data:
bues.ch cgit interface