III PERIPHERAL BLOCK: SERIAL INTERFACE
IrDA Interface
Outline of IrDA Interface
Each channel of the serial interface contains a PPM modulator circuit, allowing an
|
|
| 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
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
data transfers.
Setting IrDA Interface
When performing
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 |