English
Language : 

UPD78F0411GA-GAM-AX Datasheet, PDF (83/564 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
CHAPTER 4 PORT FUNCTIONS
4.2.2 Port 2
Port 2 is a 6-bit I/O port with an output latch. Port 2 can be set to the input mode or output mode in 1-bit units
using port mode register 2 (PM2).
This port can also be used for 10-bit successive approximation type A/D converter analog input (μPD78F041x only)
and segment output.
To use P20/SEG21/ANI0Note to P25/SEG16/ANI5Note as digital input pins, set them to port function (other than
segment output) by using the port function register 2 (PF2), to digital I/O by using ADPC0, and to input mode by using
PM2. Use these pins starting from the lower bit.
To use P20/SEG21/ANI0Note to P25/SEG16/ANI5Note as digital output pins, set them to port function (other than
segment output) by using the port function register 2 (PF2), to digital I/O by using ADPC0, and to output mode by
using PM2. Use these pins starting from the lower bit.
Reset signal generation sets port 1 to input mode.
Figure 4-4 shows block diagrams of port 2.
Table 4-4. Setting Functions of P20/SEG21/ANI0Note to P25/SEG16/ANI5Note Pins
PF2
Digital/Analog
selection
ADPC0Note
Analog input
selection
PM2
Input mode
SEG output
selection
Digital I/O
selection
−
Output mode
Input mode
Output mode
−
ADS
Does not select
ANI.
Selects ANI.
−
−
−
−
P20/SEG21/ANI0Note to
P25/SEG16/ANI5Note
Analog input (not to be converted)
Analog input (to be converted by successive
approximation type A/D converter)
Setting prohibited
Digital input
Digital output
Segment output
Note μPD78F041x only.
User’s Manual U18698EJ1V0UD
81