datasheetbank_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

M37640E8FP View Datasheet(PDF) - Mitsumi

Part Name
Description
View to exact match
M37640E8FP Datasheet PDF : 96 Pages
First Prev 41 42 43 44 45 46 47 48 49 50 Next Last
Ver 1.4
MITSUBISHI MICROCOMPUTERS
7640 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MSB
7
Reserved
SER
OER
FER
PER
RBF
TBE
Fig. 1.44. UART Status Register (U1STS, U2STS)
TCM
LSB
0
Address: 003216 ,003A16
Access: Read only
Reset: 0316
TCM
TBE
RBF
PER
FER
OER
SER
Bit 7
Transmission complete (Transmission Register empty) Flag (Bit 0)
0: Data in Transmission Register
1: No data in Transmission Register
TX Buffer Empty flag (Bit 1)
0: Data in TX Buffer
1: No data in the TX Buffer
RX Buffer Full Flag (Bit 2)
0: No data in RX Buffer
1: Data in RX Buffer
Receive Parity Error Flag (Bit 3)
0: No parity error received
1: Received framing error
Receive Framing Error Flag (Bit 4)
0: No framing error received
1: Received framing error
Receive Overrun Flag (Bit 5)
0: No overrun receive received
1: Received overrun
Receive Error Sum flag (Bit 6)
0: No error received
1: Received error
Reserved (Read “0”)
1.19.4 Transmit/Receive Methods
1.19.4.1 Transmit Method
Setup
•Define the baud rate by writing a value from 0-255 into
the UxBRG (see Figure 1.45).
•Set the Transmission Initialization Bit (TIN, bit 2 of
UxCON), to “1”. This will reset the transmit status to a
value of 0316.
•Select the interrupt source to be either TBE or TCM
by clearing or setting the Transmit Interrupt Source Se-
lection Bit (TIS, bit 4 of UxCON).
• Configure the data format and clock selection by writ-
ing the appropriate value to UxMOD.
• Set the Clear-To-Send Enable Bit (CTS_SEL, bit 5 of
UxCON), if CTS handshaking will be used.
•Set the Transmit Enable Bit (TEN, bit 0 of UxCON), to
“1”.
Operation
•When data is written to the low-order byte of the trans-
mit buffer (UxTRB1), TBE is cleared to “0”. If 9-bit
character length has been selected, the high-order byte
of the transmit buffer (UxTRB2) should be written before
the low-order byte (UxTRB1).
•If no data is being shifted out of the transmit shift reg-
ister and CTS handshaking is disabled, the data written
to the transmit buffer is transferred to the transmit shift
register and the TCM flag in UxSTS is cleared to a “0”.
In addition, the TBE flag is set to a “1”, signaling that
the next byte of data can be written to the transmit
buffer. If CTS handshaking is enabled, the operation de-
scribed above does not take place until CTSx is
brought low.
•Data from the transmit shift register is transmitted one
bit at a time beginning with the start bit and ending with
the stop bit. Note that the LSB is transmitted first.
•If the TEN bit is cleared to a “0” while data is still be-
ing transmitted, the transmitter will continue until the
last bit is sent. This is also the case when CTS hand-
shaking is enabled and CTSx is brought back high
during transmission.
•When the last bit is transmitted, the TCM flag is set to
a “1” if the transmit buffer is empty, TEN is a “0”, or
CTS handshaking is enabled and CTSx is “1”. If the
transmit buffer is not empty, TEN is a “1”, and CTS
handshaking is disabled or CTS handshaking is en-
abled and CTSx is low, the TCM flag is not set
because transfer of the contents of the transmit buffer
to the transmit shift register occurs immediately.
44

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]