Uart (Uart3) - Epson S1C31D01 Software Manual

Cmos 32-bit single chip microcontroller peripheral circuit sample software manual
Table of Contents

Advertisement

3.21 UART (UART3)

The UART3 module provides an asynchronous serial interface.
This example shows how to program the UART3 to send and receive characters when connected to a PC through
a USB-to-UART adapter.
Hardware Setup
1. Connect S5U1C31D01T1 evaluation board to PC via USB Adapter for UART as it is explained in
Section 2.2.1 and shown on the Figure 2.2.1.3 and on Figure 2.2.1.4.
2. Run a terminal program.
3. Configure terminal program for baud rate 115200, 8 data bits, 1 stop bit, no parity.
Operations
1. Example initializes UART3 as below:
Baud rate is 115200
Data length is 8bit
Stop bit length is 1bit
Parity is Non parity
2. ASCII characters are transmitted from UART3 and displayed in the terminal program window.
3. Then the Example program waits for the input of the 8 characters.
4. When typing of the 8 characters completed the characters are sent back to the terminal program window.
Example of Output
-CPU clock- seCLG_IOSC (20000000)
abcefghiabcefghi ... waiting for console input...
1234567812345678
Exit
56
Seiko Epson Corporation
S1C31D01 Peripheral Circuit Sample
Software Manual (Rev.3.00)

Advertisement

Table of Contents
loading

Table of Contents