#define DATA0P PORTC
#define DATA1P PORTC
#define DATA2P PORTC
#define DATA3P PORTC
#define DATA4P PORTC
#define DATA5P PORTC
#define DATA6P PORTB
#define DATA7P PORTB

#define DATA0B 0
#define DATA1B 1
#define DATA2B 2
#define DATA3B 3
#define DATA4B 4
#define DATA5B 5
#define DATA6B 1
#define DATA7B 0

#define ADR0P PORTD
#define ADR1P PORTD
#define ADR2P PORTD
#define ADR3P PORTD

#define ADR0B 7
#define ADR1B 6
#define ADR2B 2
#define ADR3B 3

#define WNPP PORTD
#define WNPB 5

#define RESETP PORTD
#define RESETB 4

#define DIODEP PORTB
#define DIODEB 2