summaryrefslogtreecommitdiffstats
path: root/libtoprammer/chips
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2012-04-15 17:26:40 +0200
committerMichael Buesch <m@bues.ch>2012-04-15 17:26:40 +0200
commit98616941da31a1d150b0b4d9c93f418996fd2de1 (patch)
treeec15ab46e42dceeb5c1229fcc5b4afe6e92c67ee /libtoprammer/chips
parent96b03d0457429bac70306bae2982cfade1d78ffe (diff)
downloadtoprammer-98616941da31a1d150b0b4d9c93f418996fd2de1.tar.xz
toprammer-98616941da31a1d150b0b4d9c93f418996fd2de1.zip
27cXXX: Remove margin-mode code
It's not really usable on the top2049 due to its slow VPP switching. Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'libtoprammer/chips')
-rw-r--r--libtoprammer/chips/_27cxxx.py32
1 files changed, 6 insertions, 26 deletions
diff --git a/libtoprammer/chips/_27cxxx.py b/libtoprammer/chips/_27cxxx.py
index 3dd7e2f..1fbb17e 100644
--- a/libtoprammer/chips/_27cxxx.py
+++ b/libtoprammer/chips/_27cxxx.py
@@ -62,12 +62,12 @@ class Chip_27cXXX(Chip):
# Programming pulse lengths (in microseconds)
ppulseLengths = {
- CTYPE_16 : 500,
- CTYPE_32 : 500,
- CTYPE_64 : 500,
+ CTYPE_16 : 1000,
+ CTYPE_32 : 1000,
+ CTYPE_64 : 1000,
CTYPE_128 : 1000,
CTYPE_256 : 500,
- CTYPE_512 : 100,
+ CTYPE_512 : 500,
}
# Can we read the chip with VPP enabled?
@@ -92,17 +92,6 @@ class Chip_27cXXX(Chip):
CTYPE_512 : False,
}
- # Chip has 'margin mode'.
- # Can be overridden by 'margin_mode' chip option.
- hasMarginMode = {
- CTYPE_16 : False,
- CTYPE_32 : False,
- CTYPE_64 : False,
- CTYPE_128 : False,
- CTYPE_256 : False,
- CTYPE_512 : True,
- }
-
def __init__(self, chipType,
chipPinVCC, chipPinVPP, chipPinGND):
Chip.__init__(self, chipPackage = "DIP28",
@@ -143,16 +132,13 @@ class Chip_27cXXX(Chip):
progpulseUsec = self.getChipOptionValue(
"ppulse_length",
self.ppulseLengths[self.chipType])
- marginMode = self.getChipOptionValue(
- "margin_mode",
- self.hasMarginMode[self.chipType])
# Run the write algorithm
self.__writeAlgo(image, vppVolt, immediateVerify, overprogram,
- progpulseUsec, marginMode)
+ progpulseUsec)
def __writeAlgo(self, image, vppVolt, immediateVerify, overprogramPulse,
- progpulseUsec, marginMode):
+ progpulseUsec):
self.printInfo("Using %.2f VPP" % vppVolt)
self.printInfo("Using %s verify." %\
("immediate" if immediateVerify else "detached"))
@@ -167,10 +153,6 @@ class Chip_27cXXX(Chip):
"you intended.")
self.printInfo("Using ppulse length: %d microseconds" %\
progpulseUsec)
- self.printInfo("%s 'margin mode'." %\
- ("Using" if marginMode else "Not using"))
-
- #TODO margin mode
self.__turnOn()
self.addrSetter.reset()
@@ -313,8 +295,6 @@ class ChipDescription_27cXXX(ChipDescription):
"Immediately verify each written byte"),
ChipOptionBool("overprogram_pulse",
"Perform an 'overprogramming' pulse"),
- ChipOptionBool("margin_mode",
- "Force enable 'Margin mode'. See datasheet!"),
ChipOptionFloat("vpp_voltage",
"Override the default VPP voltage",
minVal=10.0, maxVal=14.0),
bues.ch cgit interface