Format Of Port Mode Register 2 - NEC switch User Manual

Nec user's manua switch
Table of Contents

Advertisement

(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.
7
6
5
Symbol
PM2
1
PM26 PM25 PM24 PM23 PM22 PM21 PM20
PM26
0
Output mode (output buffer on)
1
Input mode (output buffer off)
84
CHAPTER 6
8-BIT TIMER/EVENT COUNTERS 00 AND 01
Figure 6-5. Format of Port Mode Register 2
4
3
2
1
P26 pin input/output mode selection
User's Manual U12978EJ3V0UD
0
Address
After reset
FF22H
FFH
R/W
R/W

Advertisement

Table of Contents
loading

Table of Contents