Uart Program Example - Fujitsu F2MC-16LX Hardware Manual

Mb90470 series 16-bit microcontroller
Hide thumbs Also See for F2MC-16LX:
Table of Contents

Advertisement

21.5 UART Program Example

This section provides and explains a sample program for the UART.
I UART program example
❍ Specification of processing
Serial transmission and reception are executed using the two-way communication function
(normal mode) of the UART.
Operation mode 0, asynchronous operation, data length of 8 bits, 2 stop bits, and no parity
are set.
P70 (SIN0) and P72 (SCK0) are used for communication.
A dedicated baud rate generator is used, and a baud rate of about 9600bps is set.
The character "13
The machine clock frequency (φ) is 16 MHz.
" is sent from the SOT0 pin, and the data is received using an interrupt.
H
CHAPTER 21 UART
421

Advertisement

Table of Contents
loading

Table of Contents