Specifications

V850E2/MN4 UARTJ Control
R01AN0926EJ0100 Rev.1.00 Page 2 of 30
Feb 07, 2012
1. Overview
This application note illustrates the usage examples of the UARTJ.
The sample program makes the basic initial settings of the V850E2/MN4 microcontrollers, such as the selection of the
clock frequency and the setup of port I/O. The main processing after the end of initialization executes serial
communication between the UARTJ1 and the UARTJ3. The UARTJ1 transmits data and the UARTJ3 receives the data.
The main points in the software are shown below.
See sections 4.1.2 and 4.1.3 for the details of the individual transfer processing.
Main processing
Flow of data
Interrupt
Flow of processing
UART1 transmit array
(in internal RAM)
Data is taken out from
the user transmit array
and then written to the
transmit FIFO.
Transmit FIFO
End of transmission/
reception check
Control transmission
/reception
1.3 Enable interrupt
1.2 Set UARTJ
1.1 Initialization
1.4 Main loop processinng
Write to
transmit FIFO
has ended
Transmission/
reception has
ended.
UARTJ1 transmit
processing
Data is taken out from
the receive FIFO and
then written to the user
receive array.
User receive array
(in internal RAM)
Receive
FIFO
Receive interrupt
Interrupt
UARTJ3 receive
processing
Figure 1.1 UARTJ Software Processing Flow