Configuration - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

10.2.2 Configuration

UART0 is controlled by the asynchronous serial interface mode register 0 (ASIM0), asynchronous serial interface
status register 0 (ASIS0), and asynchronous serial interface transmission status register 0 (ASIF0). Receive data is
maintained in the reception buffer register 0 (RXB0), and transmit data is written to the transmission buffer register 0
(TXB0).
Figure 10-1 shows the configuration of the asynchronous serial interface 0 (UART0).
(1) Asynchronous serial interface mode register 0 (ASIM0)
The ASIM0 register is an 8-bit register for specifying the operation of the asynchronous serial interface.
(2) Asynchronous serial interface status register 0 (ASIS0)
The ASIS0 register consists of a set of flags that indicate the error contents when a reception error occurs.
The various reception error flags are set (1) when a reception error occurs and are reset (0) when the ASIS0
register is read.
(3) Asynchronous serial interface transmission status register 0 (ASIF0)
The ASIF0 register is an 8-bit register that indicates the status when a transmit operation is performed.
This register consists of a transmission buffer data flag, which indicates the hold status of TXB0 data, and the
transmission shift register data flag, which indicates whether transmission is in progress.
(4) Reception control parity check
The receive operation is controlled according to the contents set in the ASIM0 register. A check for parity
errors is also performed during a receive operation, and if an error is detected, a value corresponding to the
error contents is set in the ASIS0 register.
(5) Reception shift register
This is a shift register that converts the serial data that was input to the RXD0 pin to parallel data. One byte
of data is received, and if a stop bit is detected, the receive data is transferred to the reception buffer register
0 (RXB0).
This register cannot be directly manipulated.
(6) Reception buffer register 0 (RXB0)
RXB0 is an 8-bit buffer register for holding receive data. When 7 characters are received, 0 is stored in the
MSB.
During a reception enabled state, receive data is transferred from the reception shift register to the RXB0,
synchronized with the end of the shift-in processing of one frame.
Also, the reception completion interrupt request (INTSR0) is generated by the transfer of data to the RXB0.
(7) Transmission shift register
This is a shift register that converts the parallel data that was transferred from the transmission buffer register
0 (TXB0) to serial data.
When one byte of data is transferred from the TXB0, the shift register data is output from the TXD0 pin.
This register cannot be directly manipulated.
416
CHAPTER 10 SERIAL INTERFACE FUNCTION
User's Manual U14492EJ3V0UD

Advertisement

Table of Contents
loading

Table of Contents