English
Language : 

SH7785 Datasheet, PDF (1324/1692 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
25. Audio Codec Interface (HAC)
WaitLoop_CMDAMT
Clear LoopCnt 3 to 0
No
TSR.CMDAMT = 1
Yes
Write 0 to TSR.CMDAMT
Wait for 1 μs
LoopCnt 3 ++
Return
No
E3 < LoopCnt 3
Yes
Error
WaitLoop_RSR
Clear LoopCnt 4 to 0
RSR.STARY = 1 &
No
RSR.STDRY = 1
Yes
Write 0 to RSR.STARY
Write 0 to RSR.STDRY
Return
Wait for 1 μs
LoopCnt 4 ++
No
E4 < LoopCnt 4
Yes
Error
Notes: E3, E4: Loop count required in the target system
(21 < E3, 21 < E4 < 1000)
LoopCnt3: Software counter for wait insertion
LoopCnt4: Software counter for wait insertion
Figure 25.7 Sample Flowchart for Off-Chip Codec Register Read (3)
Rev.1.00 Jan. 10, 2008 Page 1294 of 1658
REJ09B0261-0100