NEC switch User Manual
Page 84
CHAPTER 6 8-BIT TIMER/EVENT COUNTERS 00 AND 01
User’s Manual U12978EJ3V0UD
84
(3) Port mode register 2 (PM2)
This register sets port 2 input/output in 1-bit units.
When using the P26/TO01/INTP0/TI01 pin for timer output, set P26 and the output latch of P26 to 0.
When P26/TO01/INTP0/TI01 pin is used as a timer input, set PM26 to 1.
PM2 is set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets PM2 to FFH.
Figure 6-5. Format of Port Mode Register 2
PM26
0
1
1
PM26 PM25 PM24 PM23 PM22 PM21 PM20
PM2
7
6
5
4
R/W
R/W
3
2
1
0
Input mode (output buffer off)
Symbol
Address
FF22H
FFH
After reset
P26 pin input/output mode selection
Output mode (output buffer on)