mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-11 07:25:07 +01:00
V1.3: Set byte pin to low in 8bit mode
This commit is contained in:
parent
e9cc6af3ae
commit
3015b1037c
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user