CHAPTER 6 16-BIT TIMER
User’s Manual U15075EJ1V0UM00
122
(3)
Port mode register 2 (PM2)
PM2 is used to set each bit of port 3 to input or output.
When pin P26/ITO90 is used for timer output, reset the output latch of P26 and PM26 to 0; when pin
P21/BZO90 is used for buzzer output, reset the output latch of P26 and PM26 to 0.
PM2 is set with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets PM2 to FFH.
Figure 6-4. Format of Port Mode Register 2
PM2n
P2n pin I/O mode (n =1, 6)
Output mode (output buffer ON)
Input mode (output buffer OFF)
0
1
1
PM26
PM25
PM24
PM23
PM22
PM21
PM20
PM2
Symbol
Address
After reset
R/W
FF22H
FFH
R/W
6
7
5
4
3
2
1
0
Содержание mPD789425
Страница 2: ...2 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 6: ...6 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 10: ...10 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 24: ...24 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 36: ...36 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 46: ...46 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 176: ...User s Manual U15075EJ1V0UM00 176 MEMO ...
Страница 196: ...User s Manual U15075EJ1V0UM00 196 MEMO ...
Страница 210: ...User s Manual U15075EJ1V0UM00 210 MEMO ...
Страница 262: ...262 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 278: ...278 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 296: ...296 User s Manual U15075EJ1V0UM00 MEMO ...
Страница 298: ...User s Manual U15075EJ1V0UM00 298 MEMO ...
Страница 316: ...User s Manual U15075EJ1V0UM00 316 MEMO ...