Format Of The Asynchronous Serial Interface Mode Register (Asim) - NEC PD78212 User Manual

8-bit single-chip microcomputer sub-series
Table of Contents

Advertisement

µ PD78214 Sub-Series
Fig. 9-2 Format of the Asynchronous Serial Interface Mode Register (ASIM)
7
6
ASIM
1
RXE
Cautions 1. The asynchronous serial interface mode register (ASIM) must not be modified during transmission. If the ASIM register is
modified during transmission, further transmission becomes impossible (inputting the RESET signal resumes normal
operation).
Software can determine whether transmission is in progress, using the transmission completion interrupt (INTST) or the
interrupt request flag (STIF), which is set by the INTST.
2. If the ASIM register is modified during reception, the current and next receive data may be damaged. When changing the mode,
disable reception beforehand.
(2) Asynchronous serial interface status register (ASIS)
The ASIS register is a collection of flags that describe reception errors. A flag is set to 1 when a reception error
occurs. It is reset to 0 by reading data from the reception buffer. When the next data is received, the overrun
error flag (OVE) is set to 1, and the other error flags are reset to 0 (if this new data also contains an error, the
error flag corresponding to that error is set to 1).
Both 8-bit manipulation instruction and bit manipulation instruction can be used for the ASIS register, but
their use is limited to read operations.
When the RESET signal is input, the ASIS register is reset to 00H.
246
5
4
3
2
PSI
PS0
CL
SL
1
0
0
SCK
SCK
Specifies serial clock
0
8-bit timer/counter 3 output
1
Baud rate generator output
SL
Specifies stop bit for transmit data
1 bit
0
2 bits
1
Specifies character length for transmit/
CL
receive data
7 bits
0
8 bits
1
Specifies parity bit for transmit/
PS1
PS0
receive data
0
0
No parity
Transmit: 0 parity append
0
1
Receive: No parity error
Odd parity
1
0
Even parity
1
1
RXE
Controls reception permission
Disables reception
0
1
Enables reception

Advertisement

Table of Contents
loading

Table of Contents