Usage note on Serial Sound Interface - Renesas
Usage note on Serial Sound Interface - Renesas
Usage note on Serial Sound Interface - Renesas
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
RENESAS TECHNICAL UPDATE TN-SH7-A799A/E Date: March 9, 2011<br />
Yes<br />
Start<br />
Release from reset,<br />
set SSICR c<strong>on</strong>figurati<strong>on</strong> bits.<br />
Enable transmit operati<strong>on</strong>,<br />
enable a data interrupt,<br />
enable an error interrupt.<br />
Wait for more than<br />
1.5 cycles of SSIWS.<br />
IDST = 1 ?<br />
No<br />
For n = ( (CHNL + 1) × 2)<br />
Loop<br />
Wait for an interrupt.<br />
Data interrupt?<br />
Next channel<br />
More data to be sent?<br />
Disable transmit operati<strong>on</strong>,<br />
disable an error interrupt,<br />
enable an idle interrupt.<br />
Wait for an idle interrupt<br />
from this module.<br />
End<br />
Yes<br />
Load data of channel n.<br />
No<br />
Yes<br />
No<br />
SCKD、SWSD、MUEN、<br />
DEL、PDTA、SDTA、<br />
SPDP、SWSP、SCKP、<br />
SWL、DWL、CHNL<br />
TEN = 1、<br />
TUIEN = 1、TOIEN = 1、TIE = 1<br />
Disable transmit operati<strong>on</strong>.<br />
(TEN = 0)<br />
Wait for more than<br />
<strong>on</strong>e cycle of SSISCK.<br />
Enable transmit operati<strong>on</strong> again.<br />
(TEN = 1)<br />
Use SSI status register bits<br />
to realign data after<br />
underflow/overflow.<br />
TEN = 0、<br />
TUIEN = 0、TOIEN = 0、<br />
IIEN = 1、TIE = 0<br />
Figure 2 Transmissi<strong>on</strong> Using Interrupt-Driven Data Flow C<strong>on</strong>trol<br />
Page 2 of 2