MB95710M Series
MB95770M Series
Document Number: 002-09307 Rev. *D
Page 61 of 172
18.3 Port 2
Port 2 is a general-purpose I/O port. This section focuses on its functions as a general-purpose I/O port. For details of
peripheral functions, refer to their respective chapters in “New 8FX MB95710M/770M Series Hardware Manual”.
18.3.1 Port 2 configuration
Port 2 is made up of the following elements.
• General-purpose I/O pins/peripheral function I/O pins
• Port 2 data register (PDR2)
• Port 2 direction register (DDR2)
• Port 2 pull-up register (PUL2)
18.3.2 Block diagrams of port 2
• P20/PPG00/CMP0_N pin
This pin has the following peripheral functions:
• 8/16-bit PPG ch. 0 output pin (PPG00)
• Comparator ch. 0 inverting analog input (negative input) pin (CMP0_N)
• P21/PPG01/CMP0_P pin
This pin has the following peripheral functions:
• 8/16-bit PPG ch. 0 output pin (PPG01)
• Comparator ch. 0 non-inverting analog input (positive input) pin (CMP0_P)
• Block diagram of P20/PPG00/CMP0_N and P21/PPG01/CMP0_P
PDR2
Pin
PDR2 read
PDR2 write
Executing bit manipulation instruction
DDR2 read
DDR2 write
PUL2 read
PUL2 write
DDR2
PUL2
0
1
1
0
Stop mode, watch mode (SPL = 1)
Peripheral function output enable
Peripheral function output
Pull-up
Inter
nal b
u
s
Analog input
Analog input enable