Epson S1C17624 Technical Manual page 187

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

18 uaRT
18.2
uaRT input/Output Pins
Table 18.2.1 lists the UART input/output pins.
Pin name
i/O
SIN0 (Ch.0)
I
SIN1 (Ch.1)
SOUT0 (Ch.0)
O
SOUT1 (Ch.1)
SCLK0 (Ch.0)
I
SCLK1 (Ch.1)
The UART input/output pins (SINx, SOUTx, SCLKx) are shared with I/O ports and are initially set as general pur-
pose I/O port pins. The pin functions must be switched using the port function select bits to use the general purpose
I/O port pins as UART input/output pins.
For detailed information on pin function switching, see the "I/O Ports (P)" chapter.
18.3
Transfer Clock
Either the internal clock or an external clock can be selected as the UART transfer clock using SSCK/UART_
MODx register.
note: Make sure that the UART is halted (RXEN/UART_CTLx register = 0) before altering SSCK.
internal clock
Setting SSCK to 0 (default) selects the internal clock. UART Ch.0 uses the T8F Ch.0 output clock as the trans-
fer clock, while UART Ch.1 uses the T8F Ch.1 output clock. Thus, T8F must be programmed to output a clock
suited to the transfer rate.
For more information on T8F control, see the "Fine Mode 8-bit Timers (T8F)" chapter.
external clock
Setting SSCK to 1 selects an external clock. In this case, input an external clock from the SCLKx pin.
notes: • The UART generates a sampling clock by dividing the T8F output or the external clock by 16.
Take this into consideration when setting the transfer rate.
• When supplying an external clock via the SCLKx pin, the clock frequency must be less than
half of the PCLK with a duty ratio of 50%.
18.4
Transfer Data Settings
Set the following conditions to configure the transfer data format.
• Data length: 7 or 8 bits
• Start bit:
Fixed at 1 bit
• Stop bit:
1 or 2 bits
• Parity bit:
Even, odd, or no parity
note: Make sure the UART is halted (RXEN/UART_CTLx register = 0) before changing transfer data
format settings.
Data length
The data length is selected by CHLN/UART_MODx register. Setting CHLN to 0 (default) configures the data
length to 7 bits. Setting CHLN to 1 configures it to 8 bits.
18-2
Table 18.
2.1 List of UART Pins
Qty
2
UART Ch.x data input pin
Inputs serial data sent from an external serial device.
2
UART Ch.x data output pin
Outputs serial data sent to an external serial device.
2
UART Ch.x clock input pin
Inputs the transfer clock when an external clock is used.
Seiko epson Corporation
Function
S1C17624/604/622/602/621 TeChniCal Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents