Testing, reading and writing bytes
This commit is contained in:
33
ROMWireProtocol.h
Normal file
33
ROMWireProtocol.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
#define OE 3
|
||||
// PGM is also WE# according to data sheet
|
||||
#define PGM 2
|
||||
|
||||
// 18 pin address line
|
||||
#define Addr0 22
|
||||
#define Addr18 40
|
||||
|
||||
// 8 pin data line
|
||||
#define Data0 44
|
||||
#define Data7 51
|
||||
|
||||
void setCtrlPins();
|
||||
|
||||
void setAddrPinsOut();
|
||||
|
||||
void setDataPinsOut();
|
||||
|
||||
void setDataPinsIn();
|
||||
|
||||
void setByte(byte out);
|
||||
|
||||
void setAddress(unsigned long addr);
|
||||
|
||||
byte readByte();
|
||||
|
||||
byte readData(unsigned long address);
|
||||
|
||||
void writeByte(byte data, unsigned long address);
|
||||
|
||||
void programData(byte data, unsigned long address);
|
Reference in New Issue
Block a user