
III PERIPHERAL BLOCK: SERIAL INTERFACE
Setting
When performing
1.Setting input/output pins
2.Setting the interface mode
3.Setting the transfer mode
4.Setting the input clock
5.Setting interrupts and IDMA/HSDMA
The following explains the content of each setting. For details on interrupt/DMA settings, refer to "Serial Interface Interrupts and DMA".
Note: Always make sure the serial interface is inactive (TXENx and RXENx = "0") before these settings are made. A change of settings during operation may cause a malfunction.
Setting input/output pins
All four
/Port SIO function extension register (0x402DB) to "1111". (It is possible to use both channels.)
Note: Ch. 1 and Ch. 3 support only asynchronous operation.
Setting the interface mode
IRMDx[1:0] (D[1:0]) / Serial I/F Ch.0 IrDA register (0x401E4) or Serial I/F Ch.2 IrDA register (0x401F4) is used to set the interface mode (normal or IrDA interface). Write "00" to IRMDx[1:0] to choose the ordinary interface. Since IRMDx[1:0] becomes indeterminate at initial reset, it must be initialized.
Setting the transfer mode
Use SMDx to set the transfer mode of the serial interface as described earlier.When using the serial interface as the master for
Setting the input clock
•
This mode operates using an internally derived clock. The clock source for each channel is as follows: Ch.0: A clock output by
Ch.1: A clock output by
Ch.2: A clock output by
Ch.3: A clock output by
Therefore, in order for the serial interface to be used in the
1.The prescaler is feeding a clock to
2.The
Any desired clock frequency can be selected by setting the division ratio of the prescaler and the reload data of the
To ensure that the duty ratio of the clock to be fed to the serial interface is 50%, the
S1C33210 FUNCTION PART | EPSON |