English
Language : 

SH7785 Datasheet, PDF (1322/1692 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
25. Audio Codec Interface (HAC)
Read codec Input: RegN (address of the codec register to be read)
RegN = Last_Reg?
No
Yes
Read_codec_aux (RegV)
RegV = H'7C
(Vender ID1)
Yes
Error
No
Error
Dummy read
Last_Reg: Address of the register
read last time
Read_codec_aux (RegN)
: Data acquisition
Yes
Error
No
In continuous reading of registers in some off-chip codec
devices, the data in the register previously read may be read
again. In such case, take the steps in this flowchart.
Data return
Error
Read_codec_aux Input: RegN (address of the codec register to be read)
Send_read_request (RegN)
Yes
Error
No
Send_read_request (RegN)
Yes
Error
No
Get_codec_data (RegN)
: Data 1 acquisition
Yes
Error
No
Get_codec_data (RegN)
: Data 2 acquisition
Yes
Error
No
Data 2 return
Dummy processing
(Discard the first data)
Error
Figure 25.5 Sample Flowchart for Off-Chip Codec Register Read (1)
Rev.1.00 Jan. 10, 2008 Page 1292 of 1658
REJ09B0261-0100