![](http://datasheet.mmic.net.cn/230000/7751_datasheet_15568130/7751_209.png)
SE R IAL I/ O
7751 Group User’s Manual
7–52
7.4 Clock asynchronous serial I/O (UART) mode
7.4.8 Sleep mode
This mode is used to transfer data between the specified microcomputers, which are connected by using
UARTi. The sleep mode is selected by setting the sleep select bit (bit 7 at addresses 30
16
, 38
16
) to “1” when
receiving.
In the sleep mode, receive operation is performed when the MSB (D
8
when the transfer data length is 9
bits, D
7
when it is 8 bits, D
6
when it is 7 bits) of the receive data is “1.” Receive operation is not performed
when the MSB is “0.” (The UARTi receive register’s contents are not transferred to the UARTi receive
buffer register. Additionally, the receive complete flag and error flags do not change and the UARTi receive
interrupt request does not occur.)
The following shows an usage example of sleep mode when the transfer data length is 8 bits.
Set the same transfer data format for the master and slave microcomputers. Select the sleep mode for
the slave microcomputers.
Transmit data, which has “1” in bit 7 and the address of the slave microcomputer with which communicates
in bits 0 to 6, from the master microcomputer to all slave microcomputers.
All slave microcomputers receive data of step
. (At this time, the UARTi receive interrupt request
occurs.)
In all slave microcomputers, check in the interrupt routine whether bits 0 to 6 in the receive data match
their addresses.
In the slave microcomputer of which address matches bits 0 to 6 in the receive data, clear the sleep
mode. (Do not clear the sleep mode for the other slave microcomputers.)
By performing steps
to
, “specification of the microcomputer performing transfer” is realized.
Transmit data, which has “0” in bit 7, from the master microcomputer. (Only the microcomputer specified
in steps
to
can receive this data. The other microcomputers do not receive this data.)
By repeating step
, transfer can be performed between the same microcomputers continuously. When
communicating with another microcomputer, perform steps
to
in order to specify the new slave
microcomputer.
Fig. 7.4.12 Sleep mode
Master
Slave B
Slave A
Slave D
Slave C
Transfer data between the master
microcomputer and one slave microcomputer
selected from multiple slave microcomputers.