Bidirectional Communication Function (Normal Mode); Fig. 12.17 Setting Of Operation Mode 0 For Uart1; Fig. 12.18 Example Of Bidirectional Communication Connection For Uart1 - Fujitsu MB90420/5 (A) Series Hardware Manual

F2mc-16lx family 16-bit microcontrollers
Table of Contents

Advertisement

12.7.3 Bidirectional Communication Function (Normal Mode)

In operation modes 0 and 2, normal serial bidirectional communications using 1-to-1 connection can be
performed. For operation mode 0, the asynchronous mode is used; for operation mode 2, the synchronous
mode is used.
n Bidirectional communication function
To operate the UART in the normal mode (operation mode 0 or 2), the setting of operation mode1 of UART1
shown in Figure 12.17 is required.
bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 bit 7
SCR1, SMR1
PEN
P
¥
¥
Mode 0:
×
Mode 2:
0
SSR1,
PE
ORE
SIDR1/SODR1
¥
¥
Mode 0:
×
¥
Mode 2:
*1
DDR0
*1 : Set DDR0: bit 3, bit 5 at using UART0
¥ : Used bit
× : Unused bit
1 : Set 1
0 : Set 0
∆ : Set 0 when using input of pin
• Inter-CPU connection
Connect the two CPUs as shown in Figure 12.18.
CPU1

Fig. 12.18 Example of Bidirectional Communication Connection for UART1

SBL
CL
AD
REC RXE TXE MD1 MD0 CS2 CS1
×
¥
¥
0
×
×
1
0
FRE RDRF TDRE BDS
¥
¥
¥
¥
×
¥
¥
¥

Fig. 12.17 Setting of Operation Mode 0 for UART1

SOT1
SIN1
Output
SCK1
UART
bit 6
bit 5 bit 4
¥
¥
0
0
¥
¥
1
0
TIE Convert data set (at writing) / Receive data held (at
RIE
reading)
¥
¥
¥
¥
SOT1
SIN1
Input
SCK1
12-33
bit 3
bit 2
bit 1
CS0
SCKE SOE
¥
¥
¥
¥
¥
¥
CPU2
bit 0
¥
¥
¥
¥

Advertisement

Table of Contents
loading

Table of Contents