Section 11 Direct Memory Access Controller (DMAC)
Rev. 2.00 Mar 09, 2006 page 516 of 906
REJ09B0292-0200
11.4
Usage Examples
11.4.1
Example of DMA Data Transfer Between SCIF and External Memory
In this example data received by the serial communication interface with FIFO (SCIF) is sent to
external memory using DMAC channel 1. Table 11.10 lists the transfer conditions and register
setting values.
Table 11.10 Transfer Conditions and Register Setting Values for Data Transfer Between
On-chip SCIF and External Memory
Transfer Condition
Register
Setting Value
Transfer source: SCFRDR1 in SCIF
SAR1
H'FFFFFCCC
Transfer destination: External memory (word space)
DAR1
Transfer destination address
Number of transfers: 64
TCR1
H'0040
Transfer destination address: Increment
CHCR1
H'4045
Transfer source address: Fixed
Bus mode: Cycle-steal
Transfer unit: Byte
DEI interrupt request at end of transfer DE = 1
Channel priority: Fixed (0 > 1) DME = 1
DMAOR
H'0001
Transfer request source (transfer request signal): SCIF
(RXI)
DRCR1
H'05
Note: Make sure the SCIF settings have interrupts enabled and the appropriate CPU interrupt
level.
11.5
Usage Notes
1. DMA request/response selection control registers 0 and 1 (DRCR0 and DRCR1) should be
accessed in bytes. All other registers should be accessed in longword units.
2. Before rewriting the registers in the DMAC (CHCR0, CHCR1, DRCR0, DRCR1), first clear
the DE bit to 0 in the CHCR register for the specified channel, or clear the DME bit in
DMAOR to 0.
3. When the DMAC is not operating, the NMIF bit in DMAOR is set even when an NMI
interrupt is input.
4. The DMAC cannot access the cache memory.
Summary of Contents for SH7616
Page 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Page 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Page 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Page 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Page 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Page 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Page 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Page 935: ...SH7616 Hardware Manual ...