Irda Interface - Epson Arm S1C31 Series Technical Manual

Cmos 32-bit single chip microcontroller
Table of Contents

Advertisement

USINn
UART3_nINTF.RB1FIF
UART3_nINTF.RB2FIF
UART3_nINTF.RBSY
Software operations
Data reception (1 byte read)
Wait for an interrupt request
(UART3_nINTF.RB1FIF = 1)
Read receive data (1 byte) from
the UART3_nRXD register
Receive data remained?
NO
Data reception using DMA
By setting the UART3_nRB1FDMAEN.RB1FDMAENx 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_nRXD reg-
ister to the specified memory via DMA Ch.x when the UART3_nINTF.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" chapter.
Table 13.5.3.1 DMA Data Structure Configuration Example (for Data Reception)
Item
End pointer
Transfer source
Transfer destination Memory address to which the last received data is stored
Control data dst_inc
dst_size
src_inc
src_size
R_power
n_minus_1
cycle_ctrl

13.5.4 IrDA Interface

This UART3 includes an RZI modulator/demodulator circuit enabling implementation of IrDA 1.0-compatible in-
frared communication function simply by adding simple external circuits.
Set the UART3_nMOD.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.
S1C31D41 TECHNICAL MANUAL
(Rev. 1.1)
data 1
st D0
···
p sp st D0
Figure 13.5.3.1 Example of Data Receiving Operations
YES
End
Figure 13.5.3.2 Data Reception Flowcharts
UART3_nRXD register address
0x0 (+1)
0x0 (byte)
0x3 (no increment)
0x0 (byte)
0x0 (arbitrated for every transfer)
Number of transfer data
0x1 (basic transfer)
Seiko Epson Corporation
data 2
data 3
···
p sp st D0
···
p sp st D0
UART3_nRXD → data 1 (R)
(st: start bit, sp: stop bit, p: parity bit)
Data reception (2 bytes read)
Wait for an interrupt request
(UART3_nINTF.RB2FIF = 1)
Read receive data (1 byte) from
the UART3_nRXD register
Read receive data (1 byte) from
the UART3_nRXD register
Receive data remained?
NO
End
Setting example
13 UART (UART3)
data 4
···
p sp
UART3_nRXD → data 3 (R)
UART3_nRXD → data 2 (R)
YES
13-7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Arm s1c31d41

Table of Contents