13-9
Seiko Epson Corporation
S1C31D50 TECHNICAL MANUAL
(Rev. 1.00)
Data reception using DMA
By setting the UART3_
n
RB1FDMAEN.RB1FDMAEN
x
bit to 1 (DMA transfer request enabled), a
DMA transfer request is sent to the DMA controller and the received data is transferred from the
UART3_
n
RXD register to the specified memory via DMA Ch.
x
when the UART3_
n
INTF.RB1FIF bit is
set to 1 (receive buffer one byte full).
This automates the procedure (read by one byte) 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. For more information on
DMA, refer to the
“DMA Controller” chapte
r.
Table 13.5.3.1 DMA Data Structure Configuration Example (for Data Reception)
Item
Setting example
End pointer
Transfer source
UART3_
n
RXD register address
Transfer destination
Memory address to which the last received data is stored
Control data
dst_inc
0x0 (+1)
dst_size
0x0 (byte)
src_inc
0x3 (no increment)
src_size
0x0 (byte)
R_power
0x0 (arbitrated for every transfer)
n_minus_1
Number of transfer data
cycle_ctrl
0x1 (basic transfer)
13.5.4.
IrDA Interface
This UART3 includes an RZI modulator/demodulator circuit enabling implementation of IrDA 1.0-
compatible infrared communication function simply by adding simple external circuits.
Set the UART3_
n
MOD.IRMD bit to 1 to use the IrDA interface.
Data transfer control is identical to that for normal interface even if the IrDA interface function is enabled.
Figure 13.5.4.1 Example of Connections with an Infrared Communication Module
VCC
USIN
n
V
DD
V
SS
USOUT
n
RXD
VCC
GND
TXD
LEDA
AMP
GND
S1C31 UART3
Infrared communication module
Содержание 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 ...