r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 523

no-image

r5f21346mnfp

Manufacturer Part Number
r5f21346mnfp
Description
Single-chip Mcus Incorporates The R8c Cpu Core
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21346mnfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/34M Group
R01UH0131EJ0100 Rev.1.00
Jun 21, 2011
Figure 23.20
23.6.2
(1)
(2)
(3)
(4)
(5)
Figure 23.20 shows a Sample Flowchart of Multiprocessor Data Reception. When the MPIE bit in the U2SMR5
register is set to 1, communication data is ignored until data in which the multiprocessor bit is 1 is received.
Communication data with a 1 multiprocessor bit added is transferred to the U2RB register as receive data. At
this time, a reception complete interrupt request is generated. Other operations are the same as in universal
asynchronous receiver/transmitter mode (UART mode). Figure 23.21 shows a Receive Operation Example
during Multiprocessor Communication (with 8-Bit Data/Multiprocessor Bit/One-Stop Bit).
Read the RI bit in the U2C1 register
Read the RI bit in the U2C1 register
Multiprocessor Reception
in the U2SMR5 register to 1
in the receive shift register
in the U2C1 register to 0
Sample Flowchart of Multiprocessor Data Reception
in the U2RB register
Read receive data
Set the MPIE bit
data reception?
Own station ID?
Set the RE bit
Read data
Continue
RI = 1?
RI = 1?
Start
End
Yes
Yes
Yes
No
Yes
No
No
No
(1) Set the MPIE bit in the U2SMR5 register to 1.
(2) When the MPRB bit is detected to be 1, the
(3) When the data matches the own station ID, the
(4) Read the U2C1 register to confirm that the RI
(5) To discontinue reception, set the RE bit in the
To continue reception, restart the procedure
MPIE bit is set to 0 and a reception complete
interrupt request can be generated.
Read the U2C1 register to confirm that the RI
bit is set to 1. If the RI bit is 1, read data in the
receive shift register and compare the data with
its own station ID. Reading data in the U2RB
register sets the RI bit to 0 automatically.
next data reception starts. When the data does
not match the ID, set the MPIE bit to 1 and the
MCU enters the idle state.
bit is set to 1. Then read data in the receive
shift register.
U2C0 register to 0 to complete reception.
from step (1).
23. Serial Interface (UART2)
Page 491 of 740

Related parts for r5f21346mnfp