pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
1.9 KiB
122 lines
1.9 KiB
16 years ago
|
mainmenu_option next_comment
|
||
16 years ago
|
comment "PD1165 Port Setup"
|
||
16 years ago
|
|
||
|
#define COLPORT1 PORTC
|
||
|
#define COLDDR1 DDRC
|
||
|
|
||
|
#define COLPORT2 PORTA
|
||
|
#define COLDDR2 DDRA
|
||
|
|
||
|
#// Der andere Port übernimmt die Steuerung der Schieberegister
|
||
|
#define ROWPORT PORTD
|
||
|
#define ROWDDR DDRD
|
||
|
#// Clock und reset gehen gemeinsam an beide Schieberegister
|
||
|
#// der reset pin ist negiert
|
||
|
#define PIN_RST PD4
|
||
|
#define PIN_CLK PD6
|
||
|
#//das dier sind die individuellen Dateneingänge für die Schieberegister
|
||
|
#define PIN_SHFT1 PD7
|
||
|
|
||
|
|
||
16 years ago
|
choice 'Data Port' \
|
||
16 years ago
|
"PORTA PORTA \
|
||
|
PORTB PORTB \
|
||
|
PORTC PORTC \
|
||
|
PORTD PORTD" \
|
||
16 years ago
|
'PORTC' DATAPORT
|
||
16 years ago
|
|
||
16 years ago
|
choice 'Address Port (Bits0-3)' \
|
||
16 years ago
|
"PORTA PORTA \
|
||
|
PORTB PORTB \
|
||
|
PORTC PORTC \
|
||
|
PORTD PORTD" \
|
||
16 years ago
|
'PORTA' ADDRPORT
|
||
16 years ago
|
|
||
16 years ago
|
choice 'Control Port' \
|
||
16 years ago
|
"PORTA PORTA \
|
||
|
PORTB PORTB \
|
||
|
PORTC PORTC \
|
||
|
PORTD PORTD" \
|
||
16 years ago
|
'PORTD' CTRLPORT
|
||
16 years ago
|
|
||
16 years ago
|
choice 'Rdim Port' \
|
||
|
"PORTA PORTA \
|
||
|
PORTB PORTB \
|
||
|
PORTC PORTC \
|
||
|
PORTD PORTD" \
|
||
|
'PORTA' RDIMPORT
|
||
|
|
||
|
comment "pin numbers on Control Port"
|
||
16 years ago
|
|
||
16 years ago
|
choice 'CS0 Pin' \
|
||
16 years ago
|
"Pin0 0 \
|
||
|
Pin1 1 \
|
||
|
Pin2 2 \
|
||
|
Pin3 3 \
|
||
|
Pin4 4 \
|
||
|
Pin5 5 \
|
||
|
Pin6 6 \
|
||
|
Pin7 7" \
|
||
16 years ago
|
'Pin2' BIT_CS0
|
||
16 years ago
|
|
||
16 years ago
|
choice 'CS1 Pin' \
|
||
16 years ago
|
"Pin0 0 \
|
||
|
Pin1 1 \
|
||
|
Pin2 2 \
|
||
|
Pin3 3 \
|
||
|
Pin4 4 \
|
||
|
Pin5 5 \
|
||
|
Pin6 6 \
|
||
|
Pin7 7" \
|
||
16 years ago
|
'Pin3' BIT_CS1
|
||
16 years ago
|
|
||
16 years ago
|
choice 'CS2 Pin' \
|
||
16 years ago
|
"Pin0 0 \
|
||
|
Pin1 1 \
|
||
|
Pin2 2 \
|
||
|
Pin3 3 \
|
||
|
Pin4 4 \
|
||
|
Pin5 5 \
|
||
|
Pin6 6 \
|
||
|
Pin7 7" \
|
||
16 years ago
|
'Pin4' BIT_CS2
|
||
|
|
||
|
choice 'CS3 Pin' \
|
||
|
"Pin0 0 \
|
||
|
Pin1 1 \
|
||
|
Pin2 2 \
|
||
|
Pin3 3 \
|
||
|
Pin4 4 \
|
||
|
Pin5 5 \
|
||
|
Pin6 6 \
|
||
|
Pin7 7" \
|
||
|
'Pin5' BIT_CS3
|
||
|
|
||
|
choice 'RW Pin' \
|
||
|
"Pin0 0 \
|
||
|
Pin1 1 \
|
||
|
Pin2 2 \
|
||
|
Pin3 3 \
|
||
|
Pin4 4 \
|
||
|
Pin5 5 \
|
||
|
Pin6 6 \
|
||
|
Pin7 7" \
|
||
|
'Pin6' BIT_RW
|
||
16 years ago
|
|
||
16 years ago
|
comment "pin number on Rdim Port"
|
||
16 years ago
|
|
||
16 years ago
|
|
||
|
choice 'RDim Pin' \
|
||
|
"Pin0 0 \
|
||
|
Pin1 1 \
|
||
|
Pin2 2 \
|
||
|
Pin3 3 \
|
||
|
Pin4 4 \
|
||
|
Pin5 5 \
|
||
|
Pin6 6 \
|
||
|
Pin7 7" \
|
||
|
'Pin4' BIT_RDIM
|
||
16 years ago
|
|
||
|
|
||
|
endmenu
|