NEC MuPD78F0132H User Manual page 334

8-bit single-chip microcontrollers, 78k0/ke1plus
Table of Contents

Advertisement

(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
to 0 and set the output latches of P10 and P04 to 1.
When using P12/SO10 and P02/SO11
and the output latches of P12 and P02 to 0.
When using P10/SCK10 and P04/SCK11
Note
P03/SI11
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.
334
CHAPTER 15 SERIAL INTERFACES CSI10 AND CSI11
Note
as the clock output pins of the serial interface, clear PM10 and PM04
Note
as the data output pins of the serial interface, clear PM12 and PM02,
Note
as the clock input pins of the serial interface, P11/SI10/RxD0 and
Figure 15-7. Format of Port Mode Register 0 (PM0)
Address: FF20H
After reset: FFH
Symbol
7
6
5
PM0
1
PM06
PM05
PM0n
P0n pin I/O mode selection (n = 0 to 6)
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Figure 15-8. Format of Port Mode Register 1 (PM1)
Address: FF21H
After reset: FFH
Symbol
7
6
5
PM1
PM17
PM16
PM15
PM1n
P1n pin I/O mode selection (n = 0 to 7)
0
Output mode (output buffer on)
1
Input mode (output buffer off)
User's Manual U16899EJ2V0UD
R/W
4
3
2
1
PM04
PM03
PM02
PM01
PM00
R/W
4
3
2
1
PM14
PM13
PM12
PM11
PM10
0
0

Advertisement

Table of Contents
loading

Table of Contents