8 program example for uart, 8 "p – FUJITSU Semiconductor Controller MB89950/950A User Manual
Page 234

220
CHAPTER 10 UART
10.8
Program Example for UART
This section gives program example for UART.
■ Program example for UART
●
Processing description
•
Perform serial transmit/receive operation using communication functions of the UART.
•
P45/SCK, P44/SO and P43/SI pins are used for communication.
•
Set a transmission speed of 150 baud by the internal baud rate generator.
•
A character "13
H
" is transmitted from the SO pin and triggers the operation by interrupt.
•
The baud rate is set with the main clock oscillation frequency (F
CH
) of 5 MHz