CHAPTER 9 8-BIT TIMERS 30 AND 40
User’s Manual U14826EJ5V0UD
92
(4) Port mode register 2 (PM2)
PM2 sets port 2 to input/output in 1-bit units.
When using the P20/TMO/BSFO pin as a timer output, clear the PM20 and P20 output latch to 0.
When using the P21/TMI pin as a timer input, set the PM21 to 1.
This register is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to FFH.
Figure 9-7. Format of Port Mode Register 2
Symbol
7 6 5 4 3 2 1 0
Address
After
reset
R/W
PM2
1 1 1 1 1 1
PM21
PM20
FF22H
FFH
R/W
PM2m
P2m pin input/output mode (m = 0, 1)
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Содержание PD789860
Страница 2: ...User s Manual U14826EJ5V0UD 2 MEMO ...