NEC MuPD78F0132H User Manual page 531

8-bit single-chip microcontrollers, 78k0/ke1plus
Table of Contents

Advertisement

Function
Details of
Function
Serial
ASICL6:
The read value of the SBRT6 bit is always 0. SBRT6 is automatically cleared to 0
interface
Asynchronous
after SBF reception has been correctly completed.
UART6
serial interface
Before setting the SBTT6 bit to 1, make sure that bit 7 (POWER6) and bit 6
control register
(TXE6) of ASIM6 = 1.
6
The read value of the SBTT6 bit is always 0. SBTT6 is automatically cleared to 0
at the end of SBF transmission.
Before rewriting the DIR6 and TXDLV6 bits, clear the TXE6 and RXE6 bits to 0.
When using the 78K0/KE1+ to evaluate the program of a mask ROM version of
the 78K0/KE1, set the SBTT6, SBL62, SBL61, and SBL60 bits to 0, 1, 0, 1,
respectively.
POWER6,
Clear POWER6 to 0 after clearing TXE6 and RXE6 to 0 to set the operation stop
TXE6, RXE6:
mode.
Bits 7, 6, and 5
To start the operation, set POWER6 to 1, and then set TXE6 and RXE6 to 1.
of ASIM6
UART mode
Take relationship with the other party of communication when setting the port
mode register and port register.
Parity type and
Fix the PS61 and PS60 bits to 0 when the device is incorporated in LIN.
operation
Continuous
The TXBF6 and TXSF6 flags of the ASIF6 register change from "10" to "11", and
transmission
to "01" during continuous transmission. To check the status, therefore, do not use
a combination of the TXBF6 and TXSF6 flags for judgment. Read only the
TXBF6 flag when executing continuous transmission.
When the device is incorporated in a LIN, the continuous transmission function
cannot be used. Make sure that asynchronous serial interface transmission
status register 6 (ASIF6) is 00H before writing transmit data to transmit buffer
register 6 (TXB6).
TXBF6 during
To transmit data continuously, write the first transmit data (first byte) to the TXB6
continuous
register. Be sure to check that the TXBF6 flag is "0". If so, write the next transmit
transmission:
data (second byte) to the TXB6 register. If data is written to the TXB6 register
Bit 1 of ASIF6
while the TXBF6 flag is "1", the transmit data cannot be guaranteed.
TXSF6 during
To initialize the transmission unit upon completion of continuous transmission, be
continuous
sure to check that the TXSF6 flag is "0" after generation of the transmission
transmission:
completion interrupt, and then execute initialization. If initialization is executed
Bit 0 of ASIF6
while the TXSF6 flag is "1", the transmit data cannot be guaranteed.
During continuous transmission, an overrun error may occur, which means that
the next transmission was completed before execution of INTST6 interrupt
servicing after transmission of one data frame. An overrun error can be detected
by developing a program that can count the number of transmit data and by
referencing the TXSF6 flag.
Normal
Be sure to read receive buffer register 6 (RXB6) even if a reception error occurs.
reception
Otherwise, an overrun error will occur when the next data is received, and the
reception error status will persist.
Reception is always performed with the "number of stop bits = 1". The second
stop bit is ignored.
Be sure to read asynchronous serial interface reception error status register 6
(ASIS6) before reading RXB6.
APPENDIX D LIST OF CAUTIONS
Cautions
User's Manual U16899EJ2V0UD
(17/24)
Page
p. 302
p. 302
p. 302
p. 302
p. 302
p. 304
p. 305
p. 309
p. 311
p. 311
p. 311
p. 311
p. 311
p. 315
p. 315
p. 315
531

Advertisement

Table of Contents
loading

Table of Contents