From eaf64c287dc042a365ebdc9a61c2b792001de276 Mon Sep 17 00:00:00 2001 From: Quinn Dunki Date: Sun, 11 Oct 2015 15:41:07 -0700 Subject: [PATCH] Increased reliability --- Code/EETool.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Code/EETool.c b/Code/EETool.c index 00901e0..d9ae0fd 100755 --- a/Code/EETool.c +++ b/Code/EETool.c @@ -334,7 +334,9 @@ void ReadBlock(uint16_t startAddr, uint16_t length, bool maskROM) // Drive address lines PORTB = (uint8_t)(i & 0xff); // LSB SetAddressMSB((uint8_t)(i>>8),maskROM); - + + _delay_us(1); + // Show falling edge to Output Enable SETE_LO(2); @@ -342,7 +344,9 @@ void ReadBlock(uint16_t startAddr, uint16_t length, bool maskROM) // Read the data byte uint8_t data = PIND; - + + _delay_us(1); + SETE_HI(2); uint16_t index = i-startAddr; if (index>=BUFF_SIZE)