Difference between revisions of "I2S Registers"

From 3dbrew
Jump to navigation Jump to search
(Created page with "== Registers == {| class="wikitable" border="1" ! NAME ! PHYSICAL ADDRESS ! ARM11 PROCESS ADDRESS ! WIDTH |- | ? | 0x10141114 | 0x1EC41114 | 2 |- | ? | 0x10141116 | 0x1EC4111...")
 
m (TuxSH moved page CODEC Registers to I2S Registers: CODEC is more than just sound output)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Registers ==
+
= Registers =
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
NAME
+
Old3DS
PHYSICAL ADDRESS
+
Name
ARM11 PROCESS ADDRESS
+
Address
WIDTH
+
Width
 +
!  Used by
 
|-
 
|-
 +
| style="background: green" | Yes
 +
| [[#I2S1_CNT|I2S1_CNT]]
 +
| 0x10145000
 +
| 2
 +
| Codec sysmodule, AgbBg, TwlBg
 +
|-
 +
| style="background: green" | Yes
 +
| [[#I2S2_CNT|I2S2_CNT]]
 +
| 0x10145002
 +
| 2
 +
| Codec sysmodule, AgbBg, TwlBg
 +
|}
 +
 +
 +
==I2S1_CNT==
 +
{| class="wikitable" border="1"
 +
!  Bit
 +
!  Description
 +
|-
 +
| 0-5
 +
| DSP volume (doesn't affect csnd)
 +
|-
 +
| 6-11
 +
| Another volume?
 +
|-
 +
| 12
 
| ?
 
| ?
| 0x10141114
 
| 0x1EC41114
 
| 2
 
 
|-
 
|-
 +
| 13-14
 +
| ?
 +
|-
 +
| 15
 +
| Enable (0=Disabled, 1=Enabled)
 +
|}
 +
 +
This I2S line is used the DSP and microphone.
 +
 +
This is usually set to 0xC800 or 0xC820 when the DSP is active.
 +
 +
 +
==I2S2_CNT==
 +
{| class="wikitable" border="1"
 +
!  Bit
 +
!  Description
 +
|-
 +
| 13-14
 
| ?
 
| ?
| 0x10141116
+
|-
| 0x1EC41116
+
| 15
| 2
+
| Enable (0=Disabled, 1=Enabled)
 
|}
 
|}
  
==0x1EC41114 and 0x1EC41116==
+
This I2S line is used by CSND.
The following is the only time the ARM11 CODEC module uses any 0x1EC41XXX registers. In one case CODEC module clears bit1 in register 0x1EC41114, in the other case CODEC module sets bit1 in registers 0x1EC41114 and 0x1EC41116.
+
 
 +
Usually set to 0xE000.

Latest revision as of 00:44, 20 January 2021

Registers[edit]

Old3DS Name Address Width Used by
Yes I2S1_CNT 0x10145000 2 Codec sysmodule, AgbBg, TwlBg
Yes I2S2_CNT 0x10145002 2 Codec sysmodule, AgbBg, TwlBg


I2S1_CNT[edit]

Bit Description
0-5 DSP volume (doesn't affect csnd)
6-11 Another volume?
12 ?
13-14 ?
15 Enable (0=Disabled, 1=Enabled)

This I2S line is used the DSP and microphone.

This is usually set to 0xC800 or 0xC820 when the DSP is active.


I2S2_CNT[edit]

Bit Description
13-14 ?
15 Enable (0=Disabled, 1=Enabled)

This I2S line is used by CSND.

Usually set to 0xE000.