English
Language : 

SH7764 Datasheet, PDF (1389/1752 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperHTM RISC Engine Family SH-4A Series
Section 26 Sampling Rate Converter (SRC)
(2) When Interrupts are Used to Activate DMAC
1. Assign IDEI of the SRC to one channel of the DMAC.
2. Set the IEN bit in SRCIDCTRL to 1.
3. When the IINT bit in SRCSTAT is set to 1, the IDE interrupt request is issued thus activating
the DMAC. When the DMAC has written data to the SRCID thus resulting in the number of
data units in the input data FIFO exceeding that of the triggering number specified by the
IFTRG1 and IFTRG 0 bits in SRCIDCTRL, the IINT bit is cleared to 0.
4. Repeat step 3 until all the data has been input, and write 1 to the FL bit in SRCCTRL.
26.3.3 Data Output
Figure 26.4 is a sample flowchart for data output.
Start data output
Read the OINT bit in SRCSTAT.
OINT = 1?
No
Yes
Read the data after conversion from
SRCOD and clear the OINT bit to 0.
No
Flush processing started?
Yes
Read the FLF bit in SRCSTAT.
No
FLF = 0?
Yes
Data output completed
Figure 26.4 Sample Flowchart for Data Output
Rev. 1.00 Nov. 22, 2007 Page 1333 of 1692
REJ09B0360-0100