DATA SHEET
MAS 35x9F
3.4. Audio Codec Access Protocol
The MAS 35x9F has 16-bit wide registers for the con-
trol of the audio codec. These registers are accessed
2
via the I C subaddresses codec_write (6C ) and
hex
codec_read (6D ).
hex
3.4.1. Write Codec Register
S
DW
W
A
codec_write
A
r3,r2
A
A
r1,r0
A
A
d3,d2
d1,d0
P
The controller writes the 16-bit value (d = d3,d2,d1,d0)
into the MAS 35x9F codec register (r = r3,r2,r1,r0). A
list of registers is given in Table 3–16.
Example: Writing the value 1234
into the codec reg-
hex
ister with the number 00 1B
:
hex
<DW 6c 00 1b 12 34>
3.4.2. Read Codec Register
1) send command
S
DW
W
A
codec_write
codec_read
A
r3,r2
A
r1,r0
A
P
P
2) get register value
S
DW
W
A
A
S
DR
W
A
N
d3,d2
A
d1,d0
Reading the codec registers also needs a set-up for
the register address and an additional start condition
during the actual read cycle. A list of status registers is
given in Table 3–17.
Micronas
June 30, 2004; 6251-505-1DS
45