forked from datajerk/x49gp
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathHP49GP_IO_PORT
185 lines (154 loc) · 3.5 KB
/
HP49GP_IO_PORT
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
I/O Port A (23 I/O Bits):
22 (???) (output)
21 (???) (output)
20 (???) (output)
19 (???) (output)
18 (???) (output)
17 (???) (output)
16 (???) (output)
15 (???) (output)
14 (???) (output)
13 (???) (output)
12 (???) (nGCS1)
11 (???) (output)
10 (???) (output)
9 (???) (output)
8 (???) (output)
7 (???) (output)
6 (???) (output)
5 (???) (ADDR20)
4 (???) (ADDR19)
3 (???) (ADDR18)
2 (???) (ADDR17)
1 (???) (ADDR16)
0 (???) (ADDR0)
I/O Port B (11 I/O Bits):
10 ??? (output)
9 ??? (output)
8 ??? (output)
7 ??? (output)
6 ??? (output)
5 ??? (output)
4 ??? (output)
3 ??? (output)
2 ??? (output) TIMER2 OUT (Piezo Speaker)
1 ??? (output)
0 ??? (output)
I/O Port C (16 I/O Bits):
15 ??? (input)
14 ??? (input)
13 ??? (input)
12 ??? (input)
11 ??? (VD[3]) VD3
10 ??? (VD[2]) VD2
9 ??? (VD[1]) VD1
8 ??? (VD[0]) VD0
7 ??? (output)
6 ??? (output)
5 ??? (output)
4 ??? (VM) VM
3 ??? (VFRAME) VFRAME
2 ??? (VLINE) VLINE
1 ??? (VCLK) VCLK
0 ??? (output)
I/O Port D (16 I/O Bits):
15 ??? (output)
14 ??? (output)
13 ??? (output) LCD SPI data
12 ??? (output) LCD SPI clk
11 ??? (output)
10 ??? (output)
9 ??? (output) LCD SPI chip select
8 ??? (output) LCD SPI reset?
7 ??? (output) LCD enable?
6 ??? (output)
5 ??? (output)
4 ??? (output)
3 ??? (input)
2 ??? (output) IrDA shutdown
1 ??? (output)
0 ??? (output)
I/O Port E (16 I/O Bits): SD Card Stuff.
15 ??? (IICSDA)
14 ??? (IICSCL)
13 ??? (output)
12 ??? (output) SPIMOSI0 (IrDA Tx)
11 ??? (output)
10 ??? (output) SDDAT3
9 ??? (output) SDDAT2
8 ??? (output) SDDAT1
7 ??? (output) SDDAT0
6 ??? (output) SDCMD
5 ??? (output) SDCLK
4 ??? (output)
3 ??? (output)
2 ??? (output)
1 ??? (output)
0 ??? (output)
IO Port F (8 I/O Bits):
7 ??? (output)
6 KEYB (EINT6) Right Shift
5 KEYB (EINT5) Left Shift
4 KEYB (EINT4) Alpha
3 SD (EINT3) SD Card Inserted
2 ??? (output)
1 ??? (output)
0 KEYB (EINT0) ON
I/O Port G (16 I/O Bits):
15 Column 7 (output) (Keys STO (K), NXT (L))
14 Column 6 (output) (Keys Up, Left, Down, Right, MODE (H), TOOL (I), VAR (J))
13 Column 5 (output) (Keys F1 (A) .. F6 (F), APPS (G))
12 Column 4 (output) (Keys HIST (M) .. EEX (V))
11 Column 3 (output) (Keys EVAL (N) .. 0)
10 Column 2 (output) (Keys ' (O) .. .)
9 Column 1 (output) (Keys SYMB (P) .. SPC)
8 Column 0 (output) (Keys Backspace .. Enter)
7 Row 7 (input)
6 Row 6 (input)
5 Row 5 (input)
4 Row 4 (input)
3 Row 3 (input)
2 Row 2 (input)
1 Row 1 (input)
0 ???
IO Port H (11 I/O Bits):
10 ??? (output)
9 ??? (CLKOUT0) CLKOUT0 (UPLL: 48MHz)
8 ??? (UEXTCLK) UEXTCLK (connected to CLKOUT0)
7 ??? (output) RXD2 (IrDA)
6 ??? (output) TXD2 (IrDA)
5 ??? (output)
4 ??? (output)
3 ??? (output) RXD0 (HP50g)
2 ??? (output) TXD0 (HP50g)
1 ??? (output) /RTS0 (not used)
0 ??? (output) /CTS0 (not used)
HP50g uses the 3rd letter in the SerialNo at offset 0x03ff0 to determine
whether to use the serial port 0 or not.
EXTINT:
0 rising edge
1 falling edge
2 falling edge
3 rising edge
4 rising edge enabled
5 rising edge enabled
6 rising edge enabled
7 falling edge
8 falling edge
9 falling edge enabled
10 falling edge enabled
11 falling edge enabled
12 falling edge enabled
13 falling edge enabled
14 falling edge enabled
15 falling edge enabled
16 falling edge
17 falling edge
18 falling edge
19 falling edge
20 falling edge
21 falling edge
22 falling edge
23 falling edge
nRSTOUT n.c.
PWREN n.c.