151
CHAPTER 11 SERIAL INTERFACES SIO30 TO SIO32
User’s Manual U15104EJ2V0UD
Caution
Set the port mode register (PM
××
) as follows in the 3-wire serial I/O mode. Set the output
latch to 0.
Serial Type
Serial Interface
Serial Interface
Serial Interface SIO32
Operation Mode
SIO30
SIO31
S32SEL0 = 0
S32SEL0 = 1
Serial clock output
PM72 = 0
PM76 = 0
PM122 = 0
PM125 = 0
(master transmission or
(set P72/SCK30 pin
(set P76/SCK31 pin
(set P122/SCK32 pin
(set P125/SCK321
reception)
to output mode)
to output mode)
to output mode)
pin to output mode)
Serial clock input
PM72 = 1
PM76 = 1
PM122 = 1
PM125 = 1
(slave transmission or reception)
(set P72/SCK30 pin
(set P76/SCK31 pin
(set P122/SCK32 pin
(set P125/SCK321
to input mode)
to input mode)
to input mode)
pin to input mode)
In transmit or transmit/receive
PM71 = 0
PM75 = 0
PM121 = 0
PM124 = 0
mode
(set P71/SO30 pin to (set P75/SO31 pin to
(set P121/SO32 pin
(set P124/SO321 pin
output mode)
output mode)
to output mode)
to output mode)
In receive mode
PM70 = 1
PM74 = 1
PM120 = 1
PM123 = 1
(set P70/SI30 pin to
(set P74/SI31 pin to
(set P120/SI32 pin to
(set P123/SI321 pin
input mode)
input mode)
input mode)
to input mode)
(2) Serial port select register 32 (SIO32SEL)
This register selects the port used for serial interface SIO32.
SIO32SEL is set with a 1-bit or 8-bit memory manipulation instruction.
Reset input clears this register to 00H.
Figure 11-5. Format of Serial Port Select Register 32 (SIO32SEL)
S32SEL0
Serial interface SIO32 port selection
SI pin
SO pin
SCK pin
0
Note 1
P120/SI32
P121/SO32
P122/SCK32
1
Note 2
P123/SI321
P124/SO321
P125/SCK321
Notes 1. The P123/SI321, P124/SO321, P125/SCK321 pins can be used as port pins.
2. The P120/SI32, P121/SO32, P122/SCK32 pins can be used as port pins.
7
6
5
4
3
0
0
0
0
0
2
0
1
0
0
S32SEL0
Symbol
SIO32SEL
R/W
R/W
After reset
00H
Address
FF69H
Содержание mPD178053
Страница 2: ...2 User s Manual U15104EJ2V0UD MEMO ...