V1.3: Set byte pin to low in 8bit mode

This commit is contained in:
sanni 2018-07-29 11:19:25 +02:00 committed by GitHub
parent e9cc6af3ae
commit 3015b1037c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -2,8 +2,8 @@
Cartridge Reader for Arduino Mega2560 Cartridge Reader for Arduino Mega2560
Author: sanni Author: sanni
Date: 21-06-2018 Date: 29-07-2018
Version: 1.2 Version: 1.3
SD lib: https://github.com/greiman/SdFat SD lib: https://github.com/greiman/SdFat
LCD lib: https://github.com/adafruit/Adafruit_SSD1306 LCD lib: https://github.com/adafruit/Adafruit_SSD1306
@ -35,7 +35,7 @@
infinest - help with GB Memory cart infinest - help with GB Memory cart
**********************************************************************************/ **********************************************************************************/
char ver[5] = "1.2"; char ver[5] = "1.3";
/****************************************** /******************************************
Define Starting Point Define Starting Point

View File

@ -367,12 +367,12 @@ void setup_Flash8() {
//A16-A23 //A16-A23
DDRL = 0xFF; DDRL = 0xFF;
// Set Control Pins to Output RST(PH0) OE(PH1) WE(PH4) CE(PH6) // Set Control Pins to Output RST(PH0) OE(PH1) BYTE(PH3) WE(PH4) CE(PH6)
DDRH |= (1 << 0) | (1 << 1) | (1 << 4) | (1 << 6); DDRH |= (1 << 0) | (1 << 1) | (1 << 3) | (1 << 4) | (1 << 6);
// Setting RST(PH0) OE(PH1) WE(PH4) HIGH // Setting RST(PH0) OE(PH1) WE(PH4) HIGH
PORTH |= (1 << 0) | (1 << 1) | (1 << 4); PORTH |= (1 << 0) | (1 << 1) | (1 << 4);
// Setting CE(PH6) LOW // Setting BYTE(PH3) and CE(PH6) LOW
PORTH &= ~(1 << 6); PORTH &= ~((1 << 3) | (1 << 6));
// Set Data Pins (D0-D7) to Input // Set Data Pins (D0-D7) to Input
DDRC = 0x00; DDRC = 0x00;