15-14
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
Figure 15.5.4.2 Data Transmission Flowchart in Master Mode
Data transmission using DMA
By setting the QSPI_
n
TBEDMAEN.TBEDMAEN
x
bit to 1 (DMA transfer request enabled), a DMA
transfer request is sent to the DMA controller and transmit data is transferred from the specified
memory to the QSPI_
n
TXD register via DMA Ch.
x
when the QSPI_
n
INTF.TBEIF bit is set to 1 (transmit
buffer empty).
This automates the procedure from Step 3 to Step 6 described above.
The transfer source/destination and control data must be set for the DMA controller and the
relevant DMA channel must be enabled to start a DMA transfer in advance so that transmit data
will be transferred to the QSPI_
n
TXD register. For more information on
DMA, refer to the “DMA
Controller” chapte
r.
Table 15.5.4.1 DMA Data Structure Configuration Example (for 16-bit Data Transmission)
Item
Setting example
End pointer
Transfer source
Memory address in which the last transmit data is stored
Transfer destination
QSPI_
n
TXD register address
Control data
dst_inc
0x3 (no increment)
dst_size
0x1 (haflword)
src_inc
0x1 (+2)
src_size
0x1 (halfword)
R_power
0x0 (arbitrated for every transfer)
n_minus_1
Number of transfer data
cycle_ctrl
0x1 (basic transfer)
Data transmission
Assert the slave select signal output from
the #QSPISS
n
pin (QSPI_
n
CTL.MSTSSO
= 0) or a general-purpose port
Read the QSPI_
n
INTF.TBEIF bit
Set the transfer direction to output
(QSPI_
n
CTL.DIR = 0)
End
Negate the slave select signal output from
the #QSPISS
n
pin (QSPI_
n
CTL.MSTSSO
= 1) or a general-purpose port
Write transmit data to
the QSPI_
n
TXD register
QSPI_
n
INTF.TBEIF = 1 ?
Transmit data remained?
Wait for an interrupt request
(QSPI_
n
INTF.TBEIF = 1)
No
Yes
Yes
No
Содержание S1C31D50
Страница 461: ...25 1 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 25 Package TQFP12 48PIN ...
Страница 462: ...25 2 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP13 64PIN ...
Страница 463: ...25 3 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 TQFP14 80PIN ...
Страница 464: ...25 4 Seiko Epson Corporation S1C31D50 TECHNICAL MANUAL Rev 1 00 QFP15 100PIN ...