Sample Programs For Uart/Sio - Fujitsu F2MC-8FX Hardware Manual

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

Advertisement

20.8

Sample Programs for UART/SIO

We provide sample programs that can be used to operate UART/SIO.
Sample Programs for UART/SIO
For information about the sample programs for UART/SIO, refer to "
Setup Methods without Sample Program
How to select the operation mode
The operation mode selection bit (SMC10.MOD) is used.
Mode 0
Mode 1
Operating clock types and selection method
The clock selection bit (SMC10.CKS) is used.
When selecting dedicated baud rate generator
How to use the UCK0, UI0, or UO0 pin
The following setting is used.
How to enable/stop UART operation
The reception operation enable bit (SMC20.RXE) is used.
Operation mode
Asynchronous clock mode (UART)
Synchronous clock mode (SIO)
Clock input
When selecting external clock
When setting UCK0 pin as an input
When setting UCK0 pin as an output
When using UI0 pin
When using UO0 pin
What is controlled
Disabling (stopping) reception
Enabling reception
CHAPTER 20 UART/SIO
Sample Programs" in Preface.
Operation mode selection (MOD)
Set the bit to "0"
Set the bit to "1"
Clock selection (CKS)
Set the bit to "0"
Set the bit to "1"
UART
DDR1.P12 = 0
SMC20.SCKE = 0
SMC20.SCKE = 1
DDR1.P10 = 0
SMC20.TXOE = 1
Reception operation enable bit (RXE)
Set the bit to "0"
Set the bit to "1"
357

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95170j series

Table of Contents