CHAPTER 15 SERIAL INTERFACES CSI10 AND CSI11
User’s Manual U16899EJ2V0UD
334
(3) Port mode registers 0 and 1 (PM0, PM1)
These registers set port 0 and 1 input/output in 1-bit units.
When using P10/SCK10 and P04/SCK11
Note
as the clock output pins of the serial interface, clear PM10 and PM04
to 0 and set the output latches of P10 and P04 to 1.
When using P12/SO10 and P02/SO11
Note
as the data output pins of the serial interface, clear PM12 and PM02,
and the output latches of P12 and P02 to 0.
When using P10/SCK10 and P04/SCK11
Note
as the clock input pins of the serial interface, P11/SI10/RxD0 and
P03/SI11
Note
as the data input pins, and P05/SSI11/TI001 as the chip select input pin, set PM10, PM04, PM11,
PM03, and PM05 to 1. At this time, the output latches of P10, P04, P11, P03, and P05 may be 0 or 1.
PM0 and PM1 can be set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets these registers to FFH.
Note
µ
PD78F0133H, 78F0134H, 78F0136H, 78F0138H, and 78F0138HD only.
Figure 15-7. Format of Port Mode Register 0 (PM0)
7
1
6
PM06
5
PM05
4
PM04
3
PM03
2
PM02
1
PM01
0
PM00
Symbol
PM0
Address: FF20H After reset: FFH R/W
PM0n
0
1
P0n pin I/O mode selection (n = 0 to 6)
Output mode (output buffer on)
Input mode (output buffer off)
Figure 15-8. Format of Port Mode Register 1 (PM1)
7
PM17
6
PM16
5
PM15
4
PM14
3
PM13
2
PM12
1
PM11
0
PM10
Symbol
PM1
Address: FF21H After reset: FFH R/W
PM1n
0
1
P1n pin I/O mode selection (n = 0 to 7)
Output mode (output buffer on)
Input mode (output buffer off)
Содержание MuPD78F0132H
Страница 2: ...User s Manual U16899EJ2V0UD 2 MEMO ...