1. Wait until busy flag is cleared.
2. Set the necessary registers.
3. Wait until busy flag is cleared.
4. Read back the result.
1. Wait until the SPI busy flag is cleared
2. Enable SPICNT, with baudrate 1MHz, powermanagement device, 8 clocks, and continuous mode.
3. Set SPIDATA to the register offset
a)To read from the PM register, enable bit 7.
b)To write to the PM register, clear bit 7.
4. Wait until the SPI busy flag is cleared
5. Set SPICNT to single byte mode now
6. a)Set SPIDATA to 0
b)Set SPIDATA to the register value you want to write.
7. a)Wait until the SPI busy flag is cleared
8. a)the lower 8bits of SPIDATA now contain the contents of the PM register.
1. Wait until the SPI busy flag is cleared
2. Enable SPICNT, with baudrate 2MHz, touchscreen device, 8 clocks, and continuous mode.
3. Set SPIDATA to 0xEC (AUX enabled, 8bit mode, power-down between conversions, startbit).
a) For 8bit mode, enable bit 3 (already enabled if 0xEC).
b) For 12bit mode, clear bit 3.
4. Wait until the SPI busy flag is cleared
5. Set SPIDATA to 0x00.
6. Wait until the SPI busy flag is cleared
7. a) Bits 0-6 of SPIDATA now contain the upper 7 bits of audio data.
b) Bits 0-6 of SPIDATA now contain the upper 7 bits of audio data.
8. Set SPICNT to single byte mode now
9. Set SPIDATA to 0x00
10.Wait until the SPI busy flag is cleared
11.a) Bit 7 of SPIDATA now contain the lowest bit of audio data.
b) Bits 3-7 of SPIDATA now contain the lower 5 bits of audio data.
12.Combine both results to retrieve the complete audio data.
13.Flip the highest bit (7th or 11th) to convert the audio data to signed.
1. Setup shared ram banks to ARM7.
2. Copy data to shared ram.
3. Set bits 8-11 of IPCSYNC to a random value named x.
example ARM7 code:
1. Wait until lower 4bits of IPCSYNC to become value x.
2. Read data from shared ram.
3. Continue with program.
ARM9 I/O Registers
0x04000004 |
REG_DISPSTAT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
VCNT |
|
VCNT IRQ |
HBL IRQ |
VBL IRQ |
VCNT |
HBL |
VBL |
|
0x04000006 |
REG_VCOUNT
(R)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
SCANLINE |
|
0x040000B0 |
REG_DMA0SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
SOURCE |
|
0x040000B4 |
REG_DMA0DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DESTINATION |
|
0x040000B8 |
REG_DMA0CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
TIMING |
TYPE |
REPEAT |
SRC CONTROL |
DST CONTROL |
|
|
|
|
|
LENGTH |
|
0x040000BC |
REG_DMA1SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
SOURCE |
|
0x040000C0 |
REG_DMA1DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DESTINATION |
|
0x040000C4 |
REG_DMA1CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
TIMING |
TYPE |
REPEAT |
SRC CONTROL |
DST CONTROL |
|
|
|
|
|
LENGTH |
|
0x040000C8 |
REG_DMA2SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
SOURCE |
|
0x040000CC |
REG_DMA2DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DESTINATION |
|
0x040000D0 |
REG_DMA2CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
TIMING |
TYPE |
REPEAT |
SRC CONTROL |
DST CONTROL |
|
|
|
|
|
LENGTH |
|
0x040000D4 |
REG_DMA3SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
SOURCE |
|
0x040000D8 |
REG_DMA3DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DESTINATION |
|
0x040000DC |
REG_DMA3CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
TIMING |
TYPE |
REPEAT |
SRC CONTROL |
DST CONTROL |
|
|
|
|
|
LENGTH |
|
0x04000100 |
REG_TM0CNT_L
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RELOAD/COUNTER |
|
0x04000102 |
REG_TM0CNT_H
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
ENABLE |
|
ENABLE |
IRQ |
|
|
|
COUNTUP |
PRESCALER |
|
0x04000104 |
REG_TM1CNT_L
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RELOAD/COUNTER |
|
0x04000106 |
REG_TM1CNT_H
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
ENABLE |
|
ENABLE |
IRQ |
|
|
|
COUNTUP |
PRESCALER |
|
0x04000108 |
REG_TM2CNT_L
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RELOAD/COUNTER |
|
0x0400010A |
REG_TM2CNT_H
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
ENABLE |
|
ENABLE |
IRQ |
|
|
|
COUNTUP |
PRESCALER |
|
0x0400010C |
REG_TM3CNT_L
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RELOAD/COUNTER |
|
0x0400010E |
REG_TM3CNT_H
(R/W)
|
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENABLE |
|
ENABLE |
IRQ |
|
|
|
COUNTUP |
PRESCALER |
|
0x04000130 |
REG_KEYINPUT
(R)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
L |
R |
DOWN |
UP |
LEFT |
RIGHT |
START |
SELECT |
B |
A |
|
0x04000132 |
REG_KEYCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
LOGIC |
IRQ |
|
|
|
|
L |
R |
DOWN |
UP |
LEFT |
RIGHT |
START |
SELECT |
B |
A |
|
0x04000180 |
REG_IPCSYNC
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
IRQ |
IREQ |
|
LOCALSTAT |
|
|
|
|
REMOTESTAT |
|
0x04000184 |
REG_IPCFIFOCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
ERROR |
|
|
|
RECV_IRQ |
RECV_FULL |
RECV_EMPTY |
|
|
|
|
SEND_CLEAR |
SEND_IRQ |
SEND_FULL |
SEND_EMPTY |
|
0x04000188 |
REG_IPCFIFOSEND
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
FIFO DATA |
|
0x04000204 |
REG_EXMEMCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
EP |
IFM |
|
|
CARD |
|
|
|
CART |
PHI |
ROM2nd |
ROM1st |
RAM |
|
0x04000208 |
REG_IME
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENABLE |
|
0x04000210 |
REG_IE
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
GX |
CARD |
CARDDATA |
IPCRECV |
IPCSEND |
ARM9 |
|
|
CART |
KEY |
DMA3 |
DMA2 |
DMA1 |
DMA0 |
|
TM3 |
TM2 |
TM1 |
TM0 |
VCNT |
HBL |
VBL |
|
0x04000214 |
REG_IF
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
GX |
CARD |
CARDDATA |
IPCRECV |
IPCSEND |
ARM9 |
|
|
CART |
KEY |
DMA3 |
DMA2 |
DMA1 |
DMA0 |
|
TM3 |
TM2 |
TM1 |
TM0 |
VCNT |
HBL |
VBL |
|
0x04000240 |
REG_VRAMCNTA
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
OFS |
|
MST |
|
0x04000241 |
REG_VRAMCNTB
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
OFS |
|
MST |
|
0x04000242 |
REG_VRAMCNTC
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
OFS |
MST |
|
0x04000243 |
REG_VRAMCNTD
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
OFS |
MST |
|
0x04000244 |
REG_VRAMCNTE
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
OFS |
MST |
|
0x04000245 |
REG_VRAMCNTF
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
OFS |
MST |
|
0x04000246 |
REG_VRAMCNTG
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
OFS |
MST |
|
0x04000247 |
REG_WRAMCNT
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
BANKCONFIG |
|
0x04000248 |
REG_VRAMCNTH
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
|
|
|
MST |
|
0x04000249 |
REG_VRAMCNTI
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
|
|
|
|
MST |
|
0x04000280 |
REG_DIVCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
BUSY |
DIVZERO |
|
|
|
|
|
|
|
|
|
|
|
|
MODE |
|
0x04000290 |
REG_DIV_NUMER_L
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x04000294 |
REG_DIV_NUMER_H
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x04000298 |
REG_DIV_DENOM_L
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x0400029C |
REG_DIV_DENOM_H
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x040002A0 |
REG_DIV_RESULT_L
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x040002A4 |
REG_DIV_RESULT_H
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x040002A8 |
REG_DIV_REMAIN_L
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x040002AC |
REG_DIV_REMAIN_H
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x040002B0 |
REG_SQRTCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
BUSY |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MODE |
|
0x040002B4 |
REG_SQRT_RESULT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x040002B8 |
REG_SQRT_PARAM_L
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x040002BC |
REG_SQRT_PARAM_H
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
NUMBER |
|
0x04000300 |
REG_HALTCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
MODE |
|
|
|
|
|
|
|
|
|
|
|
|
|
CHK |
|
0x04000304 |
REG_POWCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
LCDSWAP |
|
|
|
|
|
2D-B |
|
|
|
|
|
GEOMETRY |
RENDER |
2D-A |
LCD |
|
0x04100000 |
REG_IPCFIFORECV
(R)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
FIFO DATA |
|
DTCM+0x3FF8 |
REG_IRQCHECK
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
GX |
CARD |
CARDDATA |
IPCRECV |
IPCSEND |
ARM9 |
|
|
CART |
KEY |
DMA3 |
DMA2 |
DMA1 |
DMA0 |
|
TM3 |
TM2 |
TM1 |
TM0 |
VCNT |
HBL |
VBL |
|
DTCM+0x3FFC |
REG_IRQHANDLER
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ADDRESS |
|
ARM7 I/O Registers
0x0380FFF8 |
REG_IRQCHECK
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
WIFI |
SPI |
SCREENS |
|
CARD |
CARDDATA |
IPCRECV |
IPCSEND |
ARM9 |
|
|
CART |
KEY |
DMA3 |
DMA2 |
DMA1 |
DMA0 |
|
TM3 |
TM2 |
TM1 |
TM0 |
VCNT |
HBL |
VBL |
|
0x0380FFFC |
REG_IRQHANDLER
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ADDRESS |
|
0x04000004 |
REG_DISPSTAT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
VCNT |
|
VCNT IRQ |
HBL IRQ |
VBL IRQ |
VCNT |
HBL |
VBL |
|
0x04000006 |
REG_VCOUNT
(R)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
SCANLINE |
|
0x040000B0 |
REG_DMA0SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
SOURCE |
|
0x040000B4 |
REG_DMA0DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DESTINATION |
|
0x040000B8 |
REG_DMA0CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
TIMING |
|
TYPE |
REPEAT |
SRC CONTROL |
DST CONTROL |
|
|
|
|
|
LENGTH |
|
0x040000BC |
REG_DMA1SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
SOURCE |
|
0x040000C0 |
REG_DMA1DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DESTINATION |
|
0x040000C4 |
REG_DMA1CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
TIMING |
|
TYPE |
REPEAT |
SRC CONTROL |
DST CONTROL |
|
|
|
|
|
LENGTH |
|
0x040000C8 |
REG_DMA2SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
SOURCE |
|
0x040000CC |
REG_DMA2DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DESTINATION |
|
0x040000D0 |
REG_DMA2CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
TIMING |
|
TYPE |
REPEAT |
SRC CONTROL |
DST CONTROL |
|
|
|
|
|
LENGTH |
|
0x040000D4 |
REG_DMA3SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
SOURCE |
|
0x040000D8 |
REG_DMA3DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DESTINATION |
|
0x040000DC |
REG_DMA3CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
TIMING |
|
TYPE |
REPEAT |
SRC CONTROL |
DST CONTROL |
|
|
|
|
|
LENGTH |
|
0x04000100 |
REG_TM0CNT_L
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RELOAD/COUNTER |
|
0x04000102 |
REG_TM0CNT_H
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
ENABLE |
|
ENABLE |
IRQ |
|
|
|
COUNTUP |
PRESCALER |
|
0x04000104 |
REG_TM1CNT_L
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RELOAD/COUNTER |
|
0x04000106 |
REG_TM1CNT_H
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
ENABLE |
|
ENABLE |
IRQ |
|
|
|
COUNTUP |
PRESCALER |
|
0x04000108 |
REG_TM2CNT_L
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RELOAD/COUNTER |
|
0x0400010A |
REG_TM2CNT_H
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
ENABLE |
|
ENABLE |
IRQ |
|
|
|
COUNTUP |
PRESCALER |
|
0x0400010C |
REG_TM3CNT_L
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
RELOAD/COUNTER |
|
0x0400010E |
REG_TM3CNT_H
(R/W)
|
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENABLE |
|
ENABLE |
IRQ |
|
|
|
COUNTUP |
PRESCALER |
|
0x04000130 |
REG_KEYINPUT
(R)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
L |
R |
DOWN |
UP |
LEFT |
RIGHT |
START |
SELECT |
B |
A |
|
0x04000132 |
REG_KEYCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
LOGIC |
IRQ |
|
|
|
|
L |
R |
DOWN |
UP |
LEFT |
RIGHT |
START |
SELECT |
B |
A |
|
0x04000134 |
REG_RCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
MODE |
|
|
|
|
|
IRQ |
SO DIR |
SI DIR |
SD DIR |
SC DIR |
SO DATA |
SI DATA |
SD DATA |
SC DATA |
|
0x04000136 |
REG_KEYXY
(R)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
FOLDED |
TOUCH |
|
|
|
|
PADY |
PADX |
|
0x04000138 |
REG_RTCCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
CS DIRECTION |
SCK DIRECTION |
SIO DIRECTION |
|
CS DATA |
SCK DATA |
SIO DATA |
|
0x04000180 |
REG_IPCSYNC
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
IRQ |
IREQ |
|
LOCALSTAT |
|
|
|
|
REMOTESTAT |
|
0x04000184 |
REG_IPCFIFOCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
ERROR |
|
|
|
RECV_IRQ |
RECV_FULL |
RECV_EMPTY |
|
|
|
|
SEND_CLEAR |
SEND_IRQ |
SEND_FULL |
SEND_EMPTY |
|
0x04000188 |
REG_IPCFIFOSEND
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
FIFO DATA |
|
0x040001C0 |
REG_SPICNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
IRQ |
|
|
MODE |
CLOCKS |
DEVICE |
BUSY |
|
|
|
|
|
BAUDRATE |
|
0x040001C2 |
REG_SPIDATA
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
DATA |
|
0x04000208 |
REG_IME
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENABLE |
|
0x04000210 |
REG_IE
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
WIFI |
SPI |
SCREENS |
|
CARD |
CARDDATA |
IPCRECV |
IPCSEND |
ARM9 |
|
|
CART |
KEY |
DMA3 |
DMA2 |
DMA1 |
DMA0 |
|
TM3 |
TM2 |
TM1 |
TM0 |
VCNT |
HBL |
VBL |
|
0x04000214 |
REG_IF
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
WIFI |
SPI |
SCREENS |
|
CARD |
CARDDATA |
IPCRECV |
IPCSEND |
ARM9 |
|
|
CART |
KEY |
DMA3 |
DMA2 |
DMA1 |
DMA0 |
|
TM3 |
TM2 |
TM1 |
TM0 |
VCNT |
HBL |
VBL |
|
0x04000240 |
REG_WVRAMSTAT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
WRAM 1 |
WRAM 0 |
|
|
|
|
|
|
VRAM D |
VRAM C |
|
0x04000300 |
REG_HALTCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
MODE |
|
|
|
|
|
|
|
|
|
|
|
|
|
CHK |
|
0x04000304 |
REG_POWCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WIFI |
SPEAKERS |
|
0x04000400 |
REG_SOUND0CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000404 |
REG_SOUND0SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000408 |
REG_SOUND0TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400040A |
REG_SOUND0PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400040C |
REG_SOUND0LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000410 |
REG_SOUND1CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000414 |
REG_SOUND1SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000418 |
REG_SOUND1TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400041A |
REG_SOUND1PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400041C |
REG_SOUND1LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000420 |
REG_SOUND2CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000424 |
REG_SOUND2SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000428 |
REG_SOUND2TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400042A |
REG_SOUND2PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400042C |
REG_SOUND2LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000430 |
REG_SOUND3CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000434 |
REG_SOUND3SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000438 |
REG_SOUND3TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400043A |
REG_SOUND3PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400043C |
REG_SOUND3LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000440 |
REG_SOUND4CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000444 |
REG_SOUND4SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000448 |
REG_SOUND4TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400044A |
REG_SOUND4PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400044C |
REG_SOUND4LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000450 |
REG_SOUND5CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000454 |
REG_SOUND5SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000458 |
REG_SOUND5TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400045A |
REG_SOUND5PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400045C |
REG_SOUND5LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000460 |
REG_SOUND6CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000464 |
REG_SOUND6SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000468 |
REG_SOUND6TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400046A |
REG_SOUND6PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400046C |
REG_SOUND6LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000470 |
REG_SOUND7CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000474 |
REG_SOUND7SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000478 |
REG_SOUND7TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400047A |
REG_SOUND7PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400047C |
REG_SOUND7LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000480 |
REG_SOUND8CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000484 |
REG_SOUND8SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000488 |
REG_SOUND8TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400048A |
REG_SOUND8PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400048C |
REG_SOUND8LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000490 |
REG_SOUND9CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x04000494 |
REG_SOUND9SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x04000498 |
REG_SOUND9TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x0400049A |
REG_SOUND9PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x0400049C |
REG_SOUND9LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x040004A0 |
REG_SOUND10CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x040004A4 |
REG_SOUND10SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x040004A8 |
REG_SOUND10TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x040004AA |
REG_SOUND10PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x040004AC |
REG_SOUND10LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x040004B0 |
REG_SOUND11CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x040004B4 |
REG_SOUND11SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x040004B8 |
REG_SOUND11TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x040004BA |
REG_SOUND11PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x040004BC |
REG_SOUND11LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x040004C0 |
REG_SOUND12CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x040004C4 |
REG_SOUND12SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x040004C8 |
REG_SOUND12TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x040004CA |
REG_SOUND12PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x040004CC |
REG_SOUND12LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x040004D0 |
REG_SOUND13CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x040004D4 |
REG_SOUND13SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x040004D8 |
REG_SOUND13TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x040004DA |
REG_SOUND13PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x040004DC |
REG_SOUND13LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x040004E0 |
REG_SOUND14CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x040004E4 |
REG_SOUND14SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x040004E8 |
REG_SOUND14TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x040004EA |
REG_SOUND14PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x040004EC |
REG_SOUND14LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x040004F0 |
REG_SOUND15CNT
(R/W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
FORMAT |
REPEAT |
DUTY |
|
PAN |
HOLD |
|
|
|
|
|
SHIFT |
|
VOL |
|
0x040004F4 |
REG_SOUND15SAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
SRC ADDRESS |
|
0x040004F8 |
REG_SOUND15TMR
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
TIMER |
|
0x040004FA |
REG_SOUND15PNT
(W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
PNT |
|
0x040004FC |
REG_SOUND15LEN
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
|
|
|
|
|
LEN |
|
0x04000500 |
REG_SOUNDCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
ENABLE |
|
CH3 |
CH1 |
ROUT |
LOUT |
|
VOL |
|
0x04000504 |
REG_SOUNDBIAS
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
BIAS |
|
0x04000508 |
REG_SNDCAPCNT
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
CAP1ENABLE |
|
|
|
CAP1FMT |
CAP1REPEAT |
CAP1IN |
CAP1OUT |
CAP0ENABLE |
|
|
|
CAP0FMT |
CAP0REPEAT |
CAP0IN |
CAP0OUT |
|
0x04000510 |
REG_SNDCAP0DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
DST ADDRESS |
|
0x04000514 |
REG_SNDCAP0LEN
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
LENGTH |
|
0x04000518 |
REG_SNDCAP1DAD
(W)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
|
|
DST ADDRESS |
|
0x0400051C |
REG_SNDCAP1LEN
(R/W)
|
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
LENGTH |
|
0x04100000 |
REG_IPCFIFORECV
(R)
|
31 |
30 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
19 |
18 |
17 |
16 |
15 |
14 |
13 |
12 |
11 |
10 |
9 |
8 |
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
FIFO DATA |
|
PM 0H |
REG_PM_CONTROL
(R/W)
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
POWER |
LED |
BKLT_TOP |
BKLT_BOTTOM |
SND_VOL |
SND_PWR |
|
PM 1H |
REG_PM_BATTERY
(R)
|
|
PM 2H |
REG_PM_AMP
(R/W)
|
|
PM 3H |
REG_PM_AMPGAIN
(R/W)
|
|