III PERIPHERAL BLOCK: SERIAL INTERFACE

A-1

IrDA Interface

Outline of IrDA Interface

Each channel of the serial interface contains a PPM modulator circuit, allowing an infrared-ray communication circuit to be configured based on IrDA 1.0 simply by adding a simple external circuit.

 

 

 

Infrared communication module

S1C33

 

LED A

 

PPM

SOUTx

TXD

LED

 

 

Modulator

 

 

VP1N

 

 

LED C

Serial I/F

 

 

 

 

 

 

SINx

 

Photodiode

PPM

RXD

 

 

 

Modulator

 

 

 

 

 

CX1

 

 

VDD

Vcc

 

 

 

CX2

VP1N

 

 

 

 

VSS

GND

 

(Example: HP HSDL-1000)

Figure 8.14 Configuration Example of IrDA Interface

This IrDA interface function can be used only when the selected transfer mode is an asynchronous mode.

Since the contents of the asynchronous mode are applied directly for the serial-interface functions other than the B-IIIIrDA interface unit, refer to "Asynchronous Interface", for details on how to set and control the data formats and

data transfers.

Setting IrDA Interface

When performing infrared-ray communication, the following settings must be made before communication can be started:

1.Setting input/output pins

2.Selecting the interface mode (IrDA interface function)

3.Setting the transfer mode

4.Setting the input clock

5.Setting the data format

6.Setting the interrupt/IDMA/HSDMA

7.Setting the input/output logic

The contents for items 1 through 5 have been explained in connection with the asynchronous interface. For details, refer to "Asynchronous Interface". For details on item 6, refer to "Serial Interface Interrupts and DMA".

Note: Before making these settings, always make sure the serial interface is inactive (TXENx and RXENx are both set to "0"), as a change in settings during operation could cause a malfunction. In addition, be sure to set the transfer mode in (3) and the following items before selecting the IrDA interface function in (2).

SIF

S1C33L03 FUNCTION PART

EPSON

B-III-8-21