Increased reliability

This commit is contained in:
Quinn Dunki 2015-10-11 15:41:07 -07:00
parent 51e841886d
commit eaf64c287d
1 changed files with 6 additions and 2 deletions

View File

@ -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)