357
CHAPTER 20 BUZZER OUTPUT FUNCTIONS
User’s Manual U12697EJ3V0UM
(2) Port 2 mode register (PM2)
This register sets port 2 I/O in 1-bit units.
When the P24/BUZ pin is used as the buzzer output function, set the output latches of PM24 and P24 to 0.
PM2 is set by a 1-bit or 8-bit memory manipulation instruction.
RESET input sets PM2 to FFH.
Figure 20-3. Format of Port 2 Mode Register (PM2)
Address: 0FF22H After reset: FFH R/W
Symbol
7
6
5
4
3
2
1
0
PM2
PM27
PM26
PM25
PM24
PM23
PM22
PM21
PM20
PM2n
P2n pin I/O mode selection (n = 0 to 7)
0
Output mode (output buffer on)
1
Input mode (output buffer off)