upd70f3402 Renesas Electronics Corporation., upd70f3402 Datasheet - Page 136

no-image

upd70f3402

Manufacturer Part Number
upd70f3402
Description
32-/16-bit Single-chip Microcontroller With Can Interface
Manufacturer
Renesas Electronics Corporation.
Datasheet
4.3.7 Port 5
Port 5 is a 6-bit port for which I/O settings can be controlled in 1-bit units.
(1)
(2)
Remarks: 1. Input mode:
136
Symbol
R/W
P5
Port 5 functions
• 6-bit I/O port
• Port input/output specifiable in 1-bit units by port mode register 5 (PM5)
• Port mode/control mode specifiable in 1-bit units by port mode control register 5 (PMC5)
• Control mode 1/control mode 2 specifiable in 1-bit units by port function control register 5
• On-chip pull-up resistor specifiable in 1-bit units by pull-up resistor option register 5 (PU5)
• On-chip pull-down resistor specifiable in 1-bit units by pull-down resistor option register 5 (PD5).
See Table 4-8, “Port Type,” on page 170 for alternate functions.
Registers
(a) Port register 5 (P5)
Port register 5 (P5) is an 8-bit register that controls pin level read, output level write. It can be read
and written in 8-bit or 1-bit units.
(PFC5)
R/W
2. An undefined value (pin input level) is read for the value after reset when P5 is read in
7
0
Output mode:
the input mode. When P5 is read in the output mode, 00H (output latch value) is output.
P5n
0
1
R/W
6
0
Outputs 0
Outputs 1
R/W
Figure 4-34: Port Register 5 (P5) Format
P55
5
When port 5 (P5) is read, the pin levels at this time are read. During
write, the data written to P5 is written. This does not affect the input
pins.
When port 5 (P5) is read, the value of P5 is read. During write, the
value is written to P5 and the written value is immediately output.
Output data control (in output mode) (n = 0 to 5)
User’s Manual U16702EE3V2UD00
Chapter 4 Port Functions
R/W
P54
4
R/W
P53
3
R/W
P52
2
R/W
P51
1
R/W
P50
0
FFFFF40AH undefined
Address
After reset

Related parts for upd70f3402