Rev 542 | Rev 723 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 542 | Rev 543 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | int main(void) |
35 | int main(void) |
36 | { |
36 | { |
37 | char i,Parity; // Bit-Counter and Parity Bit |
37 | char i,Parity; // Bit-Counter and Parity Bit |
38 | DDRA = 0b011; // PORT A INPUT: /RESET; OUTPUT: Sync+Data |
38 | DDRA = 0b011; // PORT A INPUT: /RESET; OUTPUT: Sync+Data |
39 | DDRD = 0b0000000; // PORT D INPUT: Switches + DX7-Sync |
39 | DDRD = 0b0000000; // PORT D INPUT: Switches + DX7-Sync |
40 | PORTA = 0b111; // Pull-Up for /RESET, High for Sync+Data |
40 | PORTA = 0b111; // Pull-Up for /RESET; High for Sync+Data |
41 | PORTD = 0b0011111; // Pull-Up for Switches |
41 | PORTD = 0b0011111; // Pull-Up for Switches |
Line 42... | Line 42... | ||
42 | 42 | ||
43 | while(1) // Main-Loop (Sending data all the time) |
43 | while(1) // Main-Loop (Sending data all the time) |
44 | { |
44 | { |