Format Of Port Mode Register 0 (Pm0); Format Of Port Mode Register 1 (Pm1) - NEC 78K0 User Manual

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0:
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
Note
P02/SO11
as the data output pins, clear PM10, PM04, PM12, PM02, and the output latches of P10, P04, 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
PD780146, 780148, 78F0148 only.
366
CHAPTER 16 SERIAL INTERFACES CSI10 AND CSI11
Note
as the clock output pins of the serial interface, and P12/SO10 and
Note
as the clock input pins of the serial interface, P11/SI10/RxD0 and
Figure 16-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 16-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 U15947EJ2V0UD
R/W
4
3
2
1
PM04
PM03
PM02
PM01
PM00
*
R/W
4
3
2
1
PM14
PM13
PM12
PM11
PM10
0
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

78kf1

Table of Contents