|
TC94A48FG Datasheet, PDF (23/36 Pages) Toshiba Semiconductor – Single-chip Audio Digital Signal Processor | |||
|
◁ |
TC94A48FG
(3) Reading 24-bit data
When the host microcontroller reads data from the TC94A48FG during the execution of a program, it
sets a 16-bit address in a 24-bit command as well as sets its R/W bit to "1" and sets the number of
words to be read. Then, it transfers the 24-bit command, waits about 1fs, and then transfers an I2C
address of 31h, followed by a start condition. Finally, it reads a required number of 24-bit data words.
During a read, the host microcontroller should set the ACK bits to low but the ACK bit accompanying
the last eight bits of data must be high, thus causing the TC94A48FG to relinquish the SDA bus line
so that the host microcontroller can transmit a stop condition.
The host microcontroller should wait about 1fs after transferring a command because it has to wait
until the data to be read is set in the data buffer of the TC94A48FG.
Figure 16 shows the 24-bit data read procedure.
START ï¼£ï½ï½ï½ï½ï½ï½ï½ï½
Transfer I2C Aï½ï½ï½ï½
ï½ï½(30h)
If ACK = âHâ , restart from
START condition.
Check ACK bit = âLâ
Transfer 24-bit command
(data read = xxxx1xh)
Set a 16-bit address and the number
of words to be transferred.
Wait about 1fs
START ï¼£ï½ï½ï½ï½ï½ï½ï½ï½
Transfer I2C Aï½ï½ï½ï½
ï½ï½(31h)
Check ACK bit = âLâ
Read 24-bit data (1)
Read 24-bit data (2)
If ACK = âHâ , restart from
START condition.
Can read up to eight 24-bit
data words
Read 24-bit data (n)
STOP ï¼£ï½ï½ï½ï½ï½ï½ï½ï½
Set the last ACK bit to âHâ
Data read finished
Figure 16 shows the 24-bit Data Read Procedure
23
2005-09-28
|
▷ |