|
AK4682 Datasheet, PDF (33/43 Pages) Asahi Kasei Microsystems – Multi-channel CODEC with 2Vrms Stereo Selector | |||
|
◁ |
[AK4682]
3. READ Operations
Set R/W bit = â1â for the READ operation of the AK4682.
After transmission of a data, the master can read next addressâs data by generating the acknowledge instead of
terminating the write cycle after the receipt of the first data word. After the receipt of each data, the internal 5bits
address counter is incremented by one, and the next data is taken into next address automatically. If the address exceeds
0DH prior to generating the stop condition, the address counter will âroll overâ to 00H and the previous data will be
overwritten.
The AK4682 supports two basic read operations: CURRENT ADDRESS READ and RANDOM READ.
3-1. CURRENT ADDRESS READ
The AK4682 contains an internal address counter that maintains the address of the last word accessed, incremented by
one. Therefore, if the last access (either a read or write) was to address ânâ, the next CURRENT READ operation
would access data from the address ân+1â.
After receipt of the slave address with R/W bit set to â1â, the AK4682 generates an acknowledge, transmits 1byte data
which address is set by the internal address counter and increments the internal address counter by 1. If the master does
not generate an acknowledge to the data but generate the stop condition, the AK4682 discontinues transmission
SDA
S
T
A Slave
R Address
T
Data(n)
Data(n+1)
Data(n+2)
S
A
A
A
A
C
C
C
C
K
K
K
K
Figure 21. CURRENT ADDRESS READ
S
Data(n+x) T
O
P
P
3-2. RANDOM READ
Random read operation allows the master to access any memory location at random. Prior to issuing the slave address
with the R/W bit set to â1â, the master must first perform a âdummyâ write operation.
The master issues the start condition, slave address(R/W=â0â) and then the register address to read. After the register
addressâs acknowledge, the master immediately reissues the start condition and the slave address with the R/W bit set to
â1â. Then the AK4682 generates an acknowledge, 1byte data and increments the internal address counter by 1. If the
master does not generate an acknowledge to the data but generate the stop condition, the AK4682 discontinues
transmission.
SDA
S
T
A Slave
R Address
T
S
T
W ord
A Slave
Address(n) R Address
T
Data(n)
S
S
A
A
A
C
C
C
K
K
K
Figure 22. RANDOM READ
Data(n+1)
A
A
C
C
K
K
S
Data(n+x) T
O
P
P
MS0610-E-01
- 33 -
2007/07
|
▷ |