Explanation Of Uart/Sio Operations And Setup Procedure Example - Fujitsu F2MC-8FX Hardware Manual

F2mc-8fx 8-bit microcontroller
Hide thumbs Also See for F2MC-8FX:
Table of Contents

Advertisement

20.7
Explanation of UART/SIO Operations and Setup Procedure
Example
The UART/SIO has a serial communication function (operation mode 0, 1).
Operation of UART/SIO
Operation mode
Two operation modes are available in the UART/SIO. Clock synchronous mode (SIO) or clock
asynchronous mode (SUAR) can be selected (see Table 20.7-1).
Table 20.7-1 Operation Modes of UART/SIO
Operation mode
Setup Procedure Example
The UART/SIO is set up in the following procedure.
Initial setup
1) Set the port input. (DDR1)
2) Set the interrupt level. (ILR1)
3) Set the prescaler. (PSSR)
4) Set the baud rate. (BRSR)
5) Select the clock. (SMC10:CKS)
6) Set the operation mode. (SMC10:MD)
7) Enable/disable the serial clock output. (SMC20:SCKE)
8) Enable reception. (SMC20:RXE = 1)
9) Enable interrupts. (SMC20:RIE = 1)
Interrupt processing
1) Read receive data. (RDR0)
Data length
No parity
5
6
0
7
8
5
6
1
7
8
Synchronization
mode
With parity
6
7
Asynchronous
8
9
-
-
Synchronous
-
-
CHAPTER 20 UART/SIO
Length of stop bit
1 bit or 2 bits
-
343

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents