1 #define _PAGE_ Port pin assignments
7 <th colspan=2>Player</th>
8 <th colspan=2>Recorder</th>
9 <th colspan=2>FM/V2 Recorder</th>
11 <tr><th><b>PA0</b></th>
12 <td><b>GP In</b></td><td>DC adapter detect (0=inserted)</td>
13 <td><b>/CS4</b></td><td>MAS Parallel Port (for recording)</td>
14 <td><b>/CS4</b></td><td>MAS Parallel Port (for recording)</td>
16 <tr><th><b>PA1</b></th>
17 <td><b>/RAS Out</b></td><td>DRAM control</td>
18 <td><b>/RAS Out</b></td><td>DRAM control</td>
19 <td><b>/RAS Out</b></td><td>DRAM control</td>
21 <tr><th><b>PA2</b></th>
22 <td><b>/CS6 Out</b></td><td>ATA registers</td>
23 <td><b>/CS6 Out</b></td><td>ATA registers</td>
24 <td><b>/CS6 Out</b></td><td>ATA registers</td>
26 <tr><th><b>PA3</b></th>
27 <td><b>/WAIT In</b></td><td>Bus handshake</td>
28 <td><b>/WAIT In</b></td><td>Bus handshake</td>
29 <td><b>/WAIT In</b></td><td>Bus handshake</td>
31 <tr><th><b>PA4</b></th>
32 <td><b>/WR Out</b></td><td>Bus write signal</td>
33 <td><b>/WR Out</b></td><td>Bus write signal</td>
34 <td><b>/WR Out</b></td><td>Bus write signal</td>
36 <tr><th><b>PA5</b></th>
37 <td><b>GP In</b></td><td>ON key (0=pressed)</td>
38 <td><b>GP Out</b></td><td>ATA power control (1=on)</td>
39 <td><b>GP Out</b></td><td>ATA/LED power control (1=on)</td>
41 <tr><th><b>PA6</b></th>
42 <td><b>/RD Out</b></td><td>Bus read signal</td>
43 <td><b>/RD Out</b></td><td>Bus read signal</td>
44 <td><b>/RD Out</b></td><td>Bus read signal</td>
46 <tr><th><b>PA7</b></th>
47 <td><b>GP Out</b></td><td>ATA buffer control (0=active)</td>
48 <td><b>GP Out</b></td><td>ATA buffer control (0=active)</td>
49 <td><b>GP Out</b></td><td>ATA buffer control (0=active)</td>
51 <tr><th><b>PA8</b></th>
52 <td><b> </b></td><td> </td>
53 <td><b>GP Out</b></td><td>MAS POR Reset (polarity varies)</td>
54 <td><b>GP Out</b></td><td>MAS POR Reset (polarity varies)</td>
56 <tr><th><b>PA9</b></th>
57 <td><b>GP Out</b></td><td>ATA Reset (0=reset)</td>
58 <td><b>GP Out</b></td><td>ATA Reset (0=reset)</td>
59 <td><b>GP Out</b></td><td>ATA Reset (0=reset)</td>
61 <tr><th><b>PA10</b></th>
62 <td><b>GP Out</b></td><td>USB Enable (0=enable)</td>
63 <td><b>GP Out</b></td><td>USB Enable (polarity varies)</td>
64 <td><b>GP Out</b></td><td>USB Enable (polarity varies)</td>
66 <tr><th><b>PA11</b></th>
67 <td><b>GP In</b></td><td>STOP key (0=pressed)</td>
68 <td><b>GP Out</b></td><td>MAS PR DMA Request (polarity varies)</td>
69 <td><b>GP Out</b></td><td>MAS PR DMA Request (polarity varies)</td>
71 <tr><th><b>PA12</b></th>
72 <td><b>/IRQ0</b></td><td>ATA INTRQ (not used)</td>
73 <td><b>/IRQ0</b></td><td>ATA INTRQ (not used)</td>
74 <td><b>/IRQ0</b></td><td>ATA INTRQ (not used)</td>
76 <tr><th><b>PA13</b></th>
77 <td><b> </b></td><td> </td>
78 <td><b>/IRQ1</b></td><td>RTC IRQ</td>
79 <td><b> </b></td><td> </td>
81 <tr><th><b>PA14</b></th>
82 <td><b>GP Out</b></td><td>Backlight (1=on)</td>
83 <td><b>GP In</b></td><td>Not used</td>
84 <td><b> </b></td><td> </td>
86 <tr><th><b>PA15</b></th>
87 <td><b>GP In</b></td><td>USB cable detect (0=inserted)</td>
88 <td><b>/IRQ3</b></td><td>MAS Demand IRQ, start demand</td>
89 <td><b>/IRQ3</b></td><td>MAS Demand IRQ, start demand</td>
96 <th colspan=2>Player</th>
97 <th colspan=2>Recorder</th>
98 <th colspan=2>FM/V2 Recorder</th>
100 <tr><th><b>PB0</b></th>
101 <td><b>GP Out</b></td><td>LCD Data Select (1=data)</td>
102 <td><b>GP Out</b></td><td>LCD Serial Data</td>
103 <td><b>GP Out</b></td><td>LCD Serial Data / FM Radio Data In</td>
105 <tr><th><b>PB1</b></th>
106 <td><b>GP Out</b></td><td>LCD Chip Select (0=active)</td>
107 <td><b>GP Out</b></td><td>LCD Serial Clock</td>
108 <td><b>GP Out</b></td><td>LCD Serial Clock / FM Radio Serial Clock</td>
110 <tr><th><b>PB2</b></th>
111 <td><b>GP Out</b></td><td>LCD Serial Data</td>
112 <td><b>GP Out</b></td><td>LCD Data Select (1=data)</td>
113 <td><b>GP Out</b></td><td>LCD Data Select (1=data)</td>
115 <tr><th><b>PB3</b></th>
116 <td><b>GP Out</b></td><td>LCD Serial Clock</td>
117 <td><b>GP Out</b></td><td>LCD Chip Select (0=active)</td>
118 <td><b>GP Out</b></td><td>LCD Chip Select (0=active) / FM Radio Chip Enable (1=active)</td>
120 <tr><th><b>PB4</b></th>
121 <td><b>GP Out</b></td><td>Hard disk power (1=on) <b>NewPlayer only</b></td>
122 <td><b>GP In</b></td><td>OFF key (0=pressed)</td>
123 <td><b>GP In</b></td><td>FM Radio Data Out</td>
125 <tr><th><b>PB5</b></th>
126 <td><b>GP Out</b></td><td>MAS WSEN (1=enable)</td>
127 <td><b>GP Out</b></td><td>Charger control (0=enable)</td>
128 <td><b>GP Out</b></td><td>Main power control (0=shut off)</td>
130 <tr><th><b>PB6</b></th>
131 <td><b>GP Out</b></td><td>Red LED control (1=on)</td>
132 <td><b>GP Out</b></td><td>Red LED control (1=on)</td>
133 <td><b>GP Out</b></td><td>Red LED control (1=on)</td>
135 <tr><th><b>PB7</b></th>
136 <td><b>GP I/O</b></td><td>I²C Data</td>
137 <td><b>GP Out</b></td><td>I²C Data</td>
138 <td><b>GP Out</b></td><td>I²C Data</td>
140 <tr><th><b>PB8</b></th>
141 <td><b> </b></td><td> </td>
142 <td><b>GP In</b></td><td>ON key (0=pressed)</td>
143 <td><b> </b></td><td> </td>
145 <tr><th><b>PB9</b></th>
146 <td><b>TxD0</b></td><td>MAS Serial link for MP3 data</td>
147 <td><b>TxD0</b></td><td>MAS Serial link for MP3 data</td>
148 <td><b>TxD0</b></td><td>MAS Serial link for MP3 data</td>
150 <tr><th><b>PB10</b></th>
151 <td><b>RxD1</b></td><td>Remote control serial input</td>
152 <td><b>RxD1</b></td><td>Remote control serial input</td>
153 <td><b>Unused</b></td><td>(meant for RDS data input, IIRC)</td>
155 <tr><th><b>PB11</b></th>
156 <td><b> </b></td><td> </td>
157 <td><b> </b></td><td> </td>
158 <td><b> </b></td><td> </td>
160 <tr><th><b>PB12</b></th>
161 <td><b>SCK0</b></td><td>MAS Serial Clock for MP3 data</td>
162 <td><b>SCK0</b></td><td>MAS Serial Clock for MP3 data</td>
163 <td><b>SCK0</b></td><td>MAS Serial Clock for MP3 data</td>
165 <tr><th><b>PB13</b></th>
166 <td><b>GP Out</b></td><td>I²C Clock</td>
167 <td><b>GP Out</b></td><td>I²C Clock</td>
168 <td><b>GP Out</b></td><td>I²C Clock</td>
170 <tr><th><b>PB14</b></th>
171 <td><b>/IRQ6</b></td><td>MAS Demand IRQ, stop demand</td>
172 <td><b>/IRQ6</b></td><td>MAS Demand IRQ, stop demand</td>
173 <td><b>/IRQ6</b></td><td>MAS Demand IRQ, stop demand</td>
175 <tr><th><b>PB15</b></th>
176 <td><b>GP In</b></td><td>MAS MP3 frame sync</td>
177 <td><b>GP In</b></td><td>MAS PRTW input (0=ready)</td>
178 <td><b>GP In</b></td><td>MAS PRTW input (0=ready)</td>
182 <h2>Port C/Analog In</h2>
184 <tr><th>Port pin</th>
187 <th>FM/V2 Recorder</th>
189 <tr><th><b>PC0/AN0</b></th>
191 <td>Battery voltage 1 (unusable)</td>
194 <tr><th><b>PC1/AN1</b></th>
196 <td>Charger regulator voltage</td>
199 <tr><th><b>PC2/AN2</b></th>
204 <tr><th><b>PC3/AN3</b></th>
209 <tr><th><b>PC4/AN4</b></th>
211 <td>F1, F2, F3, UP keys</td>
212 <td>F1, F2, F3, UP keys</td>
214 <tr><th><b>PC5/AN5</b></th>
216 <td>DOWN, PLAY, LEFT, RIGHT keys</td>
217 <td>DOWN, PLAY, LEFT, RIGHT keys</td>
219 <tr><th><b>PC6/AN6</b></th>
220 <td>Battery voltage</td>
221 <td>Battery voltage</td>
222 <td>Battery voltage</td>
224 <tr><th><b>PC7/AN7</b></th>
225 <td>DC input voltage</td>
226 <td>DC input voltage</td>
227 <td>Charge current?</td>