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

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

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

#define ADR0B 2
#define ADR1B 1
#define ADR2B 3
#define ADR3B 2

#define WNPP PORTC
#define WNPB 4

#define RESETP PORTC
#define RESETB 5

#define DIODEP PORTD
#define DIODEB 7