English
Language : 

UPD78F9500MA-CAC-A Datasheet, PDF (70/342 Pages) Renesas Technology Corp – 8-Bit Single-Chip Microcontrollers
CHAPTER 4 PORT FUNCTIONS
(2) Port registers (P2 to P4)
These registers are used to write data to be output from the corresponding port pin to an external device
connected to the chip.
When a port register is read, the pin level is read in the input mode, and the value of the output latch of the
port is read in the output mode.
P20 to P23, P32, P40 and P43 are set by using a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to 00H.
Figure 4-13. Format of Port Register
Address: FF02H, After reset: 00H (Output latch) R/W
Symbol
7
6
5
4
P2
0
0
0
0
3
2
1
0
P23
P22
P21
P20
Address: FF03H, After reset: 00HNote (Output latch) R/WNote
Symbol
7
6
5
4
3
2
1
0
P3
0
0
0
P34
0
P32
0
0
Address: FF04H, After reset: 00H (Output latch) R/W
Symbol
7
6
5
4
3
2
P4
0
0
0
0
P43
0
1
0
0
P40
Pmn
m = 2 to 4; n = 0 to 4
Controls of output data (in output mode)
Input data read (in input mode)
0
Output 0
Input low level
1
Output 1
Input high level
Note Because P34 is read-only, its reset value is undefined.
(3) Port mode control register 2 (PMC2) (μPD78F920x only)
This register specifies the port/alternate function (except the A/D converter function) mode or the A/D
converter mode.
Each bit of the PMC2 register corresponds to each pin of port 2 and can be specified in 1-bit units.
PMC2 is set by using a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets PMC2 to 00H.
68
User’s Manual U18172EJ3V0UD