-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpinmap.c
More file actions
26 lines (22 loc) · 784 Bytes
/
pinmap.c
File metadata and controls
26 lines (22 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <Arduino.h>
/* Define arrays of 4 (or 2) pins which comprise the bits
* Instruction pins for the instruction board
*/
int INST_INSTR_LOW[4] = {2, 3, 4, 5};
int INST_INSTR_HI[4] = {6, 7, 8, 9};
/* Condition codes for the instruction board */
int INST_CC[2] = {12, 13};
/* Instruction pins for the register board */
int REG_INSTR_LOW[4] = {2, 3, 4, 5};
int REG_INSTR_HI[4] = {6, 7, 8, 9};
/* Register pins for the register board */
int REG_A[4] = {21, 23, 25, 27};
int REG_B[4] = {29, 31, 33, 35};
int REG_S[4] = {37, 39, 41, 43};
/* Instruction pins for the ALU board */
int ALU_INSTR_LOW[4] = {A0, A1, A2, A3};
/* Register pins for the ALU board */
int ALU_A[4] = {0,1,2,3};
int ALU_B[4] = {29, 31, 33, 35};
int ALU_S[4] = {37, 39, 41, 43};
int ALU_CC[2] = {12, 13};