diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index 6b4ed3b..4996f5f 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -2,8 +2,8 @@ Cartridge Reader for Arduino Mega2560 Author: sanni - Date: 21-06-2018 - Version: 1.2 + Date: 29-07-2018 + Version: 1.3 SD lib: https://github.com/greiman/SdFat LCD lib: https://github.com/adafruit/Adafruit_SSD1306 @@ -35,7 +35,7 @@ infinest - help with GB Memory cart **********************************************************************************/ -char ver[5] = "1.2"; +char ver[5] = "1.3"; /****************************************** Define Starting Point diff --git a/Cart_Reader/FLASH.ino b/Cart_Reader/FLASH.ino index 83651c2..1ba7960 100644 --- a/Cart_Reader/FLASH.ino +++ b/Cart_Reader/FLASH.ino @@ -367,12 +367,12 @@ void setup_Flash8() { //A16-A23 DDRL = 0xFF; - // Set Control Pins to Output RST(PH0) OE(PH1) WE(PH4) CE(PH6) - DDRH |= (1 << 0) | (1 << 1) | (1 << 4) | (1 << 6); + // Set Control Pins to Output RST(PH0) OE(PH1) BYTE(PH3) WE(PH4) CE(PH6) + DDRH |= (1 << 0) | (1 << 1) | (1 << 3) | (1 << 4) | (1 << 6); // Setting RST(PH0) OE(PH1) WE(PH4) HIGH PORTH |= (1 << 0) | (1 << 1) | (1 << 4); - // Setting CE(PH6) LOW - PORTH &= ~(1 << 6); + // Setting BYTE(PH3) and CE(PH6) LOW + PORTH &= ~((1 << 3) | (1 << 6)); // Set Data Pins (D0-D7) to Input DDRC = 0x00;