
III PERIPHERAL BLOCK: SERIAL INTERFACE
Programming Notes
(1)Before setting various
(2)When the serial interface is transmitting or receiving data, do not set TXENx or RXENx to "0", and do not execute the slp instruction.
(3)In
(4)After an initial reset, the interrupt factor flag becomes indeterminate. To prevent generation of an unwanted interrupt or IDMA request, reset this flag in the program.
(5)If a receive error occurs, the
(6)To prevent the regeneration of interrupts due to the same factor following the occurrence of an interrupt, always be sure to reset the interrupt factor flag before setting the PSR again or executing the reti instruction.
(7)Follow the procedure described below to initialize the serial interface.
Set IRMDx[1:0] | "00"(normal I/F) or "10"(IrDA I/F) | |
|
| |
|
|
|
Set SMDx[1:0] | Transfer mode setting | |
|
|
|
Other settings
Enable transmitting/receiving
Data format and clock selection Internal division ratio, IrDA I/O logic and other settings
Enable transmitting, receiving or both
Figure 8.18 Serial Interface Initialize Procedure
(8)When transmitting data in the
(9)The maximum transfer rate of the serial interface is limited to 1 Mbps.
(10)If the receive circuit is stopped during reception, set both transmission and reception to the disabled status.
(11)Serial interface operation requires that the prescaler be operating.
EPSON | S1C33210 FUNCTION PART |