NEC 78K0/KD1 Series User Manual page 170

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(3) Port mode register 1 (PM1) and port mode register 3 (PM3)
These registers set ports 1 and 3 input/output in 1-bit units.
When using the P17/TO50/TI50 and P33/TO51/TI51/INTP4 pins for timer output, set PM17 and PM33 and the
output latches of P17 and P33 to 0.
PM1 and PM3 can be set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets these registers to FFH.
Address: FF21H
After reset: FFH
Symbol
7
PM1
PM17
PM1n
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Address: FF23H
After reset: FFH
Symbol
7
PM3
0
PM3n
0
Output mode (output buffer on)
1
Input mode (output buffer off)
170
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
Figure 7-7. Format of Port Mode Register 1 (PM1)
R/W
6
5
4
PM16
PM15
PM14
P1n pin I/O mode selection (n = 0 to 7)
Figure 7-8. Format of Port Mode Register 3 (PM3)
R/W
6
5
4
0
0
0
P3n pin I/O mode selection (n = 0 to 3)
Preliminary User's Manual U16315EJ1V0UD
3
2
1
PM13
PM12
PM11
3
2
1
PM33
PM32
PM31
0
PM10
0
PM30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents