192
CHAPTER 14 SERIAL INTERFACE SIO2
Preliminary User’s Manual U14581EJ3V0UM00
(3) Port mode register 0 (PM0)
This register is used to specify the input/output of port 0 in 1-bit units.
When using the P03/SCK2, P04/SO2, and P05/SI2 pins in the 3-wire serial I/O mode, set PM03 to PM05 as shown
in Table 14-2 below. Set the output latches of P03 to P05 to 0.
PM0 is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets PM0 to FFH.
Figure 14-5. Port Mode Register 0 (PM0) Format
Address: FF20H After Reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM0
PM07
PM06
PM05
PM04
PM03
PM02
PM01
PM00
PM0n
P0n Pin Input/Output Mode Selection
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Remark
n = 0 to 7
Table 14-2. Relation between Operation Modes and Settings of PM03 to PM05
Operation Mode
PM0 Settings
Note 2
SIO2 Operation
Serial Operation Mode
Master/Slave
Note 1
PM03
PM04
PM05
Disabled (CSIE2 = 0)
—
—
×
×
×
Enabled (CSIE2 = 1)
Receive-only mode
Master
0
×
1
(MODE2 = 0)
Slave
1
×
1
Transmit/receive
Master
0
0
1
mode (MODE2 = 1)
Slave
1
0
1
Notes 1. Master/slave can be selected by setting bits 0 and 1 (SCL20 and SCL21) of the serial operation
mode register 2 (CSIM2).
2. 0: Output mode
1: Input mode
×
: don’t care (can be used as an ordinary port pin)
Содержание mPD780851
Страница 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...